hayasidist wrote: ↑Tue Nov 16, 2021 9:11 am
mouseEvent.shiftKey is a boolean...
so if you want to check if the shift key is down it's
if mouseEvent.shiftKey then
-- code if shift is pressed
else
-- code if not shift
end
thanks
NO my goal isn't check shift key. I want change shift to alt for example and it applie to all script. actually i want store mouseEvent.shiftkey into variable,and i change variable instead of mouseEvent.shift
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
davoodice2 wrote: ↑Tue Nov 16, 2021 9:59 am
NO my goal isn't check shift key. I want change shift to alt for example and it applie to all script. actually i want store mouseEvent.shiftkey into variable,and i change variable instead of mouseEvent.shift
you mean you want all scripts - including "factory" ones to react as though (e.g.) shift was pressed when the user actually pressed alt ???
hayasidist wrote: ↑Tue Nov 16, 2021 8:29 pm
you mean you want all scripts - including "factory" ones to react as though (e.g.) shift was pressed when the user actually pressed alt ???
If so, that would sound like a use for AutoHotkey, if on Windows.