AutoHotkey Community

It is currently May 27th, 2012, 12:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 81 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
PostPosted: July 16th, 2011, 3:29 pm 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
Anonymous wrote:
soggos wrote:
because if compiled and AutoHotkey is not accessible
Not correct, VIC is not compiled, the exe is just a renamed autohotkey.exe .


@Guest
hello,.i have clared my last post..i would say:
if Vic.exe run on a station where AutoHokey.exe is not..file.ahk don't run
and you say to me
Anonymous wrote:
-> so the A_AhkPath points to the renamed "vic" and therefore it will work


if i understand that... any *.exe (made with ahk) can run a script file without AutoHotkey.exe ? (i have never tested)

_________________
with ahk, all is different!...<img>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 16th, 2011, 4:56 pm 
No you don't understand, vic.exe = autohotkey.exe it is just a copy of autohotkey itself it NOT a compiled version of the script. A compiled script can NOT run another *.ahk script, that is correct. The beauty of Normands solution is that it is completely portable, nobody has to install autohotkey.exe if they don't want to in order to run the plugin scripts.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 16th, 2011, 5:34 pm 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
Anonymous wrote:
The beauty of Normands solution is that it is completely portable, nobody has to install autohotkey.exe if they don't want to in order to run the plugin scripts.

well,
but the plug-in.ahk are not include in the compilation.exe,
how run-it ?
Anonymous wrote:
A compiled script can NOT run another *.ahk script, that is correct.

cause
Code:
;n°225
Loop,%A_ScriptDir%\plugins\*.ahk
{
 StringTrimRight,AddMenuItemP,A_LoopFileName,4
 Menu,P,Add,&%AddMenuItemP%,PA
}
; AND
; n°3020
;### Extensions
PA:
StringTrimLeft,RunScript,A_ThisMenuItem,1
Run %A_AhkPath% "%A_ScriptDir%\plugins\%runscript%.ahk"
Return

_________________
with ahk, all is different!...<img>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 16th, 2011, 7:41 pm 
Sorry but you still don't understand it, I can't explain it any better.
There IS NO COMPILED version :!:
vic.exe = autohotkey.exe
AutoHotkey.ini = script
AHK_PATH holds the path to the CURRENTLY RUNNING autohotkey executable which is VIC.EXE!

So here is what you do to proof it: Delete (or rename vic.exe) to vic.bak. Now copy autohotkey.exe from your autohotkey folder to the vic directory
and simply run autohotkey.exe AND IT WILL WORK LIKE MAGIC. Amazign isn't it. If you still don't understand, well too bad
:D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 16th, 2011, 9:53 pm 
Offline

Joined: May 21st, 2007, 4:47 pm
Posts: 85
Version 1.5.1 is available.

An old version of HiEdit.ahk file in source.zip make the script fail at line 662. Now all is OK.

Merci à Olivier Granger pour son courriel.

_________________
Normand Lamoureux


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 17th, 2011, 10:40 am 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
Anonymous wrote:
vic.exe = autohotkey.exe
AutoHotkey.ini = script
AHK_PATH holds the path to the CURRENTLY RUNNING autohotkey executable which is VIC.EXE!
:D
    :oops:
    this way was unknown for me, this way is best, many thanck's
    sOGgos are in permanent development

Anonymous wrote:
So here is what you do to proof it:
:D
    :wink: I test that when i can

_________________
with ahk, all is different!...<img>


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 81 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon, maul.esel and 7 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