Help with a code

09/01/2010 21:27 rockangel#1
Hello!

I was looking on lolkops autopot and i am blocked at this section :

Code:
Func GetHandle($char)
	Local $list = WinList("[CLASS:CLIENT]")
	For $i = 1 To $list[0][0]
		Local $mid = memopen(WinGetProcess($list[$i][1]))
		Local $name = memread($mid, $eCharname, 'char[12]')
		If $name = $char Then
			memclose($mid)
			Global $e = 1
			Global $s = 0
			Global $z = 0
			Return $list[$i][1]
		EndIf
		Local $name = memread($mid, $sCharname, 'char[12]')
		If $name = $char Then
			memclose($mid)
			Global $s = 1
			Global $e = 0
			Global $z = 0
			Return $list[$i][1]
		EndIf
		Local $name = memread($mid, $zCharname, 'char[12]')
		If $name = $char Then
			memclose($mid)
			Global $s = 0
			Global $e = 0
			Global $z = 1
			Return $list[$i][1]
		EndIf
		memclose($mid)
	Next
EndFunc   ;==>GetHandle
Can somebody explain me what are $s,$e,$z for (what do they represent , variables for ... )? I would appreciate it much!

Best regards,
Robert
09/02/2010 02:12 theoneofgod#2
It appears that they are declared inside a function, which they are never used in.
For me to know what they are for, i will need to see the functions that $s, $e, $z exists in, since they are Global.