Jump to content

Working on a new idea


iHonda
 Share

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?

explanation:

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

Link to comment
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()
        Do;---
            Sleep(10)
            $Diff = StringLeft(TimerDiff($Init) * 0.001, 7)
            TrayTip("", "One key has been pressed : " & $Diff & " sec(s)", 1, 4)
        Until Not _IsAnyKeyPressed()
    EndIf
WEnd
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...