AutoHotkey Community

It is currently May 26th, 2012, 11:17 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: November 16th, 2009, 7:56 am 
Offline

Joined: November 16th, 2009, 7:55 am
Posts: 7
I'm using this simple script for rapidfire with the mouse:

Ins::Suspend
LButton::
Loop
{
SetMouseDelay 30
Click
If (GetKeyState("LButton","P")=0)
Break
}

But whenever CTRL, ALT, or Shift is pressed before pressing left click, it stops the macro from working. Any way to fix this??

Thanks :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2009, 8:15 am 
Offline

Joined: June 6th, 2006, 3:19 pm
Posts: 1654
Location: Denmark
Try
Code:
*LButton:
...
Return

_________________
RegEx Powered Dynamic Hotstrings
COM
AutoHotkey 2


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2009, 8:44 am 
Offline

Joined: November 16th, 2009, 7:55 am
Posts: 7
tonne wrote:
Try
Code:
*LButton:
...
Return


Thanks, that works!

But now I have another problem. For some reason, the program is pressing CTRL when I'm holding Alt + mouse1, then switching to A + mouse1. (I use ALT for strafing right and A for strafing left, CTRL for changing weapons)

So basically whenever I strafe right while firing, then start strafing left, the game changes weapons. :(

I tried unbinding CTRL and it stopped changing weapons so I know it's not the game's fault, its AHK pressing CTRL for some reason. Any ideas?

Thanks again!

Edit: just did some more testing and as long as I'm pressing ALT first while holding Mouse1, then as soon as I let go of ALT, AHK will send 2 CTRL keys for some reason. :(

I can see them in the key history & key info screen like this:

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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Cerberus, Google Feedfetcher, Maestr0, rbrtryn, Tipsy3000 and 65 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group