Sign in to follow this  
Followers 0
FinalVersion

Scripts

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0