| Author |
Message |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Tue Nov 24, 2009 6:58 pm Subject: 2 sets of keystrokes with 1 joystick |
Found the solution.
Loop 26 ;as many times as many hotkeys
Hotkey,2JOY%A_Index%,Send
Hotkey,2JOY26 UP,Sendup26
SetTimer, WatchPOV, 100
return
WatchPOV:
GetKeyState, POV, 2JoyPOV ; ... |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Tue Nov 24, 2009 1:35 pm Subject: 2 sets of keystrokes with 1 joystick |
Don't know exactly where to put those lines, but have tried them inside "sendup:" sub-routine, and some other places...
Also, at first compiler gives an error with that "KeyWait" ... |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Tue Nov 24, 2009 9:04 am Subject: 2 sets of keystrokes with 1 joystick |
Hey HKI,
Thanks to keep helping here.
This doesn't work.
With that code, both keystrokes (Down and Up) are sent immediately after each other, the Up keystroke doesn't wait for the "UP" ... |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Mon Nov 23, 2009 7:42 pm Subject: 2 sets of keystrokes with 1 joystick |
New test...
SendUp:
KeyWait, 2JOY26, U
;StringReplace,hotkey,A_ThisHotkey,% " ",_
SendInput +^!8 ;% %hotkey%_sendup
Return
Kept Keywait command and put this subrotine to ... |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Sun Nov 22, 2009 8:52 pm Subject: 2 sets of keystrokes with 1 joystick |
Any ideas?
Am almost done with this project...
Just need a final "push"
Thanks. |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Sat Nov 21, 2009 12:30 pm Subject: 2 sets of keystrokes with 1 joystick |
Have found how to monitor continuously the events ( ) by double-clicking Autokey icon in tray...
And seems to me that both keystrokes are being sent simultaneously...
If it's the case, it's not t ... |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Sat Nov 21, 2009 12:04 pm Subject: 2 sets of keystrokes with 1 joystick |
Hey HKI,
Made same test but using 2JOY1, created a UP keystroke in the code and tested "2JOY1 UP::MsgBox" and also msgbox shows up when I press that push-button instead of showing up when ... |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Fri Nov 20, 2009 8:52 pm Subject: 2 sets of keystrokes with 1 joystick |
The MsgBox only appears when I push the switch up (closed position) when I need it to send the old "Down" keystroke.
And it sends "+^!7" (correctly).
It doesn't appear when I o ... |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Fri Nov 20, 2009 6:35 pm Subject: 2 sets of keystrokes with 1 joystick |
Does 2JOY26 UP work at all?
Well, that's the only one being a switch instead of a push-button soldered to leo's board. It's at 26st button position.
So, in Games controler can see if activated whe ... |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Fri Nov 20, 2009 6:12 pm Subject: 2 sets of keystrokes with 1 joystick |
Thanks alot mate.
Now there's no errors, but the up keystroke doesn't work for the button 26.
All the rest is working as far as could test. |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Fri Nov 20, 2009 5:52 pm Subject: 2 sets of keystrokes with 1 joystick |
I deleted that word "Down" and then it gives me oanother error and in another line;
Line; SendInput % %A_ThisHotkey%_sendup
Error; The following variable name contains an illegal charact ... |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Fri Nov 20, 2009 5:41 pm Subject: 2 sets of keystrokes with 1 joystick |
Maybe you're right.
But how do I change the code... ?
Because, don't believe being enough deleting "Send Down" lines...
Thanks for your quickness, well for all.
Cheer ... |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Fri Nov 20, 2009 4:35 pm Subject: 2 sets of keystrokes with 1 joystick |
Hey HKI,
It's giving me error at this line
"Hotkey,2JOY26 Down,SendDown" in the first loop 25.
We're almost there...
Thanks alot. |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Fri Nov 20, 2009 2:20 pm Subject: 2 sets of keystrokes with 1 joystick |
Did you mean this..?
#Persistent
;ICP
1_18000={Shift}{NumpadDiv}
2_18000={Shift}{NumpadMult}
3_18000={Shift}{Numpad7}
4_18000= ... |
Topic: 2 sets of keystrokes with 1 joystick |
flyway
Replies: 39
Views: 648
|
Forum: Ask for Help Posted: Fri Nov 20, 2009 1:25 pm Subject: 2 sets of keystrokes with 1 joystick |
Thanks my friend.
2Joy, because this is a 2nd joystick.
I have a cougar and a leo bodnar board and the code if for that board.
Abou that code, will it require all buttons to have "_DOWN&qu ... |
| |