Jump to content

Hotkey Help


Recommended Posts

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]
Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...