Sign in to follow this  
Followers 0
Raluvian

quick script

5 posts in this topic

#1 ·  Posted (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 by Raluvian

Share this post


Link to post
Share on other sites



im not grat with looping things together

No time like right now to learn :D

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)

Share this post


Link to post
Share on other sites

everytime i read that cursed help file i get more confused, i work good with examples oh how to use loop statements

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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!

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by nfwu

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