Jump to content
Sign in to follow this  

Working on a new idea

Recommended Posts


question is: Is there a way to check if certain keys have been pressed in a certain order in a limited amount of time?


I was driving home from my christmas eve dinner and had the thought " why not just completely remove the password input box" ive been having issues with a script recently used to basically cover your desktop, it was just an idea to keep the teacher from seeing me browsing the forum or playing flash games in class haha. Well any way the problem im having is that when i have it set to ask for a password the input control pops up over the image that i have covering the screen, then when you need to call the cover again it shows the input control not the image not to mention the input looks quite ugly. so i figured why not just remove that input then realized i have no idea how to check which keys are being pressed.

yeah the explanation is long and kinda running, but a bit of help would be welcome.

ill post the original code as soon as i get on my lap top

A great place to start Autoit 1-2-3

Share this post

Link to post
Share on other sites

Check keys pressed : IsPressed UDF with it you can check for some specified keys and you have many functions :)

Check how many time keys have been pressed use this :

#include <IsPressed_UDF.au3>

While 1
    If _IsAnyKeyPressed() Then
        $Init = TimerInit()
            $Diff = StringLeft(TimerDiff($Init) * 0.001, 7)
            TrayTip("", "One key has been pressed : " & $Diff & " sec(s)", 1, 4)
        Until Not _IsAnyKeyPressed()


OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control


Share this post

Link to post
Share on other sites

awesome! ill give it a try in the mornin its way too late to be doing anything serious

A great place to start Autoit 1-2-3

Share this post

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
Sign in to follow this