Sign in to follow this  
Followers 0
Lars_89

On HotkeySet

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by ajag

Rule #1: Always do a backup         Rule #2: Always do a backup (backup of rule #1)

Share this post


Link to post
Share on other sites

Thanks ajag!

That's exactly what I was looking for.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0