If your script is just about simple hotkeys or something like that, this is a very good approach.īut if your script is more complex than that, you might run into the problems #If can cause. Whether or not I'd recommend this approach is another thing. #If, GetKeyState("Ctrl") & GetKeyState("1") & GetKeyState("2") & GetKeyState("3") & GetKeyState("4") & GetKeyState("5") is only going to work if your system can #If, GetKeyState("Ctrl") start of context sensitive hotkeys In your case you'd want to check if the first key(s) of your hotkey is/are held down.Īnd then you'd set the last keys as a hotkey. You create a context sensitive hotkey by setting whatever condition with the #If directive. KeyWaiting is showed in the other answer, I'd like to show the other option, which is using #If and GetKeyState().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |