Influx Posted November 27, 2008 Share Posted November 27, 2008 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) Link to comment Share on other sites More sharing options...
Marlo Posted November 27, 2008 Share Posted November 27, 2008 Afraid i dont know about this : / Maybe you should look into the _IsPressed function. This way it doesnt lock the key. Click here for the best AutoIt help possible.Currently Working on: Autoit RAT Link to comment Share on other sites More sharing options...
ken82m Posted November 27, 2008 Share Posted November 27, 2008 (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 November 27, 2008 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 More sharing options...
Influx Posted November 27, 2008 Author Share Posted November 27, 2008 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 Link to comment Share on other sites More sharing options...
ken82m Posted November 27, 2008 Share Posted November 27, 2008 (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 November 27, 2008 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 More sharing options...
Influx Posted November 27, 2008 Author Share Posted November 27, 2008 I have to turn it off then lock then restart the script. Link to comment Share on other sites More sharing options...
ken82m Posted November 27, 2008 Share Posted November 27, 2008 Look at my last post here: http://www.autoitscript.com/forum/index.php?showtopic=85080Sounds like the same thing.Kenny "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 More sharing options...
ResNullius Posted November 28, 2008 Share Posted November 28, 2008 See if this helps: http://www.autoitscript.com/forum/index.ph...st&p=512706 Link to comment Share on other sites More sharing options...
Influx Posted November 29, 2008 Author Share Posted November 29, 2008 (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 November 29, 2008 by Influx Link to comment Share on other sites More sharing options...
Influx Posted November 30, 2008 Author Share Posted November 30, 2008 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? Link to comment Share on other sites More sharing options...
Influx Posted November 30, 2008 Author Share Posted November 30, 2008 PleasE? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now