My script needs to wait at one point until Shift is released. I'm trying:
Code: Select all
while (<get "shift">!=0) {$xxx=0;}
but this never detects the absence of the Shift key, so it's an endless loop.
There is the same problem if I wait for the Shift (or Alt or Ctl etc) key to be pressed:
Code: Select all
while (<get "shift">==0) {$xxx=0;}
There seems to be a problem with the detection code when it's used in a tight loop like this, in real time. The detection does work under "Try Script", and in a non-loop situation. Not posted as a bug because I might be misunderstanding the intent of the command.
Also a maybe-but-not-sure bug: I can't break from this script loop. The "Esc" key has no effect. Neither does mild swearing. I have to kill XY.