Jump to content

Recommended Posts

Posted

i use autoit get info and get my game client's handlde is blank.Used wingethandle,_WinAPI_FindWinDow but get blank too.

Any help me pls.How can i get its handle.

thx.

And how can i send keys to this game when inactive.I tried controlsend,_SendMessage,_WinAPI_PostMessage but not work.

Game which i'm playing is wulin2.and ZXOnline too.

Posted

i use autoit get info and get my game client's handlde is blank.Used wingethandle,_WinAPI_FindWinDow but get blank too.

Any help me pls.How can i get its handle.

thx.

And how can i send keys to this game when inactive.I tried controlsend,_SendMessage,_WinAPI_PostMessage but not work.

Game which i'm playing is wulin2.and ZXOnline too.

Use WinList().
Posted (edited)

i use autoit get info and get my game client's handlde is blank.Used wingethandle,_WinAPI_FindWinDow but get blank too.

Any help me pls.How can i get its handle.

thx.

And how can i send keys to this game when inactive.I tried controlsend,_SendMessage,_WinAPI_PostMessage but not work.

Game which i'm playing is wulin2.and ZXOnline too.

Try This...

Opt ('WinTitleMatchMode','2')
$Game_Name = ('')
$Full_Title = WinGetTitle ($Game_Name)
$HWnD = WinGetHandle ($Full_Title)
If IsHWnD ($HWnD) Then 
ConsoleWrite ('Success!' & @CRLF)
$Sent = _MySend ('This Is A Test Line.')
If $Sent = '1' Then 
ConsoleWrite ('Data Was Sent To The Game!' & @CRLF)
Else
ConsoleWrite ('Failed To Send Data To Game!' & @CRLF)
EndIf
Else
ConsoleWrite ('Failure!' & @CRLF)
EndIf 

Func _MySend ($Data)
$Send = ControlSend ($Full_Title, '','', $Data)
If $Send < '0' Then Return '0'
If $Send > '0' Then Return '1'
EndFunc

Edit : The Only Thing " In Theory " That Could Stop " _MySend " Would Be Some Type Of Anti-Hacking System (I.E. Game-Guard)

Hope This Helps!

Edited by John2006

Latest Projects :- New & Improved TCP Chat

Posted (edited)

Thx for helping.But its not work:(.Cant send '{F1}'

Tried winlist() for get handle from process but cant either.:)

Edited by idontknow

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
×
×
  • Create New...