Code: Select all
FormatTime, Time, , h:mm tt
if Time >= 7:00 PM
{
Run, C:\Users\UserNameThatImTooShyToPostHere\AppData\Local\FluxSoftware\Flux\flux.exe
}
else Runwait, taskkill /im flux.exe
Any help is appreciated,
PaperTronics
Code: Select all
FormatTime, Time, , h:mm tt
if Time >= 7:00 PM
{
Run, C:\Users\UserNameThatImTooShyToPostHere\AppData\Local\FluxSoftware\Flux\flux.exe
}
else Runwait, taskkill /im flux.exe
Code: Select all
#NoEnv
#SingleInstance Force
path := "C:\Users\UserNameThatImTooShyToPostHere\AppData\Local\FluxSoftware\Flux\flux.exe"
SplitPath path, exe
SetTimer CheckFlux, 1000
Return
CheckFlux:
FormatTime hour, A_Now, H
if (hour >= 19 && hour <= 24)
{
if !WinExist("ahk_exe" exe)
Run % path
}
else
Process Close, % exe
Return
Code: Select all
DetectHiddenWindows, On
if WinExist("f.lux ahk_class ytWindow") ;normal
|| WinExist("F.Lux ahk_class ytWindow") ;portable
MsgBox, % "exists"
else
MsgBox, % "doesn't exist"
Code: Select all
FormatTime, Time, , h:mm: tt
DetectHiddenWindows, On
if WinExist("f.lux ahk_class ytWindow") if Time >= 7:00 PM
|| WinExist("F.Lux ahk_class ytWindow")
else
MsgBox, % "doesn't exist"
return
Users browsing this forum: LeafyWater and 166 guests