McDope Posted June 27, 2006 Posted June 27, 2006 Hi, i need to check if a process is runing... so far so good but this process hides itself, i cant see it in the processes-tab of taskman and also if i check in my script it will not be found. then i tried to check for the window (SRO_Client is the window title, CLIENT the class) but this is also not found. is there someway to detect if the process or the window is existing? --McDope-- (sry for my english )
Thatsgreat2345 Posted June 27, 2006 Posted June 27, 2006 well you dont need the window title as long as its the active one why not just do a WinKill('') and i didnt think it was SRO_Client but SRO Client
McDope Posted June 27, 2006 Author Posted June 27, 2006 (edited) i dont wont to kill it, i just want to check if the process (or the window) exist... and it is SRO_Client, it stands so in the taskbar and WindowInfo said the same Edited June 27, 2006 by McDope
Moderators SmOke_N Posted June 27, 2006 Moderators Posted June 27, 2006 (edited) i dont wont to kill it, i just want to check if the process (or the window) exist... and it is SRO_Client, it stands so in the taskbar and WindowInfo said the same Is that the window Title or the Class? Edit: Oops, CLIENT, I see: $GetWin = _WinExistsHiddenExe('CLIENT') If $GetWin Then MsgBox(64, 'Info:', 'Window Name: ' & $GetWin & ' Exists') Func _WinExistsHiddenExe($sClass) $OptWTMM = Opt('WinTitleMatchMode', 4) Local $sWinTitle = WinGetTitle('classname=' & $sClass) Opt('WinTitleMatchMode', $OptWTMM) If WinExists($sWinTitle) Then Return $sWinTitle Return 0 EndFunc Edited June 27, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Thatsgreat2345 Posted June 27, 2006 Posted June 27, 2006 ill go check it out at my neighbors tommorow since i deleted silkroad but he still has it installed ull just have to wait
McDope Posted June 27, 2006 Author Posted June 27, 2006 (edited) i just build it in and tested... it works fine many thx to you, btw: which server are you gaming on? ^^ ps: i need this for a lil restarter. im playing on oasis-server, there often happens that game will kick you out with "Disconnected to Server" Message if the server is to full. i dont like this crazy clicking around 10million times to login in EDIT: hmm, to bad. filling in the fields for name/pw with Send dont work, and i dont know the control id (WindowInfo dont show it)... any hints or should i say goodbye to the idea for an autologin? Edited June 27, 2006 by McDope
Thatsgreat2345 Posted June 27, 2006 Posted June 27, 2006 i quit but i was on zion ( think that was it) was a level 30-40 sumtin forget though so long ago
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now