Jump to content

need help about ProcessExists loop


Recommended Posts

hello all i'm new at autoit lang. first of all i wanna be honest i dont know when i should use while or for or do !! Is there a single reference has to be understood in simple language ؟؟

anyway i decided today to write some script doing this

$proc = ProcessExists("winbox.exe")

$calc = "C:\Users\Dr.BL@CKDeaTH\Desktop\calc.exe"


 if $proc = true then
    ProcessWaitClose($proc)
run($calc )

Else
   run($calc)
   endif

every thing is okay above but if i want this script loop for ever in memory i mean when the (winbox.exe) process exists do not run my (calc.exe) until the user closed (winbox.exe) and still check for ever ....

  1. if the user run winbox.exe  again close calc.exe
  2. if the user close winbox.exe run calc.exe

please i need it in simple way im still beginner

 

 
Edited by qassam
Link to comment
Share on other sites

  • Developers
11 minutes ago, qassam said:

Dr.BL@CKDeaTH

That name doesn't give a lot of encouraging hits on the internet. 

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

10 minutes ago, Jos said:

That name doesn't give a lot of encouraging hits on the internet. 

Jos

really ??? Is this a racist or what ؟؟؟
u can call ur self what u want names does not matter !!

** ur profile pic doesn't give a lot of encouraging :D

 

Edited by qassam
Link to comment
Share on other sites

  • Developers
10 minutes ago, qassam said:

really ??? Is this a racist or what ؟؟؟

Not a smart answer and not even close to being funny.

I simply made an observation and must say your answer doesn't take away any doubt but rather seem to confirm my fears.
So let's agree on one thing here: You better not post another answer even close to the last one as I will not accept that!

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

4 minutes ago, Jos said:

Not a smart answer and not even close to being funny.

I simply made an observation and must say your answer doesn't take away any doubt but rather seem to confirm my fears.
So let's agree on one thing here: You better not post another answer even close to the last one as I will not accept that!

Jos

this is my post im asking people for help if u don't ike this you can go out !

respect

 

Link to comment
Share on other sites

  • Developers
9 minutes ago, qassam said:

this is my post im asking people for help if u don't ike this you can go out !

It doesn't work like that so better accept that when any Mod or I don't like what is typed we will simply tell you and you will have to accept that.
There is no if or but about that, so hope I am clear as these are the last words I spend on you.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

21 minutes ago, Jos said:

It doesn't work like that so better accept that when any Mod or I don't like what is typed we will simply tell you and you will have to accept that.
There is no if or but about that, so hope I am clear as this is the last words I spend on you.

Jos

u can fuck ur self :D i solve it :D by the way im not fucken trying to programming any think evil :D it's just a test for something in my network so keep the fucken answer in ur fucken ass

fuck off ...

qassam

Link to comment
Share on other sites

  • Jos locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...