matto100 Posted August 15, 2014 Share Posted August 15, 2014 I am playing around with making a simple embedded IE browser, but if I click a link that would normally open in a new tab (aka about:blank) it loads in a new IE window. Is it possible to make them load in the embedded IE instead of a separate app (Sorry if i'm being vague)? Link to comment Share on other sites More sharing options...
JohnOne Posted August 15, 2014 Share Posted August 15, 2014 Post your code, and give example of your problem. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
matto100 Posted August 15, 2014 Author Share Posted August 15, 2014 (edited) Okay, well my code is the basic IE embed: $oIE = ObjCreate ("Shell.Explorer.2") GUICreate("IE Embed", @DektopWidth, @DesktopHeight, 0, 0, BitOR ($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN)) $GUI_ActiveX = GUICtrlCreateObj($oIE, 10, 40, 1335, 600) ;Not all the code, but the only relevant part. My problem is that if I click a link in the object that when used in a normal browser would open in a new tab, it opens in a new IE window. Is there a way to make it open in the object like a normal link? Edited August 15, 2014 by matto100 Link to comment Share on other sites More sharing options...
JohnOne Posted August 15, 2014 Share Posted August 15, 2014 Yes, get the url of the link and navigate to it. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
matto100 Posted August 15, 2014 Author Share Posted August 15, 2014 Im sorry, but can you give me an example on how can I search for links whose targets are '_blank'? I don't know how to do that. Link to comment Share on other sites More sharing options...
MikahS Posted August 15, 2014 Share Posted August 15, 2014 _IELinkGetCollection() Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 15, 2014 Moderators Share Posted August 15, 2014 _IELinkGetCollection is for getting all the links in a document, I believe the OP is asking about opening secondary pages. @matto100 - you're creating an object, and then embedding that object in a GUI. Do you have tabs in your GUI to support multiple pages? Since you're embedded just the IE object in your GUI, not the entire Window, I don't see how you're going to expect tabs unless you make them available in your GUI itself (you essentially are creating your own IE window around the object). "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
JohnOne Posted August 15, 2014 Share Posted August 15, 2014 (edited) The code you posted is not the relevant part. Show the code where you find and click the link. Edited August 15, 2014 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
MikahS Posted August 15, 2014 Share Posted August 15, 2014 @JLogan3o13 ah, so getting a secondary page is different then getting all links on the page? Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 15, 2014 Moderators Share Posted August 15, 2014 You are correct he is looking for a link on the page, however (and I could be wrong so waiting on OP to clarify) it looks like in his GUI, when he clicks manually on a link, he would like it to open another IE tab within the GUI instead of opening the second page outside the GUI. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
MikahS Posted August 15, 2014 Share Posted August 15, 2014 Hm. Would you get the target property and make it blank, then open the link in a new tab in the GUI? Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
matto100 Posted August 15, 2014 Author Share Posted August 15, 2014 I just want to know whether it's possible to have the link targeted to '_blank' to just load like a link that would load in the same tab. Link to comment Share on other sites More sharing options...
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