Raluvian Posted June 21, 2006 Share Posted June 21, 2006 (edited) i need a quick script that does only this. reads aim window for a phrase. it closes a window and sends a key to close it. reads the aim window again for another phrase. opens a program. loop until i close the script on my taskbar. im not grat with looping things together Edited June 21, 2006 by Raluvian Link to comment Share on other sites More sharing options...
Simucal Posted June 21, 2006 Share Posted June 21, 2006 im not grat with looping things togetherNo time like right now to learn While Loops, For loops, they are all great. Might want to look at ControlGetText() for retrieving the current messages that are incoming.. and check them against an If statement. Or, you could turn on AIM logging and have it read the log in a loop. Make a decent attempt. AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) Link to comment Share on other sites More sharing options...
Raluvian Posted June 21, 2006 Author Share Posted June 21, 2006 everytime i read that cursed help file i get more confused, i work good with examples oh how to use loop statements Link to comment Share on other sites More sharing options...
cdkid Posted June 21, 2006 Share Posted June 21, 2006 (edited) example: $title = "SOME WINDOW TITLE" While 1 $a = ControlGetText($title,"",SOME_CONTROL_ID) if stringinstr($a, "phrase1") then doone() endif if stringinstra($a, "phrase2") then dotwo() endif sleep(10) WEnd func doone() DO SOMETHING endfunc func dotwo() DO SOMETHING ELSE endfunc ~cdkid Edited June 21, 2006 by cdkid AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
nfwu Posted June 21, 2006 Share Posted June 21, 2006 (edited) $title = "SOME WINDOW TITLE" While 1 $a = ControlGetText($title,"",SOME_CONTROL_ID) if stringinstr($a, "phrase1") then doone() endif if stringinstra($a, "phrase2") then dotwo() endif sleep(10) WEnd func doone() DO SOMETHING endfunc func dotwo() DO SOMETHING ELSE endfunc Remember your identation and white space! #) edit: Forgot to proof-read. Edited June 21, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() 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