Erel,
Please have a look at my program.
I activate the "Hardware1.RunAppAtTime" based on Timer1_Tick.
Soon after I run the program, I switch off the device (Not to power off ya..)
Then I wait, but the
Hardware1.RunAppAtTime(AppPath & "\TurnOtherAppON.exe", x)
never turns on the TurnOtherAppON.exe.
What is the best sub to put the Hardware1.RunAppAtTime?
Should it be at the APP_START?
Please enlighten!:sign0085:
Sub Globals
End Sub
Sub App_Start
AddForm("Form1","Form1")
Form1.Show
Hardware.New1
AddTimer("Timer1")
Timer1.Enabled = True
Timer1.Interval = 60000
AddTimer("Timer2")
Timer2.Enabled = True
Timer2.Interval = 1000
End Sub
Sub Timer1_Tick
x = TimeParse("17:10")
x = DateAdd(t,0,0,0)
Hardware1.RunAppAtTime(AppPath & "\TurnOtherAppON.exe", x)
End Sub
Sub Timer2_Tick
Sound("tick.wav")
End Sub