ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Skrommel's Software

Autohotkey/BlockInput Question

(1/1)

gr8guitar:
Hello, I am new to AutoHotKey, I am trying to use BlockInput but it requires a [CTRL][q] input from the keyboard. 1) what command looks for the input and 2) is there a way to bypass the keyboard input so it can run automatically (say 10 minutes while doing a backup)? [email protected], thank you.

jgpaiva:
The following code (based on BlockInput):

--- ---#SingleInstance,Force

applicationname=BlockInput

Run, <INSERT HERE BACKUP SCRIPT TO RUN>

BlockInput,On

counter:= <INSERT HERE THE TIME IN SECONDS TO BLOCK INPUT>

Loop,%delay%
{
  ToolTip,BlockInput resumes in %counter% seconds
  counter-=1
  Sleep,1000
}
ToolTip
BlockInput,Off
Return

Should do what you're looking for.

<WARNING: this is untested code, be careful when testing it>

Navigation

[0] Message Index

Go to full version