Page 1 of 1

Checking the state of the key in the scripts

PostPosted: Fri Aug 27, 2010 10:50 pm
by daenerys
Hello,
I would like to implement a script which code should be iteratively executed only during the right mouse button is pressed/down. As soon as the button is depressed/up, the code shouldn't be executed anymore.
Is it possible to check from the script if a button is pressed/down in order to make a loop as long as it is in this state?
Another option would maybe, if possible at all, to make the script events beeing executed not only upon pressing of a button but also upon depressing of the same....

Thanks for your help,
danny

Re: Checking the state of the key in the scripts

PostPosted: Sat Aug 28, 2010 12:55 am
by L. Spiro
Remind me to check this topic again when I get back to Japan next month where I can check what features are available in MHS to do this.
If nothing else you can set hotkeys to activate and deactivate a script by keypresses (not mouse presses).


L. Spiro