Sabrac Posted March 8, 2011 Posted March 8, 2011 ControlSend isn't work in my window, my window don't hav controlid, how can i send key inactive to my window without controlid???
Andreik Posted March 8, 2011 Posted March 8, 2011 What kind of window is, give us more informations. An alternative of ControlSend is ControlFocus+Send.
Sabrac Posted March 8, 2011 Author Posted March 8, 2011 (edited) This is game window: >>>> Window <<<< Title: ±ÍÈ¥(Сûë) Class: GhostSoul Position: 240, 926 Size: 1030, 793 Style: 0x16C00000 ExStyle: 0x00000108 Handle: 0x003E090C >>>> Control <<<< Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: >>>> Mouse <<<< Position: 678, 83 Cursor ID: 0 Color: 0x302C3C >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< >>>> Hidden Text <<<< I wanna send key to this window while it's inactive I was try this: HotKeySet("{F10}","ExitAuto") Func ExitAuto() Exit EndFunc $hWnd = WinGetHandle("[CLASS:GhostSoul]") While 1=1 ControlSend($hWnd,"","","{NUMPAD3}") Sleep(1000) WEnd but it's not work Edited March 8, 2011 by Sabrac
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