Date: Sun, 6 Jun 1999 21:54:40 +0200
Reply-To: Rolf Kjoeller <rolf.kjoeller@GET2NET.DK>
Sender: "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From: Rolf Kjoeller <rolf.kjoeller@GET2NET.DK>
Subject: ownership-struggle over the clipboard
Content-Type: text/plain; charset="Windows-1252"
I think there is some kind of ownership-struggle over the clipboard. I have found out that my script runs as it should until I select some text in the script-editor and copy it. If I then run the script, SPSS will attempt to paste the text I have selected into the data document - instead of the pivottable that still gets selected by the script. If I then manually manipulate the pivottable (fx. pivot it) and rerun the script, the script works again - and it continues to work until I manually use the clipboard in the scripteditor. The script also stops working if I copy some text here in my e-mail-client - and it starts to work again if I manipulate the pivottable.
It seems like the scripting facility can't access the clipboard, if the clipboard is in use in another part of SPSS or in another program, because the "object.Copy"-method has a lower Windows-priority than other programs as well as other parts of SPSS. Can this be true (I'm not a programmer, so I don't know if such priorities exist at all)? If it is true, does anyone know of a good workaround?
Best regards
Rolf
--
e-mail: rolf.kjoeller@get2net.dk
web-page: http://hjem.get2net.dk/rolf.kjoeller
|