Sign in to follow this  
Followers 0
Influx

breaking keys...

11 posts in this topic

It seems that when i set a large number of hot keys, some keys break until i lock my pc (win + l) then unlock

for example caps lock will be reversed or ctrl will get stuck down.

any way around this.

(This also happens when certain scripts don't exit correctly)

(I doubt this is of any use at all, but i know it happens every time i process kill an app made in AutoHotKey)

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

yeah, you could try adlib along with _ispressed to do the same thing as hotkeyset.

Here's an example:

#include <Misc.au3>
AdlibEnable("CheckHotKeys", 75)

While 1
    Sleep(10)
WEnd

Func CheckHotKeys()
    If _IsPressed("14") Then CapsLockFunction()
EndFunc

Func CapsLockFunction()
    MsgBox(0, "", "Caps Lock Pressed")
EndFunc

I only recommend using this on keys that are causing you a problem such as CTL and Caps Lock as you mentioned.

For everything else you should continue to use HotKeySet()

-Kenny

Edited by ken82m

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "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."

Share this post


Link to post
Share on other sites

The issue is key combos like CTRL+A CTRL+V SHIFT+A SHIFT +:) will cause this and lock the key down. Is there any way to check if ctrl, and shift are on and maybe send a command to "lift" the key(but only if the script has locked it, not if its held down by the user

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Not that I know of, I honestly have never heard of this problem before.

You sound try Send("{SHIFTUP}") or Send("{CTRLUP}")

You should also check windows make sure stickykeys keys hasn't kicked in.

When you lock and unlock your machine is the script running the whole time or do you start your script again after unlocking the machine?

Kenny

Edited by ken82m

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "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."

Share this post


Link to post
Share on other sites

I have to turn it off then lock then restart the script.

Share this post


Link to post
Share on other sites

Look at my last post here: http://www.autoitscript.com/forum/index.php?showtopic=85080

Sounds like the same thing.

Kenny


My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "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."

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Nice.

However this is not ideal because the letters dont show up untill after the user releases the keys.

And if the user insists on holding down shift and beating the keys the still send and cause an even bigger error.

so now my question is there maybe some low level dll to send keys with? ne that would simply accept the keystoke as-is and send it.

Edited by Influx

Share this post


Link to post
Share on other sites

Is there anyway to say if the key is down to actually send the key up and hold it up until the key stroke is sent?(even if user is holding it down?

Share this post


Link to post
Share on other sites

PleasE?

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  
Followers 0