and when I come back I want it to stop
actually it's for FTP and uTorrent - here is a thread - maybe you can help pleaes https://autohotkey.com/boards/viewtopic.php?f=5&t=41181
kind of like starting and stopping a screensaver - maybe there is already a built in way in Win 10 to run this?
what this will do is start and stop uTorrent and FTP download/upload ... and what ever else I want to do in IF condition or BAT script ...
handy no?
so I have this
Code: Select all
#Persistent
SetTimer, Check, 10000 ;check every 10 seconds for test purpose - real will be every 300 seconds = 5 minutes
var_START_flag = 1
var_STOP_flag = 0
return
Check:
If (A_TimeIdle>=5000) && (var_START_flag = 1) ;for test purpose - real will be every 300 seconds = 5 minutes
{
Run C:\z\FTP-START.bat
#Persistent
SetTimer, CheckOff, 5000 ;check every 5 seconds
var_STOP_flag = 1
}
Else
;MsgBox, "IN ELSE - A_TimeIdle = " %A_TimeIdle% " ---------- A_TimeIdlePhysical = " %A_TimeIdlePhysical% " AND varSTOP = '%varSTOP%'"
return
CheckOff:
If (A_TimeIdle<5000) && (var_STOP_flag == 1)
{
Run C:\z\FTP-STOP.bat
varSTOP = 0
var_START_flag = 1
}
return
all looking good?
thank you ...