@bobbyjayblack
If you In Game, then you can retreive your player GUID
Exemple :
Code:
;;--------------------------------------------------------------------------------
; Function: CheckInGame()
; Description: Check if we are in Game or Not by searching player GUID
;
; Note(s): Allow to prevent error while not ingame
;;--------------------------------------------------------------------------------
func CheckInGame()
global $Ingame=0
if $_debug then ConsoleWrite("-----Checking if In Game------" &@crlf)
$_CurOffset = $_itrObjectManagerD
$_Count = _MemoryRead($_itrObjectManagerCount, $d3, 'int')
for $i = 0 to $_Count step +1
$_GUID = _MemoryRead($_CurOffset+0x4, $d3, 'ptr')
if $_GUID = 0x77BC0000 Then
if $_debug then ConsoleWrite("We are In game: " & ", GUID: " & $_GUID &@CRLF)
$Ingame=1
ExitLoop
EndIf
$_CurOffset = $_CurOffset + $_ObjmanagerStrucSize
Next
if $_GUID <> 0x77BC0000 Then
if $_debug then ConsoleWrite("We Not In game: " & ", GUID: " & $_GUID &@CRLF)
EndIf
EndFunc ;==>CheckInGame
Concerning Clicking leave game buttons, i think we don't have the tools to retrrive them using provided Uds. But to leave you just have to do some controlsend, controlclick which can be done minimized.