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 

Executing the AutoHotkey EXE file

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



Joined: 01 May 2008
Posts: 5

PostPosted: Fri May 02, 2008 5:23 pm    Post subject: Executing the AutoHotkey EXE file Reply with quote

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
View user's profile Send private message
SomeGuy



Joined: 21 Apr 2008
Posts: 96
Location: somewhere

PostPosted: Fri May 02, 2008 5:35 pm    Post subject: Reply with quote

lets see the code
Back to top
View user's profile Send private message
Z Gecko
Guest





PostPosted: Fri May 02, 2008 5:40 pm    Post subject: Reply with quote

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

PostPosted: Fri May 02, 2008 5:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 803

PostPosted: Fri May 02, 2008 6:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
turtle



Joined: 01 May 2008
Posts: 5

PostPosted: Sat May 03, 2008 4:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 803

PostPosted: Sat May 03, 2008 5:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Z Gecko
Guest





PostPosted: Sat May 03, 2008 5:53 pm    Post subject: Reply with quote

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

PostPosted: Sat May 03, 2008 11:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   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