| View previous topic :: View next topic |
| Author |
Message |
montiaro
Joined: 20 Feb 2008 Posts: 117
|
Posted: Wed Sep 02, 2009 8:11 pm Post subject: keystroke |
|
|
| what was the command for autohotkey to simulate someone actually pressing down the button? not the Send, function |
|
| Back to top |
|
 |
purloinedheart
Joined: 04 Apr 2008 Posts: 537 Location: Canada
|
|
| Back to top |
|
 |
montiaro
Joined: 20 Feb 2008 Posts: 117
|
Posted: Wed Sep 02, 2009 8:27 pm Post subject: |
|
|
like this?
SendInput, {Raw} {SPACE} |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Thu Sep 03, 2009 7:17 am Post subject: |
|
|
AHK can only generate artificial input. _________________
(Common Answers) |
|
| Back to top |
|
 |
montiaro
Joined: 20 Feb 2008 Posts: 117
|
Posted: Mon Sep 07, 2009 4:55 am Post subject: |
|
|
someone made a code awhile back that was able to use hotkeys in games, so lets say i want space to actually press enter, are there any other ways of typing remapping hotkeys?
this code is probably far from right but its just a example =) |
|
| Back to top |
|
 |
montiaro
Joined: 20 Feb 2008 Posts: 117
|
Posted: Wed Sep 09, 2009 9:04 am Post subject: |
|
|
| bump |
|
| Back to top |
|
 |
AnttiV
Joined: 14 Aug 2009 Posts: 237 Location: Finland
|
Posted: Wed Sep 09, 2009 10:02 am Post subject: |
|
|
Sorry about the wording, but I just HAD to
There is no other, there is only SEND.
In short, as engunneer said, AHK can only send artificial keystrokes, using Send. Either
or
BUT, you can experiment with SendMode and SetKeyDelay to try and make it work with your game. Read up in the docs about the commands and see if they make a difference. |
|
| Back to top |
|
 |
montiaro
Joined: 20 Feb 2008 Posts: 117
|
Posted: Wed Sep 09, 2009 6:02 pm Post subject: |
|
|
| let me try to find the one someone else made and ill post it |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Wed Sep 09, 2009 6:26 pm Post subject: |
|
|
| AHK Help File wrote: | | Limitation: AutoHotkey's remapping feature described below is generally not as pure and effective as remapping directly via the Windows registry. For the advantages and disadvantages of each approach, see registry remapping. |  |
|
| Back to top |
|
 |
montiaro
Joined: 20 Feb 2008 Posts: 117
|
Posted: Wed Sep 09, 2009 6:44 pm Post subject: |
|
|
| i dont want to mess with the registery, so your saying autohotkey is not capable of sending commands to a directX game? |
|
| Back to top |
|
 |
AnttiV
Joined: 14 Aug 2009 Posts: 237 Location: Finland
|
Posted: Wed Sep 09, 2009 6:48 pm Post subject: |
|
|
Yes it is, I use it regularly.
EDIT: Even DX10 games work. But as I said, you need to experiment with SendMode and/or SetKeyDelay to see which settings work with your game.
EDIT2: Example, with H.A.W.X, I need to use SetKeyDelay, 50, 50 (ANY other values and it doesn't work, I don't know how, but that's how it goes.) Also I need to be sure SendMode is NOT set to Input or Play, else it won't work with HAWX. LFS is not that picky, it accepts almost whatever I throw at it. and so on. |
|
| Back to top |
|
 |
montiaro
Joined: 20 Feb 2008 Posts: 117
|
Posted: Thu Sep 10, 2009 3:27 am Post subject: |
|
|
| so how would u get those SetKeyDelay numbers? is it just a guessing game? and same about the SendMode how do i know which one? i am playing aion just to let u know, the skill bar hotkeys are annoying i was jus ttrying to move it down a few rows to z-m keys |
|
| Back to top |
|
 |
AnttiV
Joined: 14 Aug 2009 Posts: 237 Location: Finland
|
Posted: Thu Sep 10, 2009 3:33 am Post subject: |
|
|
More than likely, it's all trial and error. SetMode isn't so bad 'cause there aren't that many choices, but experimenting with SetKeyDelay takes time. I tried multiple settings and didn't get my game to work, then I needed to tinker with the setting for another reason and suddenly I had found settings that also worked with my game.
SetKeyDelay sets the time between keypresses and the time the key stays pressed, If the game doesn't register any keystrokes, I think the first thing one should do, is lengthen the delay and the press time.
I'm sorry I can't be more helpful, but I really don't know any other ways.
You could probably make a hotkey/loop logic to automatically go through multiple setkeydelay settings and each time try if the key works. |
|
| Back to top |
|
 |
montiaro
Joined: 20 Feb 2008 Posts: 117
|
Posted: Thu Sep 10, 2009 6:01 am Post subject: |
|
|
| i will try that and get back to u |
|
| Back to top |
|
 |
AnttiV
Joined: 14 Aug 2009 Posts: 237 Location: Finland
|
Posted: Thu Sep 10, 2009 6:14 am Post subject: |
|
|
| Just curious, what game are we talking about? |
|
| Back to top |
|
 |
|