FinalVersion Posted March 26, 2010 Share Posted March 26, 2010 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. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
JohnOne Posted March 26, 2010 Share Posted March 26, 2010 I dont understand. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
BrettF Posted March 26, 2010 Share Posted March 26, 2010 (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 March 26, 2010 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
FinalVersion Posted March 26, 2010 Author Share Posted March 26, 2010 Thanks Brett. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/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