Jump to content

help with handle


 Share

Recommended Posts

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.

Link to comment
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.

Link to comment
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.

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

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