Jump to content

Scripts


Recommended Posts

I want to make some text files, but there basically scripts. For example;

showwin title
winmove title 0 0

But the autoit detects errors, invalid things etc. How would I go about creating this?

Obviously I'd translate this script into;

WinActivate("title")
WinMove("title", "", 0, 0)

But I won't just remake autoit functions, that's just an example.

Link to comment
Share on other sites

Loop through each line.

Develop a StringRegExp (flag 3 or something) extract each element from the function so:

functionname "parm with text" "param text" 3 4

Then loop through a list of functions, use the returned values from the previous string regexp to plug the data in:

Switch $function_name
case "showwin"
WinActivate($rexep_return[0])
case ...
...
EndSwitch

Give something like that a go! :(

EDIT: JohnOne- I believe he wants the ability to make certain snippets for a program to be able to automate without having to rewrite the AutoIt code?

Cheers,

Brett

Edited by BrettF
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...