Jump to content

Recommended Posts

Posted

How can I detect is the IE opened?
If opened, then open a new tab
else, open new IE window and redirect to specific URL based on button click.

Global $oBrowser = _IECreate()

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE, $GUI_CLOSE_BUTTON
            Call ("CloseApplication")
            Exit
        Case $Button1
            Call ("Google")
        Case $Button2
            Call ("Yahoo")
        Case $Button3
            Call ("Hotmail")
        Case $Button4
            Call ("Gmail")
    EndSwitch
WEnd

 

Posted
1 minute ago, FrancescoDiMuro said:

@gahhon
You should see if the process exists, if it does, then use _IEAttach; if it doesn't, then use _IECreate :)

Yes. I know that, but the problem is where do I declare the _IECreate? and _IEAttach need the IEObj anyway right? @@

Posted
10 minutes ago, FrancescoDiMuro said:

@gahhon

Read carefully the Help file.

LoL. It said redirect to specific URL with current one.
But I did search Google, it showed me _IENavigate.

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...