Jump to content

Not sure if this is the right place to go, but i need help. I am trying to set up my computer in a way to be able to run a program where the keyboard will type out a series of commands on a loop.

 

I am trying to have it do this:

up arrow, Shift + f10, down arrow, enter, enter, and then a 20 second delay before starting the cycle over again.

 

If anyone has any advice on a program that can do this or has the knowhow to create one, any help or advice is greatly appreciated.

Link to comment
https://linustechtips.com/topic/1185388-can-anyone-help-me/
Share on other sites

Link to post
Share on other sites

Just now, kyleTay said:

Not sure if this is the right place to go, but i need help. I am trying to set up my computer in a way to be able to run a program where the keyboard will type out a series of commands on a loop.

 

I am trying to have it do this:

up arrow, Shift + f10, down arrow, enter, enter, and then a 20 second delay before starting the cycle over again.

 

If anyone has any advice on a program that can do this or has the knowhow to create one, any help or advice is greatly appreciated.

You can use AutoHotKey to make a script that does this.

I would just recommend setting up some key that can 'stop' and 'start' this sequence of keystrokes.

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
https://linustechtips.com/topic/1185388-can-anyone-help-me/#findComment-13535234
Share on other sites

Link to post
Share on other sites

  • 4 weeks later...
On 5/22/2020 at 4:30 AM, Priyansh_Singh said:

I use python you can use a module named pyautogui for this

This is very powerful and I ahve used it in the past for some fun lil automation scripts, and it does allow for a lot more powerful things to be done than what AHK offers, highly reccomended

Link to comment
https://linustechtips.com/topic/1185388-can-anyone-help-me/#findComment-13642171
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...

This AHK script does the following:

 

Waits for CTRL+Enter

When CTRL+Enter

> if not already running, sends the strokes sequence once, then repeats it every 20 seconds with a timer

> if already running, stops the timer

 

#NoEnv
#Persistent
#SingleInstance, Force

^Enter::
    if (!isRunning) {
        isRunning := 1
        GoSub, cycle
        SetTimer, cycle, 20000
    } else {
        isRunning := 0
        SetTimer, cycle, off
    }
    Return
    
cycle:
    Send, {Up}+{F10}{Down}{Enter}{Enter}
    Return

 

To change the trigger hotkey, replace line 5 at your convenience:

useful resources here

 

Let me know if it does the trick

Edited by JuliaAlphaDeltaEcho
Timer was set at 2 seconds instead of 20
Link to comment
https://linustechtips.com/topic/1185388-can-anyone-help-me/#findComment-13696931
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

×