AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to disable extra CTRL keys that AHK is generating??

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
HKPolice



Joined: 16 Nov 2009
Posts: 7

PostPosted: Mon Nov 16, 2009 9:17 am    Post subject: How to disable extra CTRL keys that AHK is generating?? Reply with quote

I am using this script now:

Code:
Ins::Suspend
*LButton::
while GetKeyState("LButton", "P")  ; While the Mouse1 key is being held down physically.
{
Send {Blind}{Click}
SetMouseDelay 30
}
return


Even with the Blind command, I am STILL getting extra CTRL keys generated by AHK when holding ALT, Pressing Mouse1 then letting go of ALT.

This is driving me insane, can someone PLEASE tell me how to disable the extra CTRL inputs?

Thanks in advance!
Back to top
View user's profile Send private message
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Mon Nov 16, 2009 9:54 am    Post subject: Reply with quote

How are you determining that you are "getting extra CTRL keys generated by AHK"?

What program are you testing this script with ?
Back to top
View user's profile Send private message
HKPolice



Joined: 16 Nov 2009
Posts: 7

PostPosted: Mon Nov 16, 2009 9:59 am    Post subject: Reply with quote

Leef_me wrote:
How are you determining that you are "getting extra CTRL keys generated by AHK"?

What program are you testing this script with ?


It is showing in AHK's own Key history:

A4 038 d 0.00 Alt
01 000 i u 0.03 LButton
A4 038 d 0.00 Alt
01 000 s u 0.00 LButton
A4 038 d 0.03 Alt
A4 038 d 0.03 Alt
A4 038 u 0.02 Alt
A2 01D i d 0.00 Ctrl
A2 01D i u 0.00 Ctrl

Arghhh Sad

Is there any way for AHK to ignore all keyboard inputs? I tried preventing the keyboard hook from installing by putting #UseHook OFF in front of the LButton remap but the KB hook was still loading.
Back to top
View user's profile Send private message
rtcvb32



Joined: 17 Feb 2008
Posts: 289

PostPosted: Mon Nov 16, 2009 10:38 am    Post subject: Reply with quote

I have tried the script and i see the same thing, However the elapsed time is 0.00. It's entirely possible it's too fast for anything to pick up. Is it interfering in some way?

Easiest solution is NOT to press ALT and release it with this hotkey. But i don't see the Ctrl being an issue at this time.
Back to top
View user's profile Send private message Yahoo Messenger
HKPolice



Joined: 16 Nov 2009
Posts: 7

PostPosted: Mon Nov 16, 2009 10:51 am    Post subject: Reply with quote

rtcvb32 wrote:
I have tried the script and i see the same thing, However the elapsed time is 0.00. It's entirely possible it's too fast for anything to pick up. Is it interfering in some way?

Easiest solution is NOT to press ALT and release it with this hotkey. But i don't see the Ctrl being an issue at this time.


Yes, it is interfering with the games I play. CTRL changes weapons. This is a huge design flaw and there is a huge thread about it here: http://www.autohotkey.com/forum/viewtopic.php?t=22378&postdays=0&postorder=asc&start=0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group