Checking for modifier keys (ctrl, alt, shift) in script without mouse trappingIs there a way to check if a modifier key such as ctrl, alt or shift is depressed during execution of a jsl script? I know the "is ... key()" functions, but they only work with the mouse. I would like to let a script do various things on execution depending on which modifier key is depressed while it is executed.
ScriptingRe: Checking for modifier keys (ctrl, alt, shift) in script without mouse trappingYou can use functions like `is control key()`, like this:
New Window("Modifier Key Check",
vlb = V List Box(
Mouse Box(
Graph Box(),
<<SETCLICKENABLE></SETCLICKENABLE>Re: Checking for modifier keys (ctrl, alt, shift) in script without mouse trappingSorry I just read your post again and I guess you wanted to do this when not using the mouse. Can you give a description of when a user would press a modifier key that isn't related to a mouse click? I am having a hard time picturing your use case.