Sign in to follow this  
Followers 0
idontknow

help with handle

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



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

When the words fail... music speaks

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

#4 ·  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

Share this post


Link to post
Share on other sites

still need help.Anyone help me pls :)

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  
Followers 0