topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 1:34 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Autohotkey/BlockInput Question  (Read 7216 times)

gr8guitar

  • Participant
  • Joined in 2011
  • *
  • Posts: 1
    • View Profile
    • Donate to Member
Autohotkey/BlockInput Question
« on: March 03, 2011, 05:06 PM »
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

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: Autohotkey/BlockInput Question
« Reply #1 on: March 04, 2011, 07:45 AM »
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>