Lars_89 Posted July 26, 2012 Share Posted July 26, 2012 Hi I have not used AutoIt in years, so this may be a simple question. Also, searching the forum didn't help me much. Consider the following code, where "Go" is defined a priori in the same file. HotKeySet ("!{t}", "Go") As you can see, it maps ALT+t to "Go". However, when I press ALT+t, Windows Explorer, for instance, drop downs its menus and such. Other applications behave the same way. So, my question is: Is there a way to avoid this "flickering"-like situation? This is done automatically by Autohotkey, for example. Thanks in advace. Link to comment Share on other sites More sharing options...
ajag Posted July 27, 2012 Share Posted July 27, 2012 (edited) Hi Lars_89, this works for me: HotKeySet ("!t", "Go") ; no curly brackets! ("!{t}") while 1 sleep( 1000 ) WEnd Func Go() msgbox(0, "Bingo", "It works") EndFunc A-Jay Edited July 27, 2012 by ajag Rule #1: Always do a backup Rule #2: Always do a backup (backup of rule #1) Link to comment Share on other sites More sharing options...
Lars_89 Posted July 27, 2012 Author Share Posted July 27, 2012 Thanks ajag!That's exactly what I was looking for. 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