JJJAuto Posted September 8, 2020 Share Posted September 8, 2020 I'm very new to Autoit and the samples are just showing Notepad and Wordpad. I'm trying to do some automation and would be grateful if somebody could show me the way. I'm trying to use Autoit to automate a software, Basically I need to enter 1. Enter a Start Page NO 2. Enter a end page number 3. Click on DOWNLOAD button, 4. Wait 60 seconds 5. increment the start number by 10 and then click "DOWNLOAD" again until a specific number, say Page 180. THANKS !! Link to comment Share on other sites More sharing options...
Zedna Posted September 8, 2020 Share Posted September 8, 2020 (edited) $title = "VitalSource Downloader" $start = 10 $end = 19 While 1 If $end > 180 Then ExitLoop ControlSetText($title, "", "TEdit3", $start) ControlSetText($title, "", "TEdit1", $end) ControlClick($title, "", "TButton1") Sleep(60000) $start += 10 $end += 10 WEnd Edited September 8, 2020 by Zedna JJJAuto 1 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
JJJAuto Posted September 9, 2020 Author Share Posted September 9, 2020 Thanks !! That works great !! The sleep was a bit of a hit and miss as I misunderstood how the app timeout works. It still seems to works even when the button was not seen, so that's a bit surprising. I'm assuming that's because the Tbutton has a ClassnameNN of Tbutton2 when it's "Pause" and Tbutton3 when it's Resume, so only when it's download that it's seem as "Tbutton1" ? Does that means that it wouldn't click until it Tbutton appear ? Once again, THANKS !! This is very helpful Link to comment Share on other sites More sharing options...
JJJAuto Posted September 9, 2020 Author Share Posted September 9, 2020 Sorry for replying to myself but I cannot seems to find the option to edit the previous post. Link to comment Share on other sites More sharing options...
Zedna Posted September 9, 2020 Share Posted September 9, 2020 5 hours ago, JJJAuto said: It still seems to works even when the button was not seen, so that's a bit surprising. Look at ControlCommand() + IsVisible/IsEnabled Resources UDF ResourcesEx UDF AutoIt Forum Search 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