JRowe Posted May 22, 2008 Share Posted May 22, 2008 (edited) So I'm putting together a fairly simple game macro system. I've got the basics put together, but I'm having a problem figuring out how to do dynamic scripting. I want a few of my friends to be able to use it, and I'm designing it to be used on almost any game (I'm sick of rewriting game specific macros when there's so much in common that I redo a *lot* each time.)I have this much done so far, or at least know how to do it:Process LaunchSet pointer and offset variables to read game data from the processsend keys, mouse events, and strings to minimized windowsSet config files for login informationLog eventsUse SQLite for config, log, and history.What I'd like to do, however, is set up a simple system in which you can describe behaviors at runtime.Each of the items and subitems represent a custom function. I'd like to define and load those functions at runtime, instead of hardcoding them, and then have a list from which I can drag and drop them onto a tree view, which would determine the script flow.How would I go about dynamically calling, and more importantly, creating functions at runtime?I'm confused! Thanks for any help. Edited May 22, 2008 by Jrowe [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
JRowe Posted May 22, 2008 Author Share Posted May 22, 2008 (edited) Could it be as simple as reading/writing a list of functions and using Execute? Alright, I see that it is. Can anyone tell me the limitations of Execute? I plan on using a very basic function construction GUI that will generate the text of the functions, then store those to SQLite. The names and descriptions will be in another tab, allowing the user to generate a script in the treeview by dragging and dropping the functions. Functions will consist of reading from & writing to process memory, using Nomad Memory, reading/writing to the SQLite database and a text file, sending mouse/key events to specific applications, getting system information (to monitor resource usage and if an application crashes), User defined functions that can utilize application and system variables, and time/schedule events that can control script flow. Edited May 22, 2008 by Jrowe [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now