| View previous topic :: View next topic |
| Author |
Message |
Gloops Newbie

Joined: 09 Jun 2007 Posts: 2
|
Posted: Sat Jun 09, 2007 9:20 am Post subject: Get the clipboard : timer ? |
|
|
Hello everybody,
I use a macro to transmit the contents of the selection to a program that was written in VB6.
I meet a problem : whereas this works quite fine from Excel, from Ooo (Calc) it seems the clipboard remains locked, and the external application cannot get the information from it. It works if I close the external application and launch it again directly with a Windows shortcut, but this is not that handy.
If I execute the code step by step, it works fine.
So, I imagine a good idea could be to launch the external application from a timer, rather than from the macro that copies the information to the clipboard : that could let time to release the clipboard (the CloseClipboard API does not do it).
So, where do I find the steps to create a timer in Ooo ? |
|
| Back to top |
|
 |
Gloops Newbie

Joined: 09 Jun 2007 Posts: 2
|
Posted: Sat Jun 09, 2007 11:23 am Post subject: |
|
|
Well,
I kept on trying ...
For sure the timer will be useful in some circumstances.
For this project, it appeared the clipboard is unlocked after about ten seconds, is any program called afterwards or not.
I obtained the attended result by modifying the target program, so that it waits for the clipboard reading to be successful.
Any hint about getting the clipboard closed quickerly ?
Thanks in advance. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|