Module loader:
a way of combining alot of ahk scripts into one while still keeping them seperate. it loads seperate scripts into into scripts into one script
Features:
retains in most cases the scripts original functionality
allows for scripts to use labels and functions from other scripts loaded
allows for infinite loop scripts to run(provided its configured)
able to disable scripts reliant on other scripts labels or functions when they are not loaded(provided its configured)
enable/disable seperate scripts
What needs to be done to standard scripts:
modUpdate.ahk should be ran so the loader will autoconfigure.
loader can be ran by itself but if an error accures, it wont start.
the scripts must have a .txt to the end to be active(i designed it with txt for ease of editing on the go)
the scripts must have a .dis to the end to be disabled but still detected
the scripts cant have their auto-execute section in them, they must be placed in the autoExe.txt in the misc folder. These settings will be applied to all scripts(i will probably fix that later)
the autoexecute cant rely on a script otherwise an error will be thrown.
the scripts should only contain the hotkey/label/functions
How to configure:
There are some configuration files in the misc folder that should be edit if you have a script that needs to be in a infinite loop or have a script that depends on another scripts labels/functions
loop scripts
to configure the infinite loop scripts edit the misc\loops.txt script.
Code:
looplimit=0
looplimit should equal the number of infinite loop scripts you will have
Code:
loopapp1=
loopapp# should contain the name of the script, you can also add loopapp2, loopapp3 and so on, just remember to changet the looplimit to corraspond with the hights loopapp
# should be the number of the script, it allows for the loop to configure the variables to run the loops
next file to edit for the infinite loop scripts is misc\loop.txt
the code should go as follows
Code:
if scriptname = 1
{
...loop code
}
script name should equal the name of the loop script. you can add as many of these as you have loop scripts
last part for the infinite loopscripts is having a txt file with the name of the infinite loop scripts name, this will allow it to be enabled and disabled.
dependancies
to configure your dependancies you need to edit only the misc\deps.txt file
Code:
limit=0
app1=
dep1=
limit should equal the number of app/deps in your set of scripts
app# should be the name of a script that depends on another script
dep# should be the name of the script the prior script needs
whats in the zip
the zip contains all neccesary scripts for the basic menu
ive included a basic what.txt script. ctrl+t will cause a traytip to show up
file found at
dakun.art-pulse.net/programs/modLoader-0.1.zip
i will later include one with some of my own scripts already in it