Jump to content

Unable to select string in combo box


Recommended Posts

Have tried below command, Iam unable to set the value. please help.

ControlCommand("Energy Profile - Windows Internet Explorer","","[id:PQBBASICTYPE1]","SelectString", "Health Club")

Title of the window= Energy Profile - Windows Internet Explorer

ID of the object = PQBBASICTYPE1

One of the values in the drop down = Health Club

Please see attached file for the attributes of the combo box.

Link to comment
Share on other sites

Something like this... you should be able to figure it out after you get the necessary information for the form.

#include <IE.au3>

$oIE = _IEAttach("Energy Profile - Windows Internet Explorer", "WindowTitle")
$sFormName = "Insert Form Name Here"
$oForm = _IEFormGetObjByName($oIE, $sFormname)
$oSelect = _IEFormGetObjByName($oIE, "PQBBASICTYPE1")
_IEFormElementOptionSelect($oSelect, 1, ?) ; See the help file to fill in the ?
Spoiler

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

 

Link to comment
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
 Share

×
×
  • Create New...