Sign in to follow this  
Followers 0
XEyE

How to register a global hotkey?

7 posts in this topic

I want to set a hotkey that can start a function whenever and wherever i want to. (like during games)

im sorry if it has been asked before

Anyone can help? THANKS!!!!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

HotKeySet hotkeys are always trapped by AutoIt no matter what your currently active window is. It is also only trapped by the first script that sets it. This means that even if you run two instances of your script, only the first one will register your hotkeys.

Read the help file. That's why it's there...

Edited by omikron48

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

HotKeySet hotkeys are always trapped by AutoIt no matter what your currently active window is. It is also only trapped by the first script that sets it. This means that even if you run two instances of your script, only the first one will register your hotkeys.

Read the help file. That's why it's there...

Thank you for your answer.

But, to be more direct, im playing an online-game which is protected by "Apollo Antihack System"

The HotKeySet in my script works on basicly every window exceipt that game.

I guess the game has higher priority.

if i still want to do so, does it mean i have to catch the every keyboard event?

if so, what should i do in AutoIt?

Edited by XEyE

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Thank you for your answer.

But, to be more direct, im playing an online-game which is protected by "Apollo Antihack System"

The HotKeySet in my script works on basicly every window exceipt that game.

I guess the game has higher priority.

if i still want to do so, does it mean i have to catch the every keyboard event?

if so, what should i do in AutoIt?

How about not cheating and playing the game as it was intended? Why do you think "Apollo Antihack System" is in place? It is to prevent you from attempting what you are now trying to do. Cheating sucks. It isn't nice, it isn't fair, and it most certainly doesn't make you liked by others when they find out you cheated against them. Edited by Volly

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

How about not cheating and playing the game as it was intended? Why do you think "Apollo Antihack System" is in place? It is to prevent you from attempting what you are now trying to do. Cheating sucks. It isn't nice, it isn't fair, and it most certainly doesn't make you liked by others when they find out you cheated against them.

Thank you!

But when I put your script in Autoit Editor, a couple of errors showed up.

How about not cheating and playing the game as it was intended? 
Why do you think "Apollo Antihack System" is in place? 
It is to prevent you from attempting what you are now trying to do. Cheating sucks.
 It isn't nice, it isn't fair,
and it most certainly doesn't make you liked by others 
when they find out you cheated against them.
Edited by XEyE

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