Jump to content

Recommended Posts

Posted (edited)

Hi all,

pls. can you help me?

I need to find out, how many times is a concrete script (f.e. "stop") runing?

This my script only knows, that some script is running. But i need to know, how many times is now running.

thankeyou

$g_szVersion = "My Script 1.1"
If WinExists($g_szVersion) Then 
$v = $v - 18
endif
Edited by danusko
Posted (edited)

Hi all,

pls. can you help me?

I need to find out, how many times is a concrete script (f.e. "stop") runing?

This my script only knows, that some script is running. But i need to know, how many times is now running.

thankeyou

$g_szVersion = "My Script 1.1"
If WinExists($g_szVersion) Then 
$v = $v - 18
endif
Hi,

what about counting the existing process script.exe? (Count have many times it runs parallelly)

So long,

Mega

Edited by th.meger

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

Posted

yes, first i wrote it wrong

i need to know count,

how many times is one script "stop" runs pararely...

do you know, how can i do this?

Posted

yes, first i wrote it wrong

i need to know count,

how many times is one script "stop" runs pararely...

do you know, how can i do this?

HI,

maybe soemthing like this

$array = ProcessList("Script.exe")
MsgBox(0,"",$array[0][0])

Change script.exe and give it a try.

So long,

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

Posted

thanks

but it doesnt works very good

i run script test, but when i run this script second, third....it still shows 0

why?

i need this,

i run script test.au3 once, it shows me 1, when i run this script second time (the first is still running), i want, in tool shows 2

like this, but it doesnt works,

can you help me with this?

thanke you very much

$array = ProcessList("test.au3")

while 1

; MsgBox(0,"",$array[0][0])

ToolTip($array[0][0])
wend
Posted (edited)

thanks

but it doesnt works very good

i run script test, but when i run this script second, third....it still shows 0

why?

i need this,

i run script test.au3 once, it shows me 1, when i run this script second time (the first is still running), i want, in tool shows 2

like this, but it doesnt works,

can you help me with this?

thanke you very much

$array = ProcessList("test.au3")

while 1

; MsgBox(0,"",$array[0][0])

ToolTip($array[0][0])
wend

Hi,

the script works with the process names. These are *.exe files. If you compile test.au3 to test.exe and then start my script from the post above it will work.

If you start au3 files e.g. out of Scite the running process is called CompileAU3.exe

Try this

$array = ProcessList("CompileAu3.exe")
MsgBox(0,"",$array[0][0])

I will test it, too.

So long,

Mega

Edited by th.meger

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

Posted

yes, i find it out now too :o

but it is problem because i need it run as au3, but it doesnt works when it isnt *.exe :geek:

do you know about some other possibility, how can i find out the count of scripts.au3 ?

thanks

Posted

Hmmh, seems to be not working. I can only run one script at the time in Scite.

So long,

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

Posted

Hmmh, seems to be not working. I can only run one script at the time in Scite.

So long,

Mega

If you compile

$array = ProcessList("CompileAu3.exe")
MsgBox(0,"",$array[0][0]/2)

to an *.exe and then you start scripts in Scite maybe

while 1
    sleep(100)
WEnd

and parallely while the scripts run in Scite you start the exe it will show how many scripts are currently running in Scite.

Hope that helps.

So long,

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

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
×
×
  • Create New...