Sign in to follow this  
Followers 0
sos

Just A Little Help - Please

7 posts in this topic

Please Help - I am trying to "Click- Radio Button" - ControlID 1002 (Button4) Where am I going

wrong

; Script Start - Add your code below here

Run("C:\BurnerII\Progs\InstallMaker\ICBuild24\icinst.exe")

WinWaitActive("Install Creator - Installation Program", "&Next")

Send("!n")

WinWaitActive("Install Creator - Installation Program", "Information")

Send("!n")

WinWaitActive("Install Creator - Installation Program", "Version")

Send("!n")

WinWaitActive("Install Creator - Installation Program", "Licence")

WinActivate ( "Install Creator - Installation Program", "Licence & Please read the license agreement below.")

ControlFocus ( "Install Creator - Installation Program", "Licence & Please read the license agreement below.", "1002")

ControlClick ( "Install Creator - Installation Program", "Licence & Please read the license agreement below.", "1002")

Send("!n")

**********************************

Title: Install Creator - Installation Program

Class: InstItClass

Size: X: 389 Y: 293 W: 496 H: 380

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Client: X: 123 Y: 264

Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0xECE9D8 Dec: 15526360

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 21 Y: 255 W: 449 H: 13

Control ID: 1002

ClassNameNN: Button4

Text: I agree with the above terms and conditions

Style: 0x50010009

ExStyle: 0x00000004

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

License

Please read the license agreement below.

&Next >

E&xit

< &Back

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Remove the quotes from around the ControlID number.

Only use quotes if it is text like "Button4"

Welcome to the forums.

Edit: The answers in your other post hint at this too:

http://www.autoitscript.com/forum/index.ph...showtopic=37472

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

herwasplato- thank you for you suggestion, i have tried without "" and still no luck - Sorry folks for the double post - new to the board aswell as AutoIt

Share this post


Link to post
Share on other sites

Looks to me like you aren't matching the 'text' parameter correctly...I believe you are having it search for something that says exactly: "Licence & Please read the license agreement below." Try matching the text: "Please read the license agreement below."


IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites

Looks to me like you aren't matching the 'text' parameter correctly...I believe you are having it search for something that says exactly: "Licence & Please read the license agreement below." Try matching the text: "Please read the license agreement below."

Good catch mikehunt114

@sos,

You cannot concatenate text like that (Licence & Please) for that function parm. Also, always copy and paste the info from the "AutoIt Window Info" tool.

That tool shows License and you have Licence in your code.

Hope this helps


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

That tool shows License and you have Licence in your code.

That was an even better catch, hehe.


IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites

Thank you all- it was the "S" and not the "C" that did the trick :P Cut and paste it will be!!

I wanted to delete the "Install Creator" icon from the desktop as well -

what I have works with windows xp pro-

but any and all suggestions are welcome

Regards SOS

; Script Start - Add your code below here

Run("C:\BurnerII\Progs\InstallMaker\ICBuild24\icinst.exe")

WinWaitActive("Install Creator - Installation Program", "&Next")

Send("!n")

WinWaitActive("Install Creator - Installation Program", "Information")

Send("!n")

WinWaitActive("Install Creator - Installation Program", "Version")

Send("!n")

WinWaitActive("Install Creator - Installation Program", "License")

ControlClick ("Install Creator - Installation Program", "", 1002)

Send("!n")

WinWaitActive("Install Creator - Installation Program", "Directory")

ControlSetText ( "Install Creator - Installation Program", "Directory", 1004, "C:\ic")

Send("!n")

WinWaitActive("Install Creator - Installation Program", "End")

ControlClick ("Install Creator - Installation Program", "End", 1015)

Sleep(1000)

Send("!x")

If FileExists("C:\Documents and Settings\All Users\Desktop\Install Creator.*") Then

FileDelete("C:\Documents and Settings\All Users\Desktop\Install Creator.*")

Else

EndIf

exit

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