Hi folks,
I want to build a VB application which can sit in the task bar after
windows start up and schedule do some job every about 10 hours.
Your generous help is appreciated!
Cheer!
Hi folks,
I want to build a VB application which can sit in the task bar after
windows start up and schedule do some job every about 10 hours.
Your generous help is appreciated!
Cheer!
See this link regarding how to get your app in the system tray.
To make your App run at startup, either put it in the Start Up folder, or add a registry entry to the following path: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run.
Then use GetTickCount() to check if 10 hours have past.
Private Declare Function GetTickCount& Lib "kernel32" ()
Private Sub Something()
tic& = ((GetTickCount&) / 60000)
MsgBox Str$(tic&)
End Sub
Thanks Megatron and Akia ,
I want the VB application be triggered automatically to do something every ten hours when it is dormant at the system tray.
Thanks
Use a timer to check the system time at a designated interval, and do something when a specific time is reached.
It works!
Have a nice day, hack!
:)