Golbez Posted December 4, 2012 Share Posted December 4, 2012 im having a hard time trying to get this to work inside a loop. i can get it to work fine all by itself but then it seems to stop working inside the loop #cs ---------------------------------------------------------------------------- The point of this is to stop the Agent.exe process from running when d3 is started then idle untill it is detected again #ce ---------------------------------------------------------------------------- Global $process = "Agent.exe", $PID=0, $delay = 5000, $x=0 _check() Func setloop() While $x <> 1 Sleep($delay) _check() WEnd EndFunc Func _check() If ProcessExists($process) = 0 Then setloop() ElseIf ProcessExists($process) = 1 Then ProcessWaitClose($process) EndIf EndFunc Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 4, 2012 Moderators Share Posted December 4, 2012 Golbez,I have already pointed you to the Forum Rules - and now you ask for help in killing an anti-bot app for Diabolo 3? Your last 3 threads have been locked - you seem to make no effort to fit in here. Well, this is your last chance - one more out-of-line post from you and you go away permanently. I hope I make myself perfectly clear. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts