| View previous topic :: View next topic |
| Author |
Message |
turtle
Joined: 01 May 2008 Posts: 5
|
Posted: Fri May 02, 2008 5:23 pm Post subject: Executing the AutoHotkey EXE file |
|
|
I just finished writting a simple code and produced the executable file. Now if I want to execute this EXE file on the computer that doesn't have AutoHotkey installed, does it still execute? So far me, it doesn't.
any suggestion? |
|
| Back to top |
|
 |
SomeGuy
Joined: 21 Apr 2008 Posts: 96 Location: somewhere
|
Posted: Fri May 02, 2008 5:35 pm Post subject: |
|
|
| lets see the code |
|
| Back to top |
|
 |
Z Gecko Guest
|
Posted: Fri May 02, 2008 5:40 pm Post subject: |
|
|
if you compile your script,
it will work without ahk installed.
But depending on yur code,
the behavior of your program can of course change.
Different screen-resolutions are changing the behavior of mouse-click commands, for instance. |
|
| Back to top |
|
 |
turtle
Joined: 01 May 2008 Posts: 5
|
Posted: Fri May 02, 2008 5:53 pm Post subject: |
|
|
Sure here is my code, and it compiled.
| Code: |
;open file
FileRead, contents, logtime.txt
if not ErrorLevel ;load successfully
{
FormatTime, TimeStamp,, Time
MsgBox time: %TimeStamp%
hours := %A_Hour%
minutes := %A_Min%
minuteSeconds:= A_Min * 60
hourSeconds:= A_Hour * 3600
MsgBox the current hours: %A_Hour%
MsgBox the current minutes: %A_Min%
totalSeconds:= minuteSeconds + hourSeconds
MsgBox hour in seconds: %hourSeconds%
MsgBox minute in seconds: %minuteSeconds%
MsgBox the total seconds: %totalSeconds%
FileAppend, %totalSeconds%, logtime.txt
}
else
{
MsgBox time: not success
FormatTime, TimeStamp,, Time
MsgBox time: %TimeStamp%
hours := %A_Hour%
minutes := %A_Min%
minuteSeconds:= A_Min * 60
hourSeconds:= A_Hour * 3600
MsgBox the current hours: %A_Hour%
MsgBox the current minutes: %A_Min%
totalSeconds:= minuteSeconds + hourSeconds
MsgBox hour in seconds: %hourSeconds%
MsgBox minute in seconds: %minuteSeconds%
MsgBox the total seconds: %totalSeconds%
FileAppend, %totalSeconds%, logtime.txt
}
|
|
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 803
|
Posted: Fri May 02, 2008 6:01 pm Post subject: |
|
|
ino:
the file must be in the same directory as the executable
and should be set in the file as %a_scriptdir%/logtime.txt _________________ Read this
Com
Automate IE7 with Tabs |
|
| Back to top |
|
 |
turtle
Joined: 01 May 2008 Posts: 5
|
Posted: Sat May 03, 2008 4:51 pm Post subject: |
|
|
| Hello Tank, thanks for pointing that out. This is a question relating to ask earlier, so I wonder can we execute autoHotKey EXE file on WinCE because I recently bought a device. |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 803
|
Posted: Sat May 03, 2008 5:33 pm Post subject: |
|
|
a compiled script should execute i would think
but as CE is harcoaded on a chip with limited abilities i have to admit i just dont know
bump:::::
any one in the ahk community have any words of wisdom about ahk and windows CE _________________ Read this
Com
Automate IE7 with Tabs |
|
| Back to top |
|
 |
Z Gecko Guest
|
Posted: Sat May 03, 2008 5:53 pm Post subject: |
|
|
Well Win CE is not Windows,
so windows-compiled exe-files will not run on a CE device.
But Micha compiled a reduced version of AHK for some CE devices:
http://www.autohotkey.com/forum/topic27146.html |
|
| Back to top |
|
 |
turtle
Joined: 01 May 2008 Posts: 5
|
Posted: Sat May 03, 2008 11:15 pm Post subject: |
|
|
| hi Tank and Z Gecko, I tried to compile on WinCE, and it seems Z Gecko is right, it doesn't execute the EXE file.. thanks you guys. |
|
| Back to top |
|
 |
|