TsunamiZ Posted January 20, 2013 Report Share Posted January 20, 2013 Anyone know how to make a macro wait for a specific right click menu to disappear/close before proceeding? How do I specify the right click menu? NOTE: This is for a right click menu from a system tray icon. Quote Link to comment Share on other sites More sharing options...
acantor Posted January 21, 2013 Report Share Posted January 21, 2013 I can't think of a simple, straightforward, or programmatic way to do this reliably. You might have to settle for a fixed time delay. There may be complex, convoluted, and non-programmatic ways to detect when a menu disappears. But there may be a point of diminishing returns. Is it worthwhile to spend, say, 10 hours, to develop a workaround? (The answer may be "yes" if doing so improves your comfort and deepens your understanding of macro scripting.) Time delays are not pretty, but get the job done. Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted January 21, 2013 Author Report Share Posted January 21, 2013 time delay won't work well for what i'm trying to do. my request is for working around this MEP bug... http://pgmacros.invisionzone.com/topic/4976-bug-wait-for-left-mouse-click-command-doesnt-work-when-clicking-in-menus-or-right-click-menus/ Quote Link to comment Share on other sites More sharing options...
acantor Posted January 21, 2013 Report Share Posted January 21, 2013 I am not able to replicate the problem. This MEP script waits for to a left click, and signals when it has happened. Then it does the same thing for a right click. Wait for Left Mouse Click Text Box Display: Left Mouse Click detected Wait for Right Mouse Click Text Box Display: Right Mouse Click detected Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted January 21, 2013 Author Report Share Posted January 21, 2013 the left click detection bug [that i linked to] is specific to right click menus. i tested this on a system tray program's right click menu. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.