Jump to content

Recommended Posts

Posted

$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

  • 4 weeks later...
Posted

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.

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
×
×
  • Create New...