Simulate Key Press for Controllers V1.0.1 BETA

by NomeSkavinski
Please explain why you're reporting this file:

This is Still in BETA as it does not support modifier keys (CTRL, SHIFT OR ALT). And a few issues still need to be addressed, please update with any issues you come across.

This script allows controllers to simulate key presses. The point in this script is to let someone with a controller use other mods that only allow the keyboard use them (as for a very few of us we want to enjoy these mods from across the room and the keyboard does not reach).

For example the simple trainer can now be used with a controller by binding the RightButton + X of the xbox pad to F1, and the DPad directions are mapped to the Numpad numbers to navigate the simple trainer etc.

To Use:
Copy the contents of the scripts folder from this download and place them within your scripts folder.
Except for the Microsoft.Xna.Framework.dll and Microsoft.Xna.Framework.xml. Copy these to the root
of your GTA/EFLC directory, so its with GTA4.exe or EFLC.exe.

To change which key(s) to simulate open up the SimulateKeyPress.txt file. Familiarize yourself with he text within it, and the small samples left in it. All you need to do is type the combination of xbox pad buttons you wish to simulate the keyboard buttons.

All buttons must be separated by commas! By surrounding a set of keyboard button with { }, tells the script that that set of buttons must be held down. However in some single key press instances you may have to surround the single key with {}.

To compile the source code:
You must have MS Visual Studio 2010 or higher, and XNA Game Studio 4.0.

No Videos or screenshots will be provided as it does not prove any functionality.

This one just has a slightly different reaction to the keyboard emulation. Not much of a change but a little less stressfull with The simple native trainer. Will do a revamp on this design over the next few weeks. Replaces: V1.0 BETA
8.60/10 - 15 votes
Downloads: 3,016
Added: March 12, 2013 5:46PM
Last Downloaded: May 22, 2017 9:43AM
File Size: 583.30 KB

This file has no videos.
Sorry, you must be registered and logged in to add a video to this file. Log in now!

Awesome idea!

Still need those ctrl,shift and alt keys though.
Posted on March 12, 2013 8:45PM by MasterVampire
Interesting concept.
Posted on March 12, 2013 8:46PM by Gingersockman
i guess u guys never heard of joy2key
Posted on March 12, 2013 8:53PM by Ra's al Ghul
I found joy2key didnt work with GTA, so i made this. And yes definitiely needs the CTRL, shift and alt sorting out.
Posted on March 12, 2013 9:10PM by NomeSkavinski
i use joy2key with gta, i only use gamepad
Posted on March 12, 2013 9:18PM by Ra's al Ghul
it crashes my game before it starts
Posted on March 13, 2013 12:37AM by Kokane
yea crashes my game before it start too. don't feel like downloading ms visual studio and xna game studio either. wish you could make it an easy script, it sounds really good.
Posted on March 13, 2013 6:02AM by normalguy
Ah, it seems too dependant on XNA. i thought the dll would solve that. hmmm, il try and work something out.
Posted on March 13, 2013 7:29AM by NomeSkavinski
Try installing this:

ITs only 7MB, is the redistributables, if it solves it il include it with the download. I would do it, but because i have VS 2012 id have to strip alot of SDKs of my system to get XNA back on again.
Posted on March 13, 2013 7:40AM by NomeSkavinski
We just did the same thing for Iron Man IV, the Microsoft.Xna.Framework.dll needs to go where the gtaiv.exe is, not in the scripts folder. The game should start then :-)
Posted on March 14, 2013 12:30AM by H1Vltg3
What do you do with the stuff in the other folder?
Posted on March 14, 2013 1:35AM by Kokane
Yes do exactly as H1vltg3 says, works perfectly after that, better than joy2key, from what I can see it performs much better and you don't have to run the program before you start the game, so yes this is a very useful script. You sir are indeed a genius; may the light of mordor shine upon your modding
Posted on March 14, 2013 3:47AM by normalguy
Ha ha thanks normalguy, and bravo H1Vltg3!!! thanks for findin that out! legend! i shall update the download real soon.
Posted on March 14, 2013 8:27AM by NomeSkavinski

Rated: 1/10
Posted on March 14, 2013 11:47AM by boss06
^ such a shame people suck and lack the abilities to read or understand.
Posted on March 14, 2013 12:01PM by NomeSkavinski
hey om eh bro,,can you make script this, for advanced driving,like a damage car icon/picture, oil,engine,temp meter you can see in picture

Posted on March 14, 2013 12:54PM by haydir

Interesting, id certainly enjoy giving it ago, however, I'm afraid i don't have the time for GTA atm. Only just managed to finish the simulate script.

