Hi,
i know how to get PID of a process,but i would like to know how to handle a process,this is what i have done but it is not working,
i know how to get PID of a process,but i would like to know how to handle a process,this is what i have done but it is not working,
Can som1 tell me how to use Process id and get handle of process .tyQuote:
Func Start1()
ToolTip('Non-PK Map Fog Leveler Enabled". To pause press "Pause"',0,0)
$pid1=WinGetProcess("[ACTIVE]","#327701")
$pid2=WinGetProcess("[ACTIVE]","Button69")
MsgBox(4096, "PID is", $pid1)
$hprocess = $pid1
$hprocess = $pid2
$pid1 = ControlClick("[Conquer] Raiding Clans", "", "Right", 1, 182, 22)
$pid1 = ControlClick("[Conquer] Raiding Clans", "", "Left", 1, 573, 381)
Sleep(1000)
$pid1 = ControlClick("[Conquer] Raiding Clans", "", "Right", 1, 573, 381)
$pid2 = ControlClick("[Conquer] Raiding Clans", "", "Right", 1, 182, 22)
Sleep(6000)
$pid1 = ControlClick("[Conquer] Raiding Clans", "", "Left", 1, 426, 383)
Sleep(1000)
$pid1 = ControlClick("[Conquer] Raiding Clans", "", "Right", 1, 426, 383)
$pid2 = ControlClick("[Conquer] Raiding Clans", "", "Right", 1, 182, 22)
Sleep(6000)
EndFunc