AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Key mimicking pressure sensivity?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
HaraDaya



Joined: 02 Jan 2010
Posts: 2
Location: Denmark

PostPosted: Sat Jan 02, 2010 4:17 pm    Post subject: Key mimicking pressure sensivity? Reply with quote

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.
Back to top
View user's profile Send private message MSN Messenger
Sergio



Joined: 16 Mar 2008
Posts: 160
Location: Brooklyn

PostPosted: Sun Jan 03, 2010 12:39 am    Post subject: Reply with quote

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.
_________________
Back to top
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Sun Jan 03, 2010 3:47 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
HaraDaya



Joined: 02 Jan 2010
Posts: 2
Location: Denmark

PostPosted: Sun Jan 03, 2010 9:31 am    Post subject: Reply with quote

[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.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group