Jump to content

Temporarily Disable Keys


ken82m
 Share

Recommended Posts

EDIT: I managed to get it by modifying another UDF I had.

http://www.autoitscript.com/forum/index.php?showtopic=85171

Thanks,

Kenny

Edited by ken82m

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Link to comment
Share on other sites

ahh ok thanks I'll see if I can figure that one out :)

Thanks.

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Link to comment
Share on other sites

Damn all that searching for the DLL and it was built into the api functions.

One question, I found these in WinAPI.au3

Global Const $KF_EXTENDED = 0x100
Global Const $KF_ALTDOWN = 0x2000
Global Const $KF_UP = 0x8000
Global Const $LLKHF_EXTENDED = BitShift($KF_EXTENDED, 8)
Global Const $LLKHF_INJECTED = 0x10
Global Const $LLKHF_ALTDOWN = BitShift($KF_ALTDOWN, 8)
Global Const $LLKHF_UP = BitShift($KF_UP, 8)

There is none for the "windows" keys

Does anyone know what I would set a variable to for them

Thanks,

Kenny

Edited by ken82m

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Link to comment
Share on other sites

that did it thanks man :)

i just added return 1 to that case you gave me

Case BitOR($flags, 1)
    ConsoleWrite("$WINKEY Down" & @LF)
    return 1

something strange though, the windows key gets stuck down

after hutting the start button while the script is running hitting R by

itself for exmaple bring up run

I only noticed because it was still running when I started typing this reply.

Thanks,

Kenny

Edited by ken82m

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Link to comment
Share on other sites

that did it thanks man :)

i just added return 1 to that case you gave me, magic :)

something strange though, it shouldn't be a problem in this case

after I hit the windows key during the script the letter M stops working....

I only noticed because it was still running when I started typing this reply.

Thanks,

Kenny

Have u tried to delete that ''return 1'' u have added?

Link to comment
Share on other sites

I managed to modify another UDF I dug out which works perfectly.

http://www.autoitscript.com/forum/index.php?showtopic=85171

But thanks for all your help :)

Kenny

Edited by ken82m

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

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...