ROnaldo30 Posted June 13, 2009 Share Posted June 13, 2009 I have a link that opens in a new window type: <a href="link" target="_new"> test </ a> To click can use only: _IEAction($oLink, "click") _IELoadWait ($oIE) How can I make new invisible window that opens and closes like a can? Link to comment Share on other sites More sharing options...
bogQ Posted June 13, 2009 Share Posted June 13, 2009 How can I make new invisible window that opens and closes like a can? I dont complitley understand what r you truying to say or do. See if something from this can help WinSetTrans GUISetState WinSetState _IECreate $f_visible Optional: specifies whether the browser window will be visible 0 = Browser Window is hidden 1 = (Default) Browser Window is visible or try to explaind better what r you trying to do. TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
ROnaldo30 Posted June 13, 2009 Author Share Posted June 13, 2009 I have a link in a page of the type: <a href="link" target="_new"> test </ a> $oLinks = _IELinkGetCollection ($oIE) For $oLink In $oLinks .... _IEAction($oLink, "click") I want to click this link with: _IEAction($oLink, "click") Because the link has: target="_new " when i click it opens in a new window. I'd like that the new window to be invisible. Thanks! Link to comment Share on other sites More sharing options...
CodyBarrett Posted June 14, 2009 Share Posted June 14, 2009 Winsetstate ($hWnd, @SW_HIDE) (or however the order it goes) would that work? [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
ROnaldo30 Posted June 14, 2009 Author Share Posted June 14, 2009 Winsetstate ($hWnd, @SW_HIDE) (or however the order it goes) would that work? I am use: WinSetState("[CLASS:IEFrame]", @SW_HIDE) but it is visible a few seconds and then becomes invisible. how can I do to not be visible at all? Link to comment Share on other sites More sharing options...
oMBRa Posted June 14, 2009 Share Posted June 14, 2009 tell us the page with your link Link to comment Share on other sites More sharing options...
ROnaldo30 Posted June 14, 2009 Author Share Posted June 14, 2009 (edited) tell us the page with your link#include <IE.au3> $key = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows", "PopupMgr") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows", "PopupMgr", "REG_SZ", "no") $oIE = _IECreate ("http://www.popuptest.com", 0 , 0, 1, 0) _IELoadWait($oIE) $oInputs = _IELinkGetCollection ($oIE) For $oInput In $oInputs If $oInput.href = "http://www.popuptest.com/popuptest1.html" Then _IEAction ($oInput, "click") _IELoadWait($oIE) ExitLoop EndIf Next RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows", "PopupMgr", "REG_SZ", $key) How make popup (new window) invisible ? Edited June 14, 2009 by ROnaldo30 Link to comment Share on other sites More sharing options...
CodyBarrett Posted June 14, 2009 Share Posted June 14, 2009 straight from the helpfile (has been mentioned above) _IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = 1]]]]] ) [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
ROnaldo30 Posted June 14, 2009 Author Share Posted June 14, 2009 straight from the helpfile (has been mentioned above) _IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = 1]]]]] ) New window is created on: _IEAction ($oInput, "click"). This I want to be invisible. Link to comment Share on other sites More sharing options...
CodyBarrett Posted June 14, 2009 Share Posted June 14, 2009 winwaitactive () ? then winsetstate() to hide it? im not sure of anything else that would do what you want [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 14, 2009 Share Posted June 14, 2009 If the link is javascript, there's nothing you can do. You just have to hide it when it appears. If it's not javascript, you can just read the link and make a new window from that link. Link to comment Share on other sites More sharing options...
ROnaldo30 Posted June 23, 2009 Author Share Posted June 23, 2009 If the link is javascript, there's nothing you can do. You just have to hide it when it appears.If it's not javascript, you can just read the link and make a new window from that link.Hi,I add the file with a script "test.au3".I want to make "newWindow2 " invisible.How can I do it, please modify my script.Thx!test.zip Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 23, 2009 Share Posted June 23, 2009 I'm not going to bother reading through all that to figure out what needs to be changed. You need to. When posting code, only post the pieces that are relevant to the problem. Link to comment Share on other sites More sharing options...
ROnaldo30 Posted June 23, 2009 Author Share Posted June 23, 2009 If the link is javascript, there's nothing you can do. You just have to hide it when it appears. If it's not javascript, you can just read the link and make a new window from that link.#include <IE.au3> $key = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows", "PopupMgr") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows", "PopupMgr", "REG_SZ", "no") $oIE = _IECreate (@ScriptDir & "\" & "initialwindow.html", 0, 0) _IELoadWait($oIE) $oInputs = _IELinkGetCollection ($oIE) $iNumLinks = @extended For $oInput In $oInputs If StringInStr($oInput.href, "newWindow2.html") Then _IEAction ($oInput, "click") _IELoadWait($oIE) ExitLoop EndIf Next RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows", "PopupMgr", "REG_SZ", $key) In html: <html> <form> <a href="newWindow1.html">newWindow1</a> <br> <a href="newWindow2.html" target="_new"">newWindow2</a> <br> <a href="newWindow3.html">newWindow3</a> <br> </form> </html> How make newWindow2 invisible, with _IEAction ($oInput, "click"). I don't use _IENavigate because i want simulate click. Thx! Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 23, 2009 Share Posted June 23, 2009 Why do you want to simulate click? Link to comment Share on other sites More sharing options...
ROnaldo30 Posted June 23, 2009 Author Share Posted June 23, 2009 Why do you want to simulate click?With _IEAction ($oInput, "click"). Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 24, 2009 Share Posted June 24, 2009 Read my question again. I asked why, not how. Link to comment Share on other sites More sharing options...
ROnaldo30 Posted June 24, 2009 Author Share Posted June 24, 2009 Read my question again. I asked why, not how.Thanks for reply,I work in web testing products, and simulation of clicks is important for voting and for the number of downloads. Link to comment Share on other sites More sharing options...
ROnaldo30 Posted June 26, 2009 Author Share Posted June 26, 2009 Can someone help me? Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 26, 2009 Share Posted June 26, 2009 If you are supposed to be testing it, why are you hiding it? 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