Sign in to follow this  
Followers 0
cypher175

Check System Wide If a Certain Process is Running from a specific location..?

5 posts in this topic

anybody know how to to do this...???

is it possible at all..???

I want to edit this script so that if this Autoit checker.exe app and c:\calc.exe are already running on one user account and then another user

simultaneously logs into their account on this same PC and runs this Autoit checker.exe app under their account, it will wait for the c:\calc.exe to

close on the previous users account before running it on the currently logged in users account..??

so both users are logged on at the same time, each with one instance of this Autoit checker.exe app running for them,

but only one instance of c:\calc.exe can be executed globaly from any of the logged in users Autoit checker.exe apps though while both users are

simultaneously running this Autoit checker.exe app.

so if one user logs off, then the other users Autoit checker.exe app will start c:\calc.exe and vice versa...

So i need some code to do something like this:

#include <Misc.au3>
_Singleton("checker.exe")
SLEEP(5000)
While 1

Check System Wide if c:\calc.exe is running
if YES Sleep(10000) then try again
If NO Start c:\calc.exe

Sleep(10000)
WEndoÝ÷ ÙƧ¶¬mçhæ­jYV«]¢)ÞyÛhi×h­ÈZ­¢Øb²Ç+m¡Ú0«b«$xºÚ"µÍÓÕ^RXÛÛÚ[ÛYH    ÓZØË]LÉÝÂÔÚ[Û]Û   ][ÝØÚXÚÙ^I][ÝÊBÓQT
L
BÚ[HBØØ[ ÌÍØÝYWÜ]H[ÙBØØ[ ÌÍØWÜHØÙÜÓÝ
    ][ÝØØ[Ë^I][ÝÊBÜ  ÌÍÚHHHÈ ÌÍØWÜÌVÌBYÔØÙÜÑÙ]]
    ÌÍØWÜÉÌÍÚWVÌWJHH   ][ÝØÎÌLØØ[Ë^I][ÝÈ[ ÌÍØÝYWÜ]HYB^]ÛÜ[Y^YÝ    ÌÍØÝYWÔ][[ ÌÎNÉ][ÝÉÌÎNÈ    [È ][ÝØÎÌLØØ[Ë^I][ÝÈ  [È ÌÎNÉ][ÝÉÌÎNÊBÛY
L
BÑ[[ÈÔØÙÜÑÙ]]
    ÌÍÝØÙÜÊBØØ[    ÌÍÚTQHØÙÜÑ^ÝÊ  ÌÍÝØÙÜÊBYÝ  ÌÍÚTQ[]Ù]ÜKLJBØØ[    ÌÍØTØÈHØ[
    ÌÎNÚÙ[Ì    ÌÎNË ÌÎNÚÛ   ÌÎNË ÌÎNÓÜ[ØÙÜÉÌÎNË   ÌÎNÚ[    ÌÎNË]Ô
L
K   ÌÎNÚ[    ÌÎNË ÌÎNÚ[    ÌÎNË ÌÍÚTQ
BYÝÐ^J    ÌÍØTØÊHÜÝ    ÌÍØTØÖÌH[]Ù]ÜLJBØØ[   ÌÍÝÝXÝHÝXÝÜX]J  ÌÎNÚ[ÌLIÌÎNÊBØØ[   ÌÍÚØWÑHÜ[ ÌÎNÔØK  ÌÎNÊBY   ÌÍÚØWÑHLH[ ÌÍÚØWÑHÜ[ÞÝ[Q   [È ÌÎNÉÌLÔØK ÌÎNÊBY   ÌÍÚØWÑHLH[ ÌÍÚØWÑHÜ[Ú[ÝÜÑ    [È ÌÎNÉÌLÔØK ÌÎNÊBY   ÌÍÚØWÑHLH[]Ù]ÜË ÌÎNÉÌÎNÊBØ[
    ÌÍÚØWÑ ÌÎNÚ[    ÌÎNË ÌÎNÑ[[TØÙÜÓ[Ù[ÉÌÎNË   ÌÎNÚÛ   ÌÎNË ÌÍØTØÖÌK    ÌÎNÜÌÎNËÝXÝÙ]  ÌÍÝÝXÝ
KÂ ÌÎNÚ[    ÌÎNËÝXÝÙ]Ú^J ÌÍÝÝXÝ
KÂ ÌÎNÜÌÎNË
BØØ[  ÌÍØT]HØ[
    ÌÍÚØWÑ ÌÎNÚ[    ÌÎNË ÌÎNÑÙ][Ù[Q[S[YQ^   ÌÎNË   ÌÎNÚÛ   ÌÎNË ÌÍØTØÖÌK    ÌÎNÚ[    ÌÎNËÝXÝÙ]]J   ÌÍÝÝXÝJK ÌÎNÜÝÌÎNË    ÌÎNÉÌÎNË    ÌÎNÚ[    ÌÎNË

BÛÜÙJ    ÌÍÚØWÑ
BYÝÐ^J    ÌÍØT]
HÜÝ[Ó[   ÌÍØT]Ì×JHH[]Ù]Ü
    ÌÎNÉÌÎNÊB]    ÌÍØT]Ì×B[[

Share this post


Link to post
Share on other sites



doesn't anybody know how to do this...??

Share this post


Link to post
Share on other sites

Hi,

IMO it doesn't matter what user starts calc.exe.

You only need to check in your app is a calc.exe running and if not then start it, right?

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Yeah, but how do you check system wide from all users if they are running c:\calc.exe..??

if multiple users are logged on running the checker.exe and one of them started c:\calc.exe I don't want any other users checker.exe to be able to start c:\calc.exe..

Other logged in users checker.exe should wait until c:\calc.exe closes from another logged in user before starting c:\calc.exe on thier account..

other wise, all the users who are logged in will all be running c:\calc.exe at the same time.. so system wide there would be multiple instances of c:\calc.exe running..

I want c:\calc.exe to be able to only run in one instance system wide no matter how many users are logged on at the same time all running their checker.exe app..

is there any code fore doing this..??

Share this post


Link to post
Share on other sites

i guess this is not possible then huh..??

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  
Followers 0