Jump to content
Sign in to follow this  

ie id Switch

Recommended Posts

$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


$nid= ObjByIdnameObjEvent()
    Switch $nid
        Case 2
 Case 3

thank you now

Share this post

Link to post
Share on other sites

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.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...