Sign in to follow this  
Followers 0
EniamaJ

Hotkey Help

4 posts in this topic

i am not to good with autoit3 and i want to creat a program that will do the following

use a set hotkey to press set of keys like if i was to make a script with a hotkey F1 and when u hit F1 it presses the keys "A" and "B" etc

ive tried everything and cant seem to do it im sure its simple and im overlooking something very minor thanks in advanced


[font="Courier"]Dont do things bass ackwards?[/font]

Share this post


Link to post
Share on other sites



i am not to good with autoit3 and i want to creat a program that will do the following

use a set hotkey to press set of keys like if i was to make a script with a hotkey F1 and when u hit F1 it presses the keys "A" and "B" etc

ive tried everything and cant seem to do it im sure its simple and im overlooking something very minor thanks in advanced

Try this:

HotKeySet("{F1}","Help")

While 1
 ; sleeping
  sleep(50)
Wend

Func Help()
   Send('AB')
EndFunc

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Worked great now i need to get it to send in the fullscreen game :D


[font="Courier"]Dont do things bass ackwards?[/font]

Share this post


Link to post
Share on other sites

Games capture many of the keys. look for unmapped keys and try those.

Help file under send and sendkey list.

pause and scroll lock work on many games.

HotKeySet("{pause}","Help")

While 1
; sleeping
 sleep(50)
Wend

Func Help()
  Send('AB')
EndFunc

Start up the autoit script, hit the pause to make sure it is running, and then start up your game and give it a shot.

You can also have it just do the send to see if your game will ever see the A and B key. use a long delay just for testing.

While 1
; sleeping
 sleep(60000); 1 min delay
send('AB')
Wend

This can help see if it is the hotkey or the keys that are being filtered out.


AutoIt3, the MACGYVER Pocket Knife for computers.

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