Jump to content
Sign in to follow this  
lopolop

sending UP

Recommended Posts

lopolop

how do i send the UP Key?

ok nvm new question...

how can i set a hotkey to send someting like

hotkeyset = ("^x")

Send ("123")

like that?

Edited by lopolop

Share this post


Link to post
Share on other sites
Stumpii

A quick look at the help file explains everything. Here is a little example anyway...

HotKeySet("1", "SendOne")
HotKeySet("2", "SendTwo")
HotKeySet("3", "SendThree")

;;;; Body of program would go here;;;;
While 1
    Sleep(100)
WEnd
;;;;;;;;

Func SendOne()
   Send("1")
EndFunc

Func SendTwo()
   Send("2")
EndFunc

Func SendThree()
   Send("3")
EndFunc

“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites
therks

Or

HotKeySet('^x', 'Numbers')

Func Numbers()
  Send('123')
EndFunc

While 1
  Sleep(100); Keep AutoIt running
WEnd

Share this post


Link to post
Share on other sites
lopolop

ooo i c i did it correctly but my auto it shut down didnt think that i had to loop a sleep thanks!


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  

×