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 

keystroke
Goto page 1, 2  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
montiaro



Joined: 20 Feb 2008
Posts: 117

PostPosted: Wed Sep 02, 2009 8:11 pm    Post subject: keystroke Reply with quote

what was the command for autohotkey to simulate someone actually pressing down the button? not the Send, function
Back to top
View user's profile Send private message
purloinedheart



Joined: 04 Apr 2008
Posts: 537
Location: Canada

PostPosted: Wed Sep 02, 2009 8:13 pm    Post subject: Reply with quote

http://www.autohotkey.com/docs/commands/Send.htm
Back to top
View user's profile Send private message
montiaro



Joined: 20 Feb 2008
Posts: 117

PostPosted: Wed Sep 02, 2009 8:27 pm    Post subject: Reply with quote

like this?
SendInput, {Raw} {SPACE}
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Thu Sep 03, 2009 7:17 am    Post subject: Reply with quote

AHK can only generate artificial input.
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
montiaro



Joined: 20 Feb 2008
Posts: 117

PostPosted: Mon Sep 07, 2009 4:55 am    Post subject: Reply with quote

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?
Code:
Space::Enter
this code is probably far from right but its just a example =)
Back to top
View user's profile Send private message
montiaro



Joined: 20 Feb 2008
Posts: 117

PostPosted: Wed Sep 09, 2009 9:04 am    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Wed Sep 09, 2009 10:02 am    Post subject: Reply with quote

Sorry about the wording, but I just HAD to Smile

There is no other, there is only SEND.

In short, as engunneer said, AHK can only send artificial keystrokes, using Send. Either

Code:
a::b

or
Code:
a::Send, b


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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
montiaro



Joined: 20 Feb 2008
Posts: 117

PostPosted: Wed Sep 09, 2009 6:02 pm    Post subject: Reply with quote

let me try to find the one someone else made and ill post it
Back to top
View user's profile Send private message
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Wed Sep 09, 2009 6:26 pm    Post subject: Reply with quote

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.
Question
Back to top
View user's profile Send private message Visit poster's website
montiaro



Joined: 20 Feb 2008
Posts: 117

PostPosted: Wed Sep 09, 2009 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Wed Sep 09, 2009 6:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
montiaro



Joined: 20 Feb 2008
Posts: 117

PostPosted: Thu Sep 10, 2009 3:27 am    Post subject: Reply with quote

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
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Thu Sep 10, 2009 3:33 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
montiaro



Joined: 20 Feb 2008
Posts: 117

PostPosted: Thu Sep 10, 2009 6:01 am    Post subject: Reply with quote

i will try that and get back to u
Back to top
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Thu Sep 10, 2009 6:14 am    Post subject: Reply with quote

Just curious, what game are we talking about?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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