AutoHotkey Community

It is currently May 26th, 2012, 5:28 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Updating of script
PostPosted: April 16th, 2009, 3:59 pm 
I use a compiled script that only contains an #include of the program in question. The exe file is used by several people that are on the same network. However when I have updated something in the script file that is included it isn't updated for the users even thought the exit and start the exe file again.

Is there some temp information stored somewhere that retains all old information and uses that instead of including the file again?
It works great with several users if a .ahk file is used instead of an .exe file with the #include.

Anybody knows how one can get around this?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2009, 4:11 am 
Offline

Joined: May 28th, 2008, 2:11 am
Posts: 739
Location: Minnesota, USA
#includes are automatically included in the coding of the compiled script. Updating the external ahk files will not have any effect on the compiled script.

ex.
Code:
; AHK1.ahk
#Include AHK2.ahk
MsgBox % Var

Code:
; AHK2.ahk
Var = Hello World!
If you were to compile AHK1.ahk, the result would be
Code:
;AHK1.exe
Var = Hello World! ; Included from AHK2.ahk
MsgBox % Var ; Already in AHK1.ahk

_________________
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, Bing [Bot], BrandonHotkey, mrhobbeys, MSN [Bot], Mtes, perlsmith and 65 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group