| View previous topic :: View next topic |
| Author |
Message |
kolinaaa Guest
|
Posted: Mon Jun 01, 2009 11:41 pm Post subject: bind 2 keys into 1 |
|
|
hi all
i spent last few hours trying to bind 2 kyes in to 1
to be specific im trying to bind 2+Rbutton so i can play Sacred 2 (game) a bit easyer.
so this is what i tryed
2::
send, {2}
send, {Rbutton}
it works fine when i test it in notepad. but in game when i press 2 only right click happens.
so i tough maybe i need a bit delay, so i tryed
2::
send, {2}
sleep 100
send, {Rbutton}
alsou 2 wont be pressed in game
then i tough why not try
z::2
x::
send, {z}
sleep 100
send, {Rbutton}
so ingame when i press X it shoud execute z(2) and Rbutton
but again only Rbutton works
if i try just this
z::2
and when i press Z ingame 2 works..
i cant think of anything else so if anyone can help me i would realy appriciate it.
[Title edited. Please write descriptive titles for your topics. ~jaco0646] |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Jun 01, 2009 11:45 pm Post subject: |
|
|
| Code: | 2::
{
send, 2
sleep 100
send, {RButton}
}
return
x::
{
send, z
sleep 100
send, {RButton}
}
return
|
RTFM  |
|
| Back to top |
|
 |
kolinaaa Guest
|
Posted: Mon Jun 01, 2009 11:58 pm Post subject: |
|
|
thanks
but it didnt work
2 is not responding again.. |
|
| Back to top |
|
 |
kolinaaa Guest
|
Posted: Tue Jun 02, 2009 12:01 am Post subject: |
|
|
oh and in your code it shoud be
Z::
{
send, 2
?
anyways still not working  |
|
| Back to top |
|
 |
Frankie
Joined: 02 Nov 2008 Posts: 2850
|
Posted: Tue Jun 02, 2009 12:17 am Post subject: |
|
|
Hotkeys don't usualy work in full screen mode of video games. Is it full screen? _________________ aboutscript ⍟ apps ⍟ scripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run |
|
| Back to top |
|
 |
tidbit
Joined: 09 Mar 2008 Posts: 1807 Location: Minnesota, USA
|
Posted: Tue Jun 02, 2009 12:50 am Post subject: |
|
|
also, to send a key that is the same as the hotkey, you need to add a $.
| Code: | $2::
send, 2
sleep, 100
send, {rbutton}
return
|
like so. _________________ rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
Even monkeys fall from trees. - Japanese proverb |
|
| Back to top |
|
 |
lbrtdy
Joined: 13 Apr 2009 Posts: 101
|
Posted: Tue Jun 02, 2009 1:04 am Post subject: |
|
|
maybe try something like this in the autoexecute part of your script (top),
or
|
|
| Back to top |
|
 |
|