estyles
4th January 2009, 05:52 AM
Hey all,
I am trying to find a way to bring up a contextual menu triggered swiftly (and reliably) - via MouseDown through Mortscript. The scenario is basically having to press and hold down on screen, wait for contextual menu while small dots appear before anything further can be done.
My current set up consists of a Mortscript that performs MouseDown, Sleeps for 1 sec, and then sends the R key.
Here's the snippet:
MouseDown (479, 639)
Sleep (1000)
SendKeys ("R")
It does work, but the whole process is inefficient and SLOW. I've found anything less that 1000ms and the script becomes unreliable.
Ideally, I'd like the contextual menu to pop-up instantaneously so that the "R" key can be sent immediately after (rather than having to wait). Is there such a way to do this? Any other ideas or suggestions are certainly welcome as well.
Thanks!
I am trying to find a way to bring up a contextual menu triggered swiftly (and reliably) - via MouseDown through Mortscript. The scenario is basically having to press and hold down on screen, wait for contextual menu while small dots appear before anything further can be done.
My current set up consists of a Mortscript that performs MouseDown, Sleeps for 1 sec, and then sends the R key.
Here's the snippet:
MouseDown (479, 639)
Sleep (1000)
SendKeys ("R")
It does work, but the whole process is inefficient and SLOW. I've found anything less that 1000ms and the script becomes unreliable.
Ideally, I'd like the contextual menu to pop-up instantaneously so that the "R" key can be sent immediately after (rather than having to wait). Is there such a way to do this? Any other ideas or suggestions are certainly welcome as well.
Thanks!