| View previous topic :: View next topic |
| Author |
Message |
Yieldy Guest
|
Posted: Wed Jul 08, 2009 2:23 pm Post subject: CapsLock to Joystick button issue... |
|
|
Hello all. Admittedly I am very new to this AHK business. And I'm sure this going to be a cake walk for somebody out there, but it's stumping me.
I basically want to disable CapsLock (as far as the active window/game is concerned). And instead, turn presses (and holds) of the CapsLock key into presses (and holds) of a specific Joystick button. In particular, what the Joystick reporting script reads as "Joy8".
Again, probably real simple but it's stumping me =/ |
|
| Back to top |
|
 |
The.Yield
Joined: 08 Jul 2009 Posts: 10
|
Posted: Wed Jul 08, 2009 3:09 pm Post subject: |
|
|
Just realized I forgot to mention: I've made a script to go the "other way" just fine.
As in: Pressing and/or holding Joy8 results in pressing and/or holding CapsLock. That was easy even for me.
But going the other way, as I state in the original post, is... baffling.
| Code: | Joy8::
Send {Capslock down}
KeyWait Joy8
Send {Capslock up}
return
|
|
|
| Back to top |
|
 |
lilalurl.T32
Joined: 17 May 2007 Posts: 391 Location: Titan
|
Posted: Wed Jul 08, 2009 5:41 pm Post subject: |
|
|
If I remember correctly AHK cannot send/simulate joystick button presses.
I think this note from Remapping a Joystick to Keyboard or Mouse (in the help file) supports my assumption:
| Quote: | | Although a joystick button or axis can be remapped to become a key or mouse button, it cannot be remapped to some other joystick button or axis. That would be possible only with the help of a joystick emulator such as PPJoy. |
So apparently, your best chance for this is to use PPJoy or GlovePie.
________
Trichomes pictures
Last edited by lilalurl.T32 on Fri Feb 11, 2011 9:11 pm; edited 1 time in total |
|
| Back to top |
|
 |
The.Yield
Joined: 08 Jul 2009 Posts: 10
|
Posted: Wed Jul 08, 2009 7:44 pm Post subject: |
|
|
| lilalurl.T32 wrote: | If I remember correctly AHK cannot send/simulate joystick button presses.
I think this note from Remapping a Joystick to Keyboard or Mouse (in the help file) supports my assumption:
| Quote: | | Although a joystick button or axis can be remapped to become a key or mouse button, it cannot be remapped to some other joystick button or axis. That would be possible only with the help of a joystick emulator such as PPJoy. |
So apparently, your best chance for this is to use PPJoy or GlovePie. |
I don't think so. That quote states that you can't make a Joystick button another Joystick button... which is fine as that isn't what I want to do.
I want to make CapsLock act as a Joystick button. And if possible, disable CapsLock all together, and act only as a Joystick button. |
|
| Back to top |
|
 |
lilalurl.T32
Joined: 17 May 2007 Posts: 391 Location: Titan
|
Posted: Wed Jul 08, 2009 10:13 pm Post subject: |
|
|
| The.Yield wrote: | | lilalurl.T32 wrote: | | I don't think so. That quote states that you can't make a Joystick button another Joystick button... which is fine as that isn't what I want to do. |
|
Yes, but my logic was:
- AHK can detect Joystick buttons and axes, as you can remap them to keypresses/ mouse movements and clicks (tested myself with a joypad)
- As the quoted text says you can't turn a joy. button into another.
Therefore I believe this is a shortcut to say: 'although AHK can detect a joy. button to remap it to keyboard/mouse actions, it cannot assign a joy. button to another joy. button or [not mentioned but suggested] to keyboard presses'.
I said 'as far as I remember' because I have been reading from time to time threads about joystick/joypad that appeared in the 'ask for help' section (do a search on joystick button and you should find those).
Some of them had suggestions to do what you want but I have never seen one for which the person asking for help finally reported he had things working correctly.
One common mistake I believe is that people think that because joy. buttons (and axes) are listed in the 'key list' entry of the help file, they can be remapped and remapped to.
However, if you check the entry for the Send command, joy. buttons are not listed among the 'keys' that can be sent (in others words remapped to).
I'd be glad if someone can prove me wrong though .
________
SUZUKI FRONTE |
|
| Back to top |
|
 |
|