AutoHotkey Community

It is currently May 26th, 2012, 7:56 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: July 8th, 2009, 3:23 pm 
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 =/


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 8th, 2009, 4:09 pm 
Offline

Joined: July 8th, 2009, 3:14 pm
Posts: 10
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 8th, 2009, 6:41 pm 
Offline

Joined: May 17th, 2007, 6:03 pm
Posts: 391
Location: Titan
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 February 11th, 2011, 10:11 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 8th, 2009, 8:44 pm 
Offline

Joined: July 8th, 2009, 3:14 pm
Posts: 10
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 8th, 2009, 11:13 pm 
Offline

Joined: May 17th, 2007, 6:03 pm
Posts: 391
Location: Titan
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 :wink:.
________
SUZUKI FRONTE


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, joetazz, Retro Gamer, wolverineks and 65 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