There is why i needed those scripts....to make this:
There is a hack called M2bob,and i've got a crack of it... But the crack has some bugs:
It opens more game clients,when i need only 1 client.
And,my little sister usually stop my bot when she come to PC,so i needed the ne with MsgBox when ProcessNotExists.
Now,this is how i used them,and that's what i learned in 2 weeks only.
PHP Code:
$Form1 = GUICreate("M2Bob helper", 314, 75, 192, 124)
$Button1 = GUICtrlCreateButton("Nu opri BOB-ul!", 24, 16, 100, 20)
$Button2 = GUICTRLCreateButton ("Doar un proces", 200,16,100,20)
$Button3 = GUICTRLCREATEBUTTON ("Exit",120,50,100,20)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $Button1
_Hack()
Case $Button2
_Hack2()
Case $button3
_Hack3()
EndSwitch
WEnd
Func _Hack()
GUISetState(@SW_SHOW)
While 1
If Not ProcessExists("M2Bob 1.3.2.exe") Then
MsgBox(1,"Nu","Nu opri BOB-ul!!!!")
ExitLoop
EndIf
Sleep(200)
WEnd
EndFunc
Func _Hack2()
GUISetState(@SW_SHOW)
$Process = "metin2client.bin"
$ProcessId = 0
$Exists = False
While Sleep(10)
If Not $Exists Then $ProcessId = ProcessExists($Process)
If ($ProcessId > 0) And (Not $Exists) Then $Exists = True
If ($Exists) And (Not ProcessExists($ProcessId)) Then
$Exists = False
ElseIf ($Exists) And (ProcessExists($ProcessId)) Then
$ProcessList = ProcessList($Process)
If $ProcessList[0][0] > 1 Then
For $i = 1 To $ProcessList[0][0]
If $ProcessList[$i][1] <> $ProcessId Then
ProcessClose($ProcessList[$i][1])
EndIf
Next
EndIf
EndIf
WEnd
EndFunc
Func _Hack3()
While 1
ProcessClose ("Bobhelper.exe")
Wend
EndFunc
Do you guys think is good for only 2 weeks of learning?
And a login bot made with no help
PHP Code:
Func _username()
Send("username")
EndFunc
Func _password()
Send("pass")
EndFunc
While sleep(200)
Hotkeyset("{F1}","_username")
Hotkeyset("{F2}","_password")
WEnd
I know those scripts are EASY ,but i'm using AutoIt for only 2 weeks....