chicomat Posted February 15, 2020 Share Posted February 15, 2020 i made this code but when i run it it loops and spam de keys i only want to when i hold up the key stops and when i push down starts again HotKeySet("a", "OneAndTwo") HotKeySet("d", "OneAndThree") Main() Func Main() While 1 WEnd EndFunc ;==>main Func OneAndTwo() While "1" Send("aq") WEnd EndFunc Func OneAndThree() while "1" Send("de") WEnd EndFunc Link to comment Share on other sites More sharing options...
chicomat Posted February 15, 2020 Author Share Posted February 15, 2020 mistake on the tittle i want to bind D to press D+E at the same time when i hold and A to press A+Q at the same time when i hold but it loops for ever Link to comment Share on other sites More sharing options...
Developers Jos Posted February 15, 2020 Developers Share Posted February 15, 2020 4 hours ago, chicomat said: when i run it it loops and spam de keys Spam keys for what? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
chicomat Posted February 17, 2020 Author Share Posted February 17, 2020 when i stop pushing a or d it keeps doing the macro. i want to start the macro when i push and stop when i lift uft the key Link to comment Share on other sites More sharing options...
Developers Jos Posted February 17, 2020 Developers Share Posted February 17, 2020 You didn't answer my question! Why do you need this? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now