[Closed] Pooling the clipboard quickly without too much CPU Time?
Hi guys,
We are trying to create a communication protocol between our in house Windev tool and 3DSMAX.
So that I can send command to the app and get answer from it… I basicly need to ask for a specific image in the app DB, modiy it and put it back in the DB… I don’t want to mess with ODBC and we don’t want to build C++ plugin for Max to do this. So we came up today with the idea that maybe we can communicate with the clipboard. So a king of protocol that communicate with the clipboard… For the protocol it’s not complicated but my question is… How can I have a script that can read (listen) the clipboard quickly without locking the process or the script??? Good chanlenge no?
So basicly, from 3dsmax I send a string to the clipboard that got read by our app that is also listening on the clipboard to tell him that I need the image ID XXX in the app DB. So the app go get it and put it back in the clipboard. So max read the clipboard at every X sec or Xmsec to see if the clipboard is now filled with a bitmap and not my string…
Also if possible that my script is always in a listening state, so as soon as I got a predefined strings from the clipboard I can execute Max actions based on what received in the clipboard.
So is there a way of doing this?
Regads,
OzRay.