spike32 Posted May 30, 2020 Share Posted May 30, 2020 Hi, I'm having a bit of an issue with AHK and finding my joystick names for remapping. I'm using a GP-wiz 40 encoder and I'm trying to remap the joystick for up/down/left/right respectively. I read through some documentation and I'm not able to figure it out unfortunately. Devices in control panel only lets me see which number the buttons are relating to, not the joystick. Is there an easy way of figuring it out? I tried the test script AHK has but it doesn't seem to recognize my gp-wiz40 for some reason, even though it does in launchbox. Any help would be greatly appreciated. Thanks. Quote Link to comment Share on other sites More sharing options...
Kiinkyfoxx Posted May 30, 2020 Share Posted May 30, 2020 (edited) Joystick checker.ahk -attached AHK for checking up to 12 joysticks for number - this version uses button 8 though, it also only gives number of Joystick as 1, 2, 3 etc and not Joy 1, Joy2, Joy 3 etc I use the ahk to check what number a joystick has been given. I am not near computer at moment so you will need to adapt it or wait a few hours and I will send the full version. - Full version now attached. Basically pressing button 5 on joystick opens Notepad and types the message. I have it going all the way up to 10 on mine and that should cover enough. Just add more lines changing the 1joy5 to 3joy5 etc... And the Send line to equal whichever Joystick number it is. If Notepad opens and no message just rerun the AHK and repress the button.... Sometimes it takes a few times to work I do this with everything else closed as just easier to see it work that way. 1Joy5:: Run Notepad WinWait Untitled - Notepad WinActivate Send Joy 1.{Enter} return 2Joy5:: Run Notepad WinWait Untitled - Notepad WinActivate Send Joy 2.{Enter} return Hopefully that works for you Edit I have attached my AHK text which actually goes up to 12 and not 10 but uses button 8 on my set up - not sure how many buttons your joystick has so that might need changing. The AHK setup changes slightly as you go down it, that was me trying some other things out as well, but it still works the same way. Edited May 30, 2020 by Kiinkyfoxx Add extra info Quote Link to comment Share on other sites More sharing options...
spike32 Posted May 31, 2020 Author Share Posted May 31, 2020 7 hours ago, Kiinkyfoxx said: Joystick checker.ahk -attached AHK for checking up to 12 joysticks for number - this version uses button 8 though, it also only gives number of Joystick as 1, 2, 3 etc and not Joy 1, Joy2, Joy 3 etc I use the ahk to check what number a joystick has been given. I am not near computer at moment so you will need to adapt it or wait a few hours and I will send the full version. - Full version now attached. Basically pressing button 5 on joystick opens Notepad and types the message. I have it going all the way up to 10 on mine and that should cover enough. Just add more lines changing the 1joy5 to 3joy5 etc... And the Send line to equal whichever Joystick number it is. If Notepad opens and no message just rerun the AHK and repress the button.... Sometimes it takes a few times to work I do this with everything else closed as just easier to see it work that way. 1Joy5:: Run Notepad WinWait Untitled - Notepad WinActivate Send Joy 1.{Enter} return 2Joy5:: Run Notepad WinWait Untitled - Notepad WinActivate Send Joy 2.{Enter} return Hopefully that works for you Edit I have attached my AHK text which actually goes up to 12 and not 10 but uses button 8 on my set up - not sure how many buttons your joystick has so that might need changing. The AHK setup changes slightly as you go down it, that was me trying some other things out as well, but it still works the same way. Thanks a lot for the scripts, and I have tested it out. For some reason I get no reaction at all using the joystick checker. I know my encoder is using 1Joy because I set it up with all the buttons and the buttons were opening up notepad and inputting the text. Everything except both joysticks :( Not sure why, but they must be labelled differently or something. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.