Page 1 of 1

Weekly open web page

Posted: Feb 18th, ’25, 16:33
by rltidd27
I wish to weekly open a web page. I have a shortcut that works to open the web page. However I have not figured out how to make it open it on a weekly schedule.
Any help is appreciated.

Re: Weekly open web page

Posted: Feb 18th, ’25, 19:06
by Tom
For example, Type: Command

Code: Select all

settimer, Action, 36000000   ;1 hour
return

Action:
if (A_DDD="Sun") and (A_Hour=8)
{

	Run, www.fastkeysautomation.com  ;replace with your code
	
}
return
Similar:
viewtopic.php?t=2661

Re: Weekly open web page

Posted: Feb 19th, ’25, 01:33
by rltidd27
I copied yours in and have this:
Code: Select all

settimer, Action, 36000000 ;1 hour
return

Action:
if (A_DDD="Sun") and (A_Hour=8)
{

Run, www.fastkeysautomation.com

}
return

It gives me this error:
Error at line 7.
Line Text: Code: Select all
Error: This line does not contain a recognized action.
The program will exit.

Sorry, I do not write much code. What am I doing wrong?

Re: Weekly open web page

Posted: Feb 19th, ’25, 07:10
by Tom
You need to remove “Select all” line.

Re: Weekly open web page

Posted: Feb 19th, ’25, 10:39
by rltidd27
That worked. Now I will wait to see if it runs.
Thanks
Rick

Re: Weekly open web page

Posted: Feb 19th, ’25, 17:24
by Tom
The code is set to run the software each Sunday between 8.00 and 9.00. You can change this in the script. If you want more precise setting, shorten the timer frequency (ms).

Re: Weekly open web page

Posted: Mar 25th, ’25, 03:41
by kensonplays
Tom wrote: Feb 18th, ’25, 19:06 For example, Type: Command

Code: Select all

settimer, Action, 36000000   ;1 hour
return

Action:
if (A_DDD="Sun") and (A_Hour=8)
{

	Run, www.fastkeysautomation.com  ;replace with your code
	
}
return
Similar:
viewtopic.php?t=2661
Is this based on 12 hr or 24 hr time?

Re: Weekly open web page

Posted: Mar 25th, ’25, 06:27
by Tom
A_Hour is a current 2-digit hour (00-23) in 24-hour time (for example, 17 is 5pm).

Re: Weekly open web page

Posted: Mar 27th, ’25, 02:30
by kensonplays
Tom wrote: Mar 25th, ’25, 06:27 A_Hour is a current 2-digit hour (00-23) in 24-hour time (for example, 17 is 5pm).
I prefer 12 hr time, is there a way to do it with that?