1. [WIN] how clear clipboard?

Does anyone know how to *clear* the clipboard?  I've tried everything I can
think of, but can't seem to do it.  The closest I've come is to setText to "
" and copy that, which "works" (in that it removes what had been there), but
puts a space into the clipboard.  But "" doesn't work, nor does select mle
text, clear(mle), copy(mle); seems like anything I do that makes "empty"
text to copy, the result is whatever was previously in the clipboard is
still there.

Dan Moyer

new topic     » topic index » view message » categorize

2. Re: [WIN] how clear clipboard?

Derek,

oh, thanks!

Dan

----- Original Message ----- 
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: [WIN] how clear clipboard?


> 
> 
> Dan Moyer wrote:
> > Does anyone know how to *clear* the clipboard? 
> 
> using win32lib library, one could do this...
> 
>  atom void
>  void = w32Func(xEmptyClipBoard)
> 
> ---
> Derek.
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: [WIN] how clear clipboard?

Derek,

Been sitting, gotta get up and move around, :)

I can't get EmptyClipboard to work, in the same place that
setText(HiddenMle, " "), copy(HiddenMle)  semi-worked.
I used      void = w32Func(xEmptyClipboard, {}), 'cause I didn't know what
to put as a parameter, which didn't error, but didn't clear the clipboard
either.

Dan

----- Original Message -----
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Sent: Tuesday, October 09, 2001 10:21 PM
Subject: RE: [WIN] how clear clipboard?


>
>
> Dan Moyer wrote:
> > Does anyone know how to *clear* the clipboard?
>
> using win32lib library, one could do this...
>
>  atom void
>  void = w32Func(xEmptyClipBoard)
>
> ---
> Derek.

new topic     » goto parent     » topic index » view message » categorize

4. Re: [WIN] how clear clipboard?

Henri,

I'll have to experiment with this, as it does seem to clear the clipboard,
but subsequent copy/pastes seem to be not working, I think.  I tried
xCloseClipboard, but that messed up worse, with errors.

Dan

----- Original Message -----
From: <Henri.Goffin at sbs.be>
To: "EUforum" <EUforum at topica.com>
Subject: RE: [WIN] how clear clipboard?


>
> To be complete ... and effective, this should read:
>
> include win32lib.ew
> atom void
> void = w32Func(xOpenClipboard,{NULL})
> void = w32Func(xEmptyClipboard,{})
>
> > -----Original Message-----
> > From: Derek Parnell [SMTP:ddparnell at bigpond.com]
> > Sent: Wednesday, October 10, 2001 7:22 AM
> > To: EUforum
> > Subject: RE: [WIN]  how clear clipboard?
> >
> >
> > Dan Moyer wrote:
> > > Does anyone know how to *clear* the clipboard?
> >
> > using win32lib library, one could do this...
> >
> >  atom void
> >  void = w32Func(xEmptyClipBoard)
> >
> > ---
> > Derek.
> >
> >
>
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: [WIN] how clear clipboard?

After reading the SDk a bit, it seems you need to do this ...

 atom void
 if w32Func(xOpenClipboard,{getHandle(yourmainwind)}) then
    void = w32Func(xEmptyClipboard,{})
    void = w32Func(xCloseClipboard,{})
 else
    -- Some other process owns the clipboard just now.
 end if


---------
Derek

new topic     » goto parent     » topic index » view message » categorize

6. Re: [WIN] how clear clipboard?

Derek,

When I use that, I get the following error:

C:\EUPHORIA\WIN32LIB\IDE\2_10_5\Win32lib.ew:409 in function w32Func()
subscript value 4 is out of bounds, reading from a sequence of length 3
    funcid = 124'|'
    parms = {}
    lRC = <no value>
    libfunc = <no value>
    lFuncDef = {3220504576,{67'C',108'l',111'o',115's',101'e',67'C',108'l',
105'i',112'p',98'b',111'o',97'a',114'r',100'd'},{}}
    linked = <no value>


...(and a lot more!)

It's probably similar to what I got when I guessed that I might need to use
the xClose function.

Dan


----- Original Message -----
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Sent: Wednesday, October 10, 2001 7:25 AM
Subject: Re: [WIN] how clear clipboard?


>
> After reading the SDk a bit, it seems you need to do this ...
>
>  atom void
>  if w32Func(xOpenClipboard,{getHandle(yourmainwind)}) then
>     void = w32Func(xEmptyClipboard,{})
>     void = w32Func(xCloseClipboard,{})
>  else
>     -- Some other process owns the clipboard just now.
>  end if
>
>
> ---------
> Derek
>
>
>

new topic     » goto parent     » topic index » view message » categorize

7. Re: [WIN] how clear clipboard?

Derek,

Oops me too, I should have seen that, I was looking in Win32Lib at where it
was!

Thanks,
Dan

----- Original Message -----
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: [WIN] how clear clipboard?


>
>
> Dan Moyer wrote:
> > Derek,
> >
> > When I use that, I get the following error:
> >
> > C:\EUPHORIA\WIN32LIB\IDE\2_10_5\Win32lib.ew:409 in function w32Func()
> > subscript value 4 is out of bounds, reading from a sequence of length 3
>
> Oops! Close Clipboard is a procedure and not a function. Sorry about
> that.
>
>   atom void
>   if w32Func(xOpenClipboard,{getHandle(yourmainwind)}) then
>      void = w32Func(xEmptyClipboard,{})
>      w32proc(xCloseClipboard,{})
>   else
>      -- Some other process owns the clipboard just now.
>   end if
> ---------
> Derek
>
>
>

new topic     » goto parent     » topic index » view message » categorize

8. Re: [WIN] how clear clipboard?

Derek,

Thanks, that does work!  :)

Dan

----- Original Message ----- 
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: [WIN] how clear clipboard?


> 
> 
> Dan Moyer wrote:
> > Derek,
> > 
> > When I use that, I get the following error:
> > 
> > C:\EUPHORIA\WIN32LIB\IDE\2_10_5\Win32lib.ew:409 in function w32Func()
> > subscript value 4 is out of bounds, reading from a sequence of length 3
> 
> Oops! Close Clipboard is a procedure and not a function. Sorry about 
> that.
> 
>   atom void
>   if w32Func(xOpenClipboard,{getHandle(yourmainwind)}) then
>      void = w32Func(xEmptyClipboard,{})
>      w32proc(xCloseClipboard,{})
>   else
>      -- Some other process owns the clipboard just now.
>   end if
> ---------
> Derek
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu