| View previous topic :: View next topic |
| Author |
Message |
vitalyb
Joined: 28 Mar 2006 Posts: 17
|
Posted: Fri Feb 06, 2009 6:26 pm Post subject: Execute a certain function in ahk script from command line |
|
|
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 |
|
 |
evan Guest
|
Posted: Fri Feb 06, 2009 6:44 pm Post subject: |
|
|
| 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
|
Posted: Fri Feb 06, 2009 8:05 pm Post subject: |
|
|
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 |
|
 |
vitalyb
Joined: 28 Mar 2006 Posts: 17
|
Posted: Fri Feb 06, 2009 8:27 pm Post subject: |
|
|
OnMessage could work for me
Command line would be simpler but this is more flexible I guess. _________________ Vitaly |
|
| Back to top |
|
 |
vitalyb
Joined: 28 Mar 2006 Posts: 17
|
Posted: Fri Feb 06, 2009 8:29 pm Post subject: |
|
|
| 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 |
|
 |
|