AutoHotkey Community

It is currently May 26th, 2012, 10:23 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: October 27th, 2009, 12:56 am 
Offline

Joined: October 24th, 2009, 7:04 pm
Posts: 17
In a game there are machine guns! I wanted to add single-fire ability to these weapons so I write something very simple. The LButton is fire weapon.

Code:
*XButton2::
{
   Send {LButton}
   Return
}


So this works perfect, and it makes me fire one single round from all weapons when needed. I used the * modifier because you can zoom (Shift for me).

Now my question is when I am holding down the zoom button and press XButton2, it will act erratic. It will always still fire the single shot, but it will act as if i tapped the "zoom" button, moving me out of zoom for a split second, even one out of 10 times successfully doing so.

I observed this behavior in two separate games. Explanation? Thanks


Last edited by Dave-X on October 27th, 2009, 12:58 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2009, 12:58 am 
Offline

Joined: October 24th, 2009, 7:04 pm
Posts: 17
Adding this...

Also I just noticed that without the modifier, I can still fire the hot key with any other key pressed, is Shift some kind of exception to the rule?


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: AndyJenk, Google [Bot], JSLover, Leef_me, patgenn123, rbrtryn, Yahoo [Bot] and 70 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