Does this script already exists or is that image a mock up of what you want it to look like? Also is is purely read outs you want or do you want consequences to happen, such as, if the oil is too high breakdown and wait to cool, or something?
Posted on March 14, 2013 1:22PM by NomeSkavinski

just ignore the trolls they do it to all my mods too, they dont understand the amount of work and testing involved because nothing here deserves a 1, he is just a troll and scum

if people saw how much work i put into my scripts they would not give me a 1 but they do so * them they are pieces of *
Posted on March 14, 2013 5:29PM by Ra's al Ghul
@Ra's al Ghul

yeah i know, shame people have to be like that. Must be so * to be like that
Posted on March 14, 2013 7:59PM by NomeSkavinski
Glad you made this! People have asked me to add controller support to my mods, but I never figured it out, and couldn't test it anyway because I don't have a controller. Props!
Posted on March 14, 2013 9:33PM by AngryAmoeba

This may be helpful to you:

Its a small example of how i handle the game pad.
Posted on March 15, 2013 10:14AM by NomeSkavinski
please keep updating this mod, it's a really really good script, despite the fact that ignorant fools keep rating it low because they're too poor to afford a gamepad for pc, let alone know how to use it once they get it. So yea good stuff, keep working on this.
Posted on March 17, 2013 2:08AM by normalguy
Will give it a try to use indicators script
Posted on March 17, 2013 5:37AM by TheNielegalnY
ok guys with some scripts you can use {Shift, B} or {Alt, B} or {Control, B} to simulate a modifier with a key. However doesn't seem to react to all scrips. When i get more time i shall try and figure it out.
Posted on March 17, 2013 1:45PM by NomeSkavinski
Very smart!
Posted on March 23, 2013 1:29AM by ModxSwagg
I'm having a bit of trouble with this mod. I've put the txt file and the dll in the scripts folder, as well as the other 2 XNA framework files in the root folder, and I've configured my config file, but no key works correctly. Also, a problem I see is that every key on a gamepad has a function. There should be a way to disable some controls, like the RB handbrake, or one of the radio station switches.
Posted on March 24, 2013 11:23AM by ZeroR3B0RN

Are the keys not responding to your liking or are they not responding at all. If its not responding to how you like it, i have been dabbling a little to get the timing better.

Disabling controls is a good idea. Ill add that later.

I have found some scripts dont respond well to this script. Im not fully sure but i have a few ideas.
Posted on March 24, 2013 1:39PM by NomeSkavinski
The keys aren't responding at all for me. Also, an idea I had is to make RB a modifier key, and disable it as a handbrake. It could work like the RB key disables all controls as it is held in. This allows ever button on a controller to have function. If it helps, i use the "Fuel 1.2" mod, "Indicators", "Arrest Warrant", "Bleed Out", "Deadly Wrecks", and "Engine Blow Out". Thanks so much for your help.
Posted on March 24, 2013 2:47PM by ZeroR3B0RN
Amazing script, worked flawlessly in my GTA IV. Xpadder no more, no need to open Xpadder before playing, no more screen button icon alternating between keyboard/gamepad, fantastic. And i have managed to set the ALT key by writing instead of Alt, LMenu (for left Alt, or RMenu for right Alt), and worked. And, majority of scripts that use Shift, can be configurated to other keys. 10/10, for sure! (and hope you release an update with all keyboard keys support).
Posted on March 24, 2013 9:22PM by protossevolutio
@ZeroR3B0RN, Will definitely look into those issues for you,. Ill also test those scripts with it, it will give me a much better idea of whats working etc, thanks. I'm afraid though i wont be able to work on it for a weeks so don't expect anything soon. sorry about that.

@protossevolutio, glad to hear it. And thank you very much for giving a positive comment, very much appreciated.
Posted on March 25, 2013 8:32AM by NomeSkavinski
@NomeSkavinski, yeah, i'm having a very good time with your MOD! A question: Do you will add support to x360 L and R triggers, and Left and Right analog sticks UP, DOWN, LEFT and RIGHT directions in future releases? Again, great work man!
Posted on March 25, 2013 1:51PM by protossevolutio
@protossevolutio, yes i will definitely add them in. However they wont be touch sensitive just on or off.

Posted on March 25, 2013 5:43PM by NomeSkavinski
Im on using a ps3 controller with MotionJoy to make my pc think its a xbox remote. Ive put the two files in the root of my directory and the menu doesnt seem to be coming up at all. It worked the first time i pushed it i saw it come up for a second then disapear and it doesnt show up at all now.
Posted on March 28, 2013 11:13PM by jezza.boi
@jezza.boi, which menu do you mean? If you mean the simple trainer, i have made a slight fix for this to make it easier, for the time being just check the brackets around the intended controls.

