Jump to content

Set a macro to run at a specific time

draifetee

Hi!

I would like to know if there is a program in which I can set a macro to run at a specific time, for example at 10pm.

Thanks in advance!

Link to comment
Share on other sites

Link to post
Share on other sites

Most things can be done by the Windows Task Scheduler. Stating programs or executing a script.

You can specify time or any other trigger.

Link to comment
Share on other sites

Link to post
Share on other sites

12 minutes ago, Dujith said:

Most things can be done by the Windows Task Scheduler. Stating programs or executing a script.

You can specify time or any other trigger.

But how would I set up a stroke of keys?

Link to comment
Share on other sites

Link to post
Share on other sites

13 minutes ago, draifetee said:

But how would I set up a stroke of keys?

Via a Powershell script

$myshell = New-Object -com "Wscript.Shell"
$myshell.sendkeys("^%{DELETE}")

This would send Ctrl + Alt + Delete (^=Ctrl, %=Alt)

You can find the keys with a quick google

 

You can even specify which window it has to send the keys too

$myshell.AppActivate('title of the application window')
Sleep 1

The Sleep is needed to wait till the window is active. Adjust as needed.

Link to comment
Share on other sites

Link to post
Share on other sites

So my solution was:

I installed a software program called "jitbit macro recorder" 

Then I created my macro and compiled it as an EXE.

After that I went into Windows Task Scheduler and added a Task that opens my EXE. file and runs it at 11pm every day

 

Hope I helped you guys and thanks also to Dujith for helping!

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×