mesale0077 Posted July 12, 2013 Posted July 12, 2013 $obj = _IEGetObjById($oIE, "2") ObjEvent($obj, "Products_") $obj = _IEGetObjById($oIE, "3") ObjEvent($obj, "Produ_") $obj = _IEGetObjById($oIE, "1") ObjEvent($obj, "Company_") $obj = _IEGetObjById($oIE, "button_id") okey but ObjByIdnameObjEvent() ithink func ? ı want to convert id Switch ,but how is it? While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch $nid= ObjByIdnameObjEvent() Switch $nid Case 2 Products_() Case 3 Produ_() EndSwitch WEnd thank you now
jaberwacky Posted August 6, 2013 Posted August 6, 2013 What was the question? You want to make a switch strucutre based on the return value of ObjByIdnameObjEvent()? It looks like you already have it set up. Make sure the Case statements cover all of the possible return values. Helpful Posts and Websites: AutoIt Wiki | Can't find what you're looking for on the Forum? My scripts: Guiscape | Baroque AU3 Code Formatter | MouseHoverCalltips | SciTe Customization GUI | ActiveWindowTrack Toy | Monitor Configuration UDF
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