There is nothing in the VBS Scripts that you can change, that will allow for gamepad use. It just changes what button on keyboard is pressed.
I would suggest you try the joytokey program again, and make sure after you download, to go into folder and right click on "JoyToKey.exe" and click properties... then click compatibility....then click run in compatibility mode for WinXP SP2...and press Apply....if you have Windows Vista or above, this is the only way to get the joytokey program to function properly. You can adjust the buttons through the joytokey program if you want to assign a different key for button, but included in the attachment is a preconfigured setup for visual pinball. Also the newer versions of joytokey are shareware. The one available here is not Shareware.
Also, after you double click joytokey to start, you will only need to minimize the window down to your toolbar.
So you will want to start this program, minimize to toolbar, then load your pinball table.
Here is direct link to program....http://www.vpforums....attach_id=22673
Included with download are same instructions as what is on this page.,,
http://www.vpforums....showtopic=32902
Edited by xenonph, 18 November 2015 - 08:14 PM.