Jump to content
Sign in to follow this  
McDope

Checking for hidden process

Recommended Posts

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 :D )

Share this post


Link to post
Share on other sites

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 :D

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 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.

Share this post


Link to post
Share on other sites

i just build it in and tested...

it works fine :D

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 :D

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 by McDope

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...