| View previous topic :: View next topic |
| Author |
Message |
ProsperousOne
Joined: 19 Sep 2005 Posts: 115
|
Posted: Mon Mar 16, 2009 4:35 pm Post subject: Is Run, abc.exe the same as outputvar := abx(some_parameter) |
|
|
I'm trying to decod the following 2 lines from another ahk post ( http://www.autohotkey.com/forum/viewtopic.php?t=40254&highlight=postgresql )
| Code: | sql := "SELECT game_id FROM game ORDER BY game_id DESC LIMIT 1;"
start_handcounter := psql(sql) |
psql.exe is an executable, located in the same directory as the script (or added into the path variable).
Is this a new way to run an .exe file, similiar to the Run command, but as a function?
I've scoured the documentation, but can't find out why this would work.
Confuzed....
P1 |
|
| Back to top |
|
 |
BoBoł Guest
|
Posted: Mon Mar 16, 2009 5:09 pm Post subject: |
|
|
The first line is the SQL statement. The second line calls a function (using that statement as a parameter), and sets a variable which will keep the returned value.
The function seems to be part of the script which has been #Include(d). Looks like you have to ask the author of that script for that additional file (TBH, I doubt that he will handover it to a potential counterpart)
Feel free to check the AHK-Help about functions! |
|
| Back to top |
|
 |
ProsperousOne
Joined: 19 Sep 2005 Posts: 115
|
Posted: Tue Mar 17, 2009 4:21 pm Post subject: |
|
|
DOOH! Missed the include
thx Bobo! |
|
| Back to top |
|
 |
|