I'l try and get the slightly fixed version up today as i will be away for awhile, so hopefully that might make things easier for you until i get the next version out.
Posted on March 29, 2013 6:48AM by NomeSkavinski
You do realize that you didn't include the .txt file with the new download, right? Or, if it's supposed to generate after being used once, it hasn't generated for me.
Posted on March 29, 2013 4:21PM by ZeroR3B0RN

Cheers for letting me know, i quickly uploaded it before i had to get a train, completely missed dropping that file in. Posting it up now. Thanks again, most people just wouldn't say anything.
Posted on April 1, 2013 2:13PM by NomeSkavinski
I was having issues with it at first (game crashing)

So i downloaded:-

And now works perfect :o) this script is amazing rated 10/10

If you could sort the CTRL, SHIFT, ALT issue will be a dream come come true :o)

Posted on April 6, 2013 4:45PM by powler

Thanks dude, i am trying to do a revamp of the design, just dont have the time but i will try and get it done. I'll take note of that link as well for future releases, thanks.
Posted on April 9, 2013 8:40AM by NomeSkavinski
not a prob mate, im just so happy to see something for controller users :o)

I wish you the very best for this script and hopes it does well :o)

Also if its ok with you i would love to get people to download this by posting the link to this on other sites?

Amazing amazing script love it :o)
Posted on April 9, 2013 9:31AM by powler

I have started a topic on to try and get more people using this script :o)

The link to the topic is:-

Really hope you dont mind :o)
Posted on April 9, 2013 9:48AM by powler

Naa, i don't mind at all. That's why i put the source code in with it to, so people can either tweak it themselves or improve it. You may want to ask the forum moderators if its OK to post links, just in case some people can get funny. Nevertheless, very flattered cheers dude.
Posted on April 9, 2013 10:31AM by NomeSkavinski
Thats cool buddy, if i can help i will :o)
Posted on April 9, 2013 11:08AM by powler
Could you make something opposite? I would rather want controller buttons assigned to mouse. There is tragic bug that was never fixed by rockstar. When playing using mouse there is no bulet spread at all. But when using gamepad then bullet spread is pressent. It is so weird and when I play normally on PC with using my mouse then It is like cheating and it feels bad. From cover I can make perfect headshots from blind fire. It is ridiculous. Stupid rockstar coders did such a retarded thing. Simple script that makes gamepad fire button assigned to LMB would be great fix for that.
Posted on May 3, 2013 8:46PM by CoSm1c gAm3r
Please keep this up. I play with a controller as well, and I like that your mods are all compatible with them. This game is just not as good with a keyboard and mouse for me.
Posted on May 16, 2013 8:46PM by Sykasaur
Hey does anyone know if u can assign a button on the controller to use other mods for example grab script , ragdoll if yes can you explain how please because its really confusing. Thanks
Posted on May 29, 2013 4:36PM by Roman B
Hey does anyone know if u can assign a button on the controller to use other mods for example grab script , ragdoll if yes can you explain how please because its really confusing. Thanks
Posted on May 29, 2013 4:56PM by Roman B
Yes you can, this is what i use the script for (and one tof the scripts i designed it for). Just set the grabscript to a simple keyboard combo or single key press, like:

GrabKey = B

EveryoneGrabKey = B

EveryoneLetGoKey = N

Then set the SimulateKeyPress text file like so:

LB, B = {B}

LB, X = {N}

You may have to drop the {}, if not keep them in. This works fine for me.

I hope that helps.

Please keep in mind that the script has a sensitivity issue, especially due to people having different frame rates i have been working on a revamp but i havn't had time to finish it. (it wasn't the easiest of scripts to get working).

Posted on May 30, 2013 9:54AM by NomeSkavinski
It worked thank you so much it is such a usefull mod keep working on it and it will be even better and again Thanks
Posted on May 30, 2013 1:42PM by Roman B
Epic, glad its of use for the controller users. I'll do my best to make some time to improve on it.
Posted on May 30, 2013 2:28PM by NomeSkavinski
Not yet tested, but just for the concept : 10000/10

Controller and scripts user, maybe i'll be able to pass me, of :

- the keyboard placed on the left of my seat

- the numeric keypad on the right

- the ps3 wireless keypad attached to my ps3 controller
Posted on February 15, 2014 8:20AM by beurk

I love this mod! Thank you.

But is there any way to make it override default controller keys?
Posted on July 17, 2014 12:46PM by jaybob
For some reason it won't work on my end. I have XNA 4.0 downloaded and installed, xna_framework dll and xml in game root and scripts folder, the SimulateKeyPress stuff in scripts and changed from F1 to F3 but no dice.
Posted on October 31, 2015 9:15AM by B_Dawg
Sorry, you must be registered and logged in to post a comment. Log in now!