| View previous topic :: View next topic |
| Author |
Message |
guyclee Guest
|
Posted: Mon Oct 30, 2006 4:57 pm Post subject: Run from command line |
|
|
Is there a way to run the commands from the command line instead of making scripts for everything you want to do?
Example:
AutoHotKey Click
Instead of having to create a file with Click in it and then running that file?
I know it might sound like a weird question, but I really need it.
Thanks! |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon Oct 30, 2006 5:00 pm Post subject: |
|
|
Basically, the answer is no...
There might be workarounds, but we need to know the exact use case. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6223
|
Posted: Tue Oct 31, 2006 8:54 am Post subject: |
|
|
| PhiLho wrote: | | There might be workarounds |
@PhiLho: Where is that workaround! I remember seeing a solution that can parse & execute the command. But I not able to get the keywords right .. I have been searching in vain.
 _________________
 |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3644 Location: Belgrade
|
Posted: Tue Oct 31, 2006 9:10 am Post subject: |
|
|
Solution can be made in the form of a batch file.
ahk.bat command, p1, p2, p3, p4, p5
This will be slow as istance of AHK must be executed for eatch command.
Better approach would be to communicate with running instance of AHK and send it the command typed in console. Running instance can execute this command dynamicaly using Execute(..) function in the scripts. _________________
 |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Tue Oct 31, 2006 11:28 am Post subject: |
|
|
A virtual script! Interesting to create virtual/self-dissappearing viruses !?  |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3644 Location: Belgrade
|
Posted: Tue Oct 31, 2006 11:41 am Post subject: |
|
|
chillout for 1 second. _________________
 |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Tue Oct 31, 2006 5:25 pm Post subject: |
|
|
| Quote: | | chillout for 1 second. | Done. Who's next?  |
|
| Back to top |
|
 |
Robert Carnegie
Joined: 01 Jun 2005 Posts: 53 Location: Scotland
|
Posted: Wed Nov 01, 2006 1:15 am Post subject: |
|
|
Wasn't there a program written that whatever you pass to it in variables, the name of an AutoHotkey command and parameters, it executes that command?
So you'd just need a little bit more - which may already exist - for a script that accepts command line parameters and uses that module to run the specified command.
I wouldn't mind being able to write a Cmd file or a Windows shortcut that contains something like "WinSet, Top, OnscreenKeyboard". Put it in the Quick Launch bar. Of course I can perfectly well have a shortcut that points to an AHk script, but that means more maintenance and possibly less portability - in the sense of making it harder to move the thing between computers. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6223
|
Posted: Wed Nov 01, 2006 8:04 pm Post subject: |
|
|
| I earlier wrote: | | I have been searching in vain. |
Got it !!! :: Execute AHK code dynamically! by jonny _________________
 |
|
| Back to top |
|
 |
|