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 

Execute a certain function in ahk script from command line

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



Joined: 28 Mar 2006
Posts: 17

PostPosted: Fri Feb 06, 2009 6:26 pm    Post subject: Execute a certain function in ahk script from command line Reply with quote

Hi,

I have an AHK script with many useful functions, each is executed with a certain key combination.

I'd like to be able to execute some of these functions from a different application, the only way I see to do that now is to simulate a hotkey presses progrmatically (ugh). Is there a way I could run a certain function/keycombo from an ahk script programatically?
_________________
Vitaly
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
evan
Guest





PostPosted: Fri Feb 06, 2009 6:44 pm    Post subject: Reply with quote

it sounds like u are trying to do DLL injection to a game/program?
Back to top
Superfraggle



Joined: 02 Nov 2004
Posts: 1019
Location: London, UK

PostPosted: Fri Feb 06, 2009 8:05 pm    Post subject: Reply with quote

If the program you are using supports sending messages then you could get ahk to respond to a specific message.
_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
vitalyb



Joined: 28 Mar 2006
Posts: 17

PostPosted: Fri Feb 06, 2009 8:27 pm    Post subject: Reply with quote

OnMessage could work for me Smile
Command line would be simpler but this is more flexible I guess.
_________________
Vitaly
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vitalyb



Joined: 28 Mar 2006
Posts: 17

PostPosted: Fri Feb 06, 2009 8:29 pm    Post subject: Reply with quote

evan wrote:
it sounds like u are trying to do DLL injection to a game/program?


No... Just trying to execute a function in script from another process.
_________________
Vitaly
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger 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