jennico Posted April 29, 2007 Share Posted April 29, 2007 hi there, another stupid question. i want to delete (?) the hotkey buffer in my script. in other words, i don't want hotkeys to be queued and then calling the same function several times, because the gui needs some time to refresh. is there a direct option (HOTKEYQUEUESIZE ?) or a workaround like pausing the script until gui is refreshed ? thanx for your help and suggestions j. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Shevilie Posted April 29, 2007 Share Posted April 29, 2007 A workaround would be that the first thing a hotkey doeas is to unset all the hotkeys, and then in the end aply them again.. Rough but it should work Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
jennico Posted April 30, 2007 Author Share Posted April 30, 2007 (edited) yes, this works. you can also set a variable when hotkey is pressed that blocks a second call and reset it on function end. still rough. i thought there might be an option to set the buffer like i did it years ago on my commodore. another way is to use If _IsPressed("xx") Then in a loop instead of hotkeyset. but this does not cover the ctrl and alt combinations. j. Edited April 30, 2007 by jennico Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 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