on idle if the commandDown then CommandDown else CommandNotDown end if if the optionDown then OptionDown else OptionNotDown end if if the controlDown then ControlDown else ControlNotDown end if if the shiftDown then ShiftDown else ShiftNotDown end if end
on ControlDown if script(1).pControlDown = 0 then script(1).pControlDown = 1 -- here you can do stuff put "ControlDown" end if end
on ControlNotDown if script(1).pControlDown = 1 then script(1).pControlDown = 0 -- here you can do stuff put "ControlUp" end if end
on CommandDown if script(1).pCommandDown = 0 then script(1).pCommandDown = 1 -- here you can do stuff put "CommandDown" end if end
on CommandNotDown if script(1).pCommandDown = 1 then script(1).pCommandDown = 0 -- here you can do stuff put "CommandUp" end if end
on OptionDown if script(1).pOptionDown = 0 then script(1).pOptionDown = 1 -- here you can do stuff put "OptionDown" end if end
on OptionNotDown if script(1).pOptionDown = 1 then script(1).pOptionDown = 0 -- here you can do stuff put "OptionUp" end if end
on ShiftDown if script(1).pShiftDown = 0 then script(1).pShiftDown = 1 -- here you can do stuff put "ShiftDown" end if end
on ShiftNotDown if script(1).pShiftDown = 1 then script(1).pShiftDown = 0 -- here you can do stuff put "ShiftUp" end if end