AutoHotkey Community

It is currently May 27th, 2012, 1:01 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: January 2nd, 2010, 5:17 pm 
Offline

Joined: January 2nd, 2010, 11:19 am
Posts: 2
Location: Denmark
So I've been playing a few games with driving included, and I am sick of how when I press accelerate it presses the pedal to the bottom. There's no inbetween. Using a keyboard obviously.
So, my question is, would it be possible to somehow mimic an analog button by, for example, setting a keydelay on the accelerate key, and using the scroll button to decrease and increase the keydelay? Or a different method?
Goal is to be able to decrease and increase the speed of a car in a game by using wheel up and wheel down.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2010, 1:39 am 
Offline

Joined: March 16th, 2008, 6:48 pm
Posts: 161
Location: Brooklyn
The short answer is no. If the game was programmed to work that way, then in all likelihood, that's the way it's going to work.

It may be possible to trick the game. Rather than holding the key down, to press it many times (very quickly) and see what happens. If the car shows a consistent speed (as opposed to a jerking motion) then you would be able to write a hotkey that presses the key with fewer pauses between each keypress as time increases.

Though I don't have much faith in this idea. I really do not think that it will result in the smooth transition that you are looking for.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2010, 4:47 am 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3330
Location: Simi Valley, CA
It may be possible to set up a virtual joystick using a 3rd party emulator and control the axes using AHK (and have the game read the virtual joystick axes as the accelerator/brake and steering).

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2010, 10:31 am 
Offline

Joined: January 2nd, 2010, 11:19 am
Posts: 2
Location: Denmark
[VxE] wrote:
It may be possible to set up a virtual joystick using a 3rd party emulator and control the axes using AHK (and have the game read the virtual joystick axes as the accelerator/brake and steering).


I searched the net and found these

PPJoy http://ppjoy.bossstation.dnsalias.org/

Let's you set up a virtual joystick

GlovePIE http://carl.kenner.googlepages.com/glovepie

Let's you remap pretty much any input device into anything. Works together with PPJoy's virtual joystick too.

They seem to be what I'm looking for. Now I just need to learn how to use GlovePIE.
So in the end I guess I won't be using AHK, but I got lead on the right track by asking here, thanks.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Leef_me, WillTroll, XstatyK, Yahoo [Bot] and 30 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