Jump to content
Sign in to follow this  
Marcelo

Set radio button

Recommended Posts

Marcelo

Hi people!!

I need set a option in radio button when I start my browser.

I'm starting my browser normally with script, but i don't know how I set option in radio button into to browser.

Can anybody help me?

Thanks in Advance!

Marcelo

Share this post


Link to post
Share on other sites
Nahuel

You mean... you havea GUI with radio buttons and you want one of them to be check by default?

Then use:

GUICtrlSetState ($radio, $GUI_CHECKED)

-edit-

I think I misunderstood what you meant by "my browser"... You want to check a radio button in a website? please try to be clear.

Use:

_IEFormElementRadioSelect()
Edited by Nahuel

Share this post


Link to post
Share on other sites
Marcelo

You mean... you havea GUI with radio buttons and you want one of them to be check by default?

Then use:

GUICtrlSetState ($radio, $GUI_CHECKED)

-edit-

I think I misunderstood what you meant by "my browser"... You want to check a radio button in a website? please try to be clear.

Use:

_IEFormElementRadioSelect()

Yes, I want to check a radio button in a website.

The code that I open my website is this:

Run("c:\Program Files\Internet Explorer\IEXPLORE.EXE http:\\www.myurl.com")

WinWaitActive("My WebSite Title - Microsoft Internet Explorer")

Then.. my web site open a Activex window called "Autentication"

And I need check the second option(not default) in the radio buttons group.

And my option name is "File" .. how I to do this?

Thanks!

Edited by Marcelo

Share this post


Link to post
Share on other sites
Nahuel

Use _IECreate() istead of Run(). This function will return an object variable you can work with. Check the example in the help file for _IEFormElementRadioSelect(). It's quite clear :D If you get stuck at something, just ask.

And.. I'm not sure about the new authentication window... This has been asked 10000 times and I think there's a workaround. Try to search the forums.

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  

×