Hello Me You Posted September 9, 2006 Share Posted September 9, 2006 (edited) Hello autoit pro's I downloaded autoit this afternoon and i've spent an hour searching through the examples and help file to try and find the things I need to make my simple script. But to no avail...Basically, I want autoit (using v3) to:1. Open up a program2. Enter a 6-7 digits in a specified field3. (Optional) Click one of two radio buttons4. Select from drop down box5. Click 5 buttons in descending height order6. Select another option from the drop down box7. Repeat 58. Continue 6-7 until until all options in the drop down are completed.Edit: Here's a screenshot of the buttons I would like it to press and the fields for it to fill in.Hope someone can help!Is this possible? The program is done in visual basic and is just a shabby home brew type thing for filling out forms. Despite it's shabbiness, I'd very much like to make an autoit script for it!I'm not asking for any handouts, or for anyone to tailor a script to your needs but if you give pointers or point me in the right direction for any articles/tutorials then it would be extremely appreciated! Thanks! Edited September 9, 2006 by Hello Me You Random Link to comment Share on other sites More sharing options...
rambo3889 Posted September 9, 2006 Share Posted September 9, 2006 I guess you could use the Control functions too click an set data of the inputs My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
Hello Me You Posted September 9, 2006 Author Share Posted September 9, 2006 Actually, first can someone explain how to open the program using an autoit script? Because without the first step i cannot test any of the suggestions rambo: Reading up on that now, thanks Random Link to comment Share on other sites More sharing options...
rambo3889 Posted September 9, 2006 Share Posted September 9, 2006 Run("Your proigram.exe") This will run a exe file like run("C:\Windows\system32\calc.exe") Will lauch your calculator My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
Confuzzled Posted September 9, 2006 Share Posted September 9, 2006 Isn't there an AU3Recorder as one of the options in the editor pulldown menu? Link to comment Share on other sites More sharing options...
AzKay Posted September 9, 2006 Share Posted September 9, 2006 But the Control functions are safer, No? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Vivvic Posted September 9, 2006 Share Posted September 9, 2006 (edited) But the Control functions are safer, No?Agreed. It is much more reliable and if he just wanted to record somthing and play it back macro maker is much more simple, but that wouldnt allow him to have options to click radio buttions or change what is typed, Look at -run-controlsend-controlclick-while(might want it to loop)in the help file should get you going. Edited September 9, 2006 by Vivvic [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote] Link to comment Share on other sites More sharing options...
Zedna Posted September 9, 2006 Share Posted September 9, 2006 1) In HelpFile is section Tutorials2) In HelpFile is section Function Reference/Window Management/Controls - where you can find ControlSend , ControlSetText , ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Hello Me You Posted September 10, 2006 Author Share Posted September 10, 2006 Thanks alot guys, i've been using AU3Recorder and it's treating me well. I think after I use that for the basics i'll go back to the tutorial and clean it up a bit.But another question: Once I start the script how do I pause it? It controls the mouse so I can't get to the tray a click the autoit icon.Also, is it possible to have a dialogue box where one can insert different digits? Like for the ID field I have Send("09843") - can I get an autoit box to pop up and ask for what number to put in there? Hope it makes sense :S Random Link to comment Share on other sites More sharing options...
Vivvic Posted September 10, 2006 Share Posted September 10, 2006 Taken from helpfile for pause ; Press Esc to terminate script, Pause/Break to "pause" Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d ;;;; Body of program would go here ;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMessage() MsgBox(4096,"","This is a message.") EndFunc as for aialogue box make a variable and have the input box change the varable and then later in the script the variable is called? [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote] Link to comment Share on other sites More sharing options...
Hello Me You Posted September 10, 2006 Author Share Posted September 10, 2006 (edited) vivvic: Thanks! And yep, that's what I want. I'll look through the help file again edit: Okay i'm using control click and it's working well but I can't select from the drop down box Does anyone know how to make it just go down the drop down box and select them? Edited September 10, 2006 by Hello Me You Random Link to comment Share on other sites More sharing options...
Zedna Posted September 10, 2006 Share Posted September 10, 2006 vivvic: Thanks! And yep, that's what I want. I'll look through the help file againedit: Okay i'm using control click and it's working well but I can't select from the drop down box Does anyone know how to make it just go down the drop down box and select them?Use ControlSend() as text use Alt+Down: "!{DOWN}" Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Hello Me You Posted September 10, 2006 Author Share Posted September 10, 2006 so... ControlSend ( "title", "Alt+Down: "!{DOWN}"", controlID, "string" [, flag] ) ? Shouldn't it be in the string/flag section? Random Link to comment Share on other sites More sharing options...
Zedna Posted September 10, 2006 Share Posted September 10, 2006 so... ControlSend ( "title", "Alt+Down: "!{DOWN}"", controlID, "string" [, flag] ) ? Shouldn't it be in the string/flag section? Of course yes (string parameter). I did some small kick of to you for right direction. You must see in HelpFile and make it exactly. ControlSend ( "title of window", "", "Combo classname", "!{DOWN}") here you must fill your title of window and your classname of combo. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Hello Me You Posted September 11, 2006 Author Share Posted September 11, 2006 Yep i've got it to {DOWN} twice then {ENTER} Thanks! up to the last part now, i'd like it to loop 12 times but the While and Loop parts of the index are completely confusing to me Thanks for all the help so far guys, really appreciate it Random 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