AutoHotkey Community

It is currently May 26th, 2012, 11:21 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Autohotkey Module Loader
PostPosted: November 6th, 2008, 3:54 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 6th, 2008, 6:54 am 
Offline

Joined: May 28th, 2008, 2:11 am
Posts: 739
Location: Minnesota, USA
#Include?

_________________
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  
 Post subject:
PostPosted: November 6th, 2008, 11:46 pm 
essentially thats the key for it

because of autohotkeys auto-execute rules it just cant be included at any point


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users 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