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 

Updating of script

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Fenevon
Guest





PostPosted: Thu Apr 16, 2009 2:59 pm    Post subject: Updating of script Reply with quote

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?
Back to top
Slanter



Joined: 28 May 2008
Posts: 739
Location: Minnesota, USA

PostPosted: Fri Apr 17, 2009 3:11 am    Post subject: Reply with quote

#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.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
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