1. [WIN] how clear clipboard?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Oct 09, 2001
- 638 views
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
2. Re: [WIN] how clear clipboard?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Oct 09, 2001
- 540 views
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. > > >
3. Re: [WIN] how clear clipboard?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Oct 09, 2001
- 520 views
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.
4. Re: [WIN] how clear clipboard?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Oct 10, 2001
- 530 views
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. > > > > > >
5. Re: [WIN] how clear clipboard?
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 10, 2001
- 533 views
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
6. Re: [WIN] how clear clipboard?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Oct 10, 2001
- 506 views
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 > > >
7. Re: [WIN] how clear clipboard?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Oct 10, 2001
- 513 views
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 > > >
8. Re: [WIN] how clear clipboard?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Oct 10, 2001
- 513 views
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 > > >