k, I combined your scripts into single kix script:
Code:
"press any key to end the script..."
do
if checkProcessRunning("fcintsrv.exe")
"yes, process is running..." ?
else
"nope, process is not running." ?
endif
for $sleeper = 1 to 45 ;sleeping 45 seconds
if kbhit()
$sleeper = 45
$keybhit = 1
sleep 1 ;sleeping 1 second, 45 times. this way script is more responsive to keyboard interrupt.
endif
next ; end of sleeper
until $keybhit
Function checkProcessRunning($strProcess)
Dim $Process
For Each $Process in GetObject( "winmgmts://." ).InstancesOf( "win32_process" )
If UCase( $Process.name ) = UCase( $strProcess )
$checkProcessRunning = 1
EndIf
Next
EndFunction
you didn't define the string server anywhere so I assumed it is "."
also, not sure did I miss something but the mailer seemed totally not related.
_________________________
!download
KiXnet