BlackThick Posted July 30, 2009 Posted July 30, 2009 Hey all =) First of all i need to say that i´m nearly totally new to AutoIt >.< So i have a question... I want send key "1" to a hided window (to a game) to use one skill all the time. All i´ve got for now is that: While 1 Sleep(2) ;nice to CPU ;start this loop if ON Is ; True While $ON = True Sleep(2) ; delay send ("{1}") WEnd WEnd But then it just works when the window is open >_< Can anyone help me with that ? Thx to all .. greetings BlackThick
somdcomputerguy Posted July 30, 2009 Posted July 30, 2009 (edited) Function ControlSend<br><br>The AutoIt Window Info Tool will probably be helpful for you too. AutoIt Window Info Tool<br> Edited July 30, 2009 by snowmaker - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
RunningBot Posted July 30, 2009 Posted July 30, 2009 (edited) U want the key to send to the window that minizined? Edited July 30, 2009 by RunningBot
BlackThick Posted July 30, 2009 Author Posted July 30, 2009 Yes ! I don´t understand "ControlSend" >.< Where must I write down the Key which should be pressed ?
RunningBot Posted July 30, 2009 Posted July 30, 2009 First of all you need it to send it to that window whats the window name in the process ? and what key do u want to keep sending?
BlackThick Posted July 30, 2009 Author Posted July 30, 2009 I Want to send the key "1" to the that window. The name of it is: "SRO_Client [bullXeNiA]"
RunningBot Posted July 30, 2009 Posted July 30, 2009 (edited) this should work While 1 $hWin = WinGetHandle("SRO_Client") ControlSend($hWin, "", "" ,"1") WEnd i think that should of i hope if it does not then it because of 25 hours of none sleep Edited July 30, 2009 by RunningBot
BlackThick Posted July 30, 2009 Author Posted July 30, 2009 Still doesn´t work >_< $hWin = WinGetHandle("SRO_Client") Must that be the name of it in "Process" @ Taskmanager or the name of it in "Uses" @ Taskmanager ?
RunningBot Posted July 30, 2009 Posted July 30, 2009 well we could do controlclick find the coronate of were the skill is and spam right click while for tht windo try it While 1 $hWin = WinGetHandle("SRO_Client") ControlClick($hWin, "", "", "Right", 1, 510, 670) WEnd Ok find the coronate of the X , Y axies with the Autoit Window Info and change 510= x 670= y and that should do it sometime keystrokes are block by gamegaurd
BlackThick Posted July 30, 2009 Author Posted July 30, 2009 It works !!! Thx very much man >_< I <3 u >.< ^^
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now