This has been discussed before but I have never seen a definitive resolution of the topic. If there is a solution I would appreciate information about it.
WaitKeyDown works for many virtual keys but I've never been able to make it work with mouse clicks.
WKD>VK1
// OR //
WKD>VK2
will wait forever with no response from mouse clicking. Is it possible to have WaitKeyDown respond to a mouse click?
Thanks for listening,
Dick
WaitKeyDown and mouse clicks
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
This will be sorted. If you are running 8 beta, check out the OnEvent and KEY_DOWN event. This does detect the mouse buttons correctly and can also accept modifier keys (e.g. you can make it detect Shift+Left button). WaitKeyDown will also work properly with mouse buttons when 8.0 is released.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Note also the KEY_DOWN event type you can use with OnEvent. This allows you to detect and respond to a key down event at any time during script execution, even if you don't know when it might occur.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?