Jump to content
Sign in to follow this  
adds

loop help please

Recommended Posts

adds

ello

im making a programme for my laptop as the touchpad driver keeps locking up and crashing and i want a programme which will restart the process. so far i have this

CODE
#include <process.au3>

If Not ProcessExists ("SynTPEnh.exe")

Then Run (C:\Windows\System32\DriverStore\FileRepository\synpd.inf_97429c2a\SynTPEnh.exe)

Else Sleep (3000)

EndIf

how can i keep this open and running? and how can i add it to start at start up?

thanks adds

Share this post


Link to post
Share on other sites
UPSman2

while 1
If Not ProcessExists ("SynTPEnh.exe")
   Then Run (C:\Windows\System32\DriverStore\FileRepository\synpd.inf_97429c2a\SynTPEnh.exe)
Else Sleep (3000)
wend
EndIf

Share this post


Link to post
Share on other sites
adds

cheers bro

Share this post


Link to post
Share on other sites
martin

while 1
If Not ProcessExists ("SynTPEnh.exe")
   Then Run (C:\Windows\System32\DriverStore\FileRepository\synpd.inf_97429c2a\SynTPEnh.exe)
Else Sleep (3000)
wend
EndIf
I think you meant more like this (I hope you meant..)

While 1
    If Not ProcessExists("SynTPEnh.exe") Then
        Run(C:\Windows\System32\DriverStore\FileRepository\synpd.inf_97429c2a\SynTPEnh.exe)
    Else
        Sleep(3000)
    EndIf
WEnd

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
TnTProductions

if you look at the thousands of other posts here you'll always see the while1 wend functions used just check alot :)


"FREEDOM is not FREE""Its a good thing war is so terrible, or we grow too fond of it" -Robert E. Lee[quote]Firestrom: global $warming = False[/quote]My scripts:Desktop Cleaner---->Total Downloads:167;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111111;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;"a wise man once said why use your skills when we have technology"

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  

×