Pat Stanford 1,428 Posted April 29, 2018 I am working on a script for a menu item. I would like to be able to open a dialog box to change a parameter if I am holding down a key (preferably OPTION) when selecting the menu item. I can't get this to work reliably. Occasionally it will work and when it works it will normally keep working on repeated runs. But then sometimes it won't work and it won't work repeatedly. I can't figure out the pattern of when it works and when it doesn't. Any ideas? Any better solutions than what I have below? At the top of my script I currently have: If OPTION then Begin N3:=IntDialog('Enter Number of Groups (Max. 10)',Num2Str(0,NumGroups)); NumGroups:=Min(N3,10); End; Quote Share this post Link to post
Pat Stanford 1,428 Posted April 29, 2018 Still hoping for a better solution, but for now the following seems to work: Option by itself does not seem to trigger properly, but combined with AUTOKEY it does. If NOT AUTOKEY(L1) AND OPTION then Begin N3:=IntDialog('Enter Number of Groups (Max. 10)',Num2Str(0,NumGroups)); NumGroups:=Min(N3,10); End; Quote Share this post Link to post
Julian Carr 111 Posted April 29, 2018 I have never been able to get things like OPTION, COMMAND, etc to work, however I recall using AUTOKEY in some scripts successfully. It would be good to have reliable modifier key support. 1 Quote Share this post Link to post