Hi everyone, As some of you may know im a bit of a racing nut. I recently got a decent steering wheel and I've been playing a lot of Test Drive Unlimited 2 recently. Its become apparent that people who have a wheel with a H-pattern gearstick shifter have a clear advantage over sequential shifters. So I am looking to emulate a H pattern shift logic that can then be operated sequentially using an up and down input signal from my wheel paddles. I have tried setting the gears in game to numbers 1-6 on my keyboard, hoping I could just press the key for each one but its not that simple. When I let go, the gear doesn't remain. So, I need to make something that does the following: a key (shift up) is pressed, 1 key is held down a key pressed again, 1 key released, 2 key held down etc and also, say we are in 4th so key 4: 4 is held and z key pressed - 4 released and 3 held etc Does someone know how a simple program can be written to achieve this? I promise beer and fame on the TDU forums for anyone who can do it
If you're just looking to hold a button down (and send it over to the TDU2 window), in response to another button being pressed, there's no reason why this shouldn't be possible. There's plenty of ways to implement it in Win32api, which you can use from Python and the like. I'm gonna have a bit of fun with this tomorrow EDIT: AutoIT might be easier to do what you want to do.
Someone else said AutoIT... will look at it. Ive played with AutoHotKey but its a far cry from the matlab code us engineers are used to... Edit: Bleh, I can get first gear to stay selected but the rest is beyond me. If you do wanna help out and are going to the next lan then I shall buy you something nice!
I have messed about and this works on grid (I don't have TDU2) http://dl.dropbox.com/u/18648309/gears.ahk Also, the keys for up and down gears are x and z. to quit press alt+q
I will give that a go, the difference between having h-shift style gears against a normal manual is stupid on TDU2. its basically "have a g27 or go home"
thanks, just been testing it. it needed a few tiny tweaks but its flawless now! No more holding buttons down for me! I can use the other hand as intended, for holding beer.