Jump to content

Code translation


zm0
 Share

Recommended Posts

hi, i'v found some autohotkey code, here example:

WinGet, wowid, List, World of Warcraft 
#IfWinActive, World of Warcraft
  ;********* Run UP**************
   W::
   ControlSend,,{W down},  ahk_id %wowid1%
   ControlSend,,{W down},  ahk_id %wowid2%
   KeyWait W
   ControlSend,,{W up},  ahk_id %wowid1%
   ControlSend,,{W up},  ahk_id %wowid2%
return

thats just for running up in 2 world of warcraft windows at the same time. "w" is the comand to run up in wow.

i'v tryed it using

HotKeySet("{UP}", "goup") 
while 1
wend
Func goup()
controlsend("World of Warcraft","","","{w down}")
sleep( 100 )
controlsend("World of Warcraft","","","{w up}")
EndFunc

but the problem with it is.. it sends wwwwwwww to the application if i hold the key down, and there is no application scanning to use controlsend to the right window.

is there anyone who can translate it to Autoit code?

sorry for my bad english ^^

thank you

greetings zm0.

Link to comment
Share on other sites

hi, i'v found some autohotkey code, here example:

WinGet, wowid, List, World of Warcraft 
#IfWinActive, World of Warcraft
 ;********* Run UP**************
   W::
   ControlSend,,{W down},  ahk_id %wowid1%
   ControlSend,,{W down},  ahk_id %wowid2%
   KeyWait W
   ControlSend,,{W up},  ahk_id %wowid1%
   ControlSend,,{W up},  ahk_id %wowid2%
return

thats just for running up in 2 world of warcraft windows at the same time. "w" is the comand to run up in wow.

i'v tryed it using

HotKeySet("{UP}", "goup") 
while 1
wend
Func goup()
controlsend("World of Warcraft","","","{w down}")
sleep( 100 )
controlsend("World of Warcraft","","","{w up}")
EndFunc

but the problem with it is.. it sends wwwwwwww to the application if i hold the key down, and there is no application scanning to use controlsend to the right window.

is there anyone who can translate it to Autoit code?

sorry for my bad english ^^

thank you

greetings zm0.

noone?

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...