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 

Shift key problem.

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





PostPosted: Sat Oct 03, 2009 5:24 pm    Post subject: Shift key problem. Reply with quote

Hi there, I made a simple script to change hotbars the same time I change weopons in an online game, the script is as follows;

______________
f4:: ;
{
send {f7}
Send {f1}
sleep 10
return
}
f5:: ;
{
Send {f8}
Send {f2}
sleep 10
return
}
f6:: ;
{
Send {f9}
Send {f2}
sleep 10
return
}
________________


The script works, the issue im having is when I hold down the shift key to sprint in game, the script doesnt work. Can someone help show me how I incorporate the possiblility that I may have shift held down in the script?
Back to top
TchnclFl



Joined: 29 Jul 2009
Posts: 48

PostPosted: Sat Oct 03, 2009 6:09 pm    Post subject: Reply with quote

Putting a * in front of the hotkeys should do the trick. That makes the hotkey still run even if a "modifier" is being held.

Code:
*f4::
msgbox, your script goes here
return

_________________
Click here to get free games and computer supplies! It's easy and fun! CLICK ME!

EasyAHK
Back to top
View user's profile Send private message
Cango
Guest





PostPosted: Sat Oct 03, 2009 7:22 pm    Post subject: Reply with quote

Much appreciated, worked a charm.

Was pullin my hair out for hours trying to get it to work, only to find it was 1 cymbol!!! >8[

Thanks alot.
Back to top
TchnclFl



Joined: 29 Jul 2009
Posts: 48

PostPosted: Sat Oct 03, 2009 11:48 pm    Post subject: Reply with quote

Cango wrote:
Much appreciated, worked a charm.

Was pullin my hair out for hours trying to get it to work, only to find it was 1 cymbol!!! >8[

Thanks alot.


Glad to help Smile.
_________________
Click here to get free games and computer supplies! It's easy and fun! CLICK ME!

EasyAHK
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