Search the Community
Showing results for tags '_ieaction'.
-
Hi, community. Don't know where to debug anymore. Before this I received "Frame Notification Bar" listed when run Local $sClassList = WinGetClassList("[CLASS:IEFrame]") _writeLog("list CLASS: "&$sClassList ) But after a few time testing, the "Frame Notification Bar" does not listed anymore. Not sure why. Even though I have reverted the code to initial condition. I suspected because not closing IE properly. I have disable and enable back and restart the computer but not yet found back the class. My code: if(StringInStr($oTd.innerText, $keyWord)<>0) Then Local $oElements = _IETagNameAllGetCollection($oTd) For $oElement In $oElements if(StringInStr($oElement.innerText, $keyWord)<>0) Then Local $status_click = _IEAction($oElement, "click") If ($status_click = 1) Then _writeLog("Action Success perform - click on selected link: "&$keyWord) Else _writeLog("failed perform Action Link") EndIf Return $status_click EndIf Next EndIf Any help needed. Result: Success to click Download list CLASS: BrowserFrameGripperClass Client Caption WorkerW ReBarWindow32 TravelBand ToolbarWindow32 Address Band Root AddressDisplay Control Edit ToolbarWindow32 ToolbarWindow32 TabBandClass DirectUIHWND ControlBandClass ToolbarWindow32 CommandBarClass ReBarWindow32 Frame Tab TabWindowClass Shell DocObject View Internet Explorer_Server Version 3.5.4
-
For fun, I'm building an app that opens a webpage and refreshes it every 30 seconds. But once the script performs _IEAction($oIE, "refresh"), the GUI closes. Any help is appreciated. #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <WinAPIFiles.au3> #include <Array.au3> #include <File.au3> #include <Excel.au3> #include <DateTimeConstants.au3> #include <MsgBoxConstants.au3> #include <WinAPIShellEx.au3> #include <MsgBoxConstants.au3> #include <Date.au3> #include <ComboConstants.au3> #include <guimenu.au3> #include <IE.au3> HotKeySet("{F4}", "_Exit") ;Open the file(s) in the selected folder $extension = ".txt" $app2openWith = @SystemDir & "\notepad.exe" Func Begin() Global $loopTrick = 0 #Region ### START Koda GUI section ### Form=c:\users\mchu\downloads\autoit\my code\form1.kxf Global $UI = GUICreate("Hit Em Up!", 256, 113, -1, -1) GUISetBkColor(0x000000) $menu = _GUICtrlMenu_GetSystemMenu($UI) _GUICtrlMenu_EnableMenuItem($menu, $SC_CLOSE, 1, False) Global $url = GUICtrlCreateInput("https://www.youtube.com/watch?v=dQw4w9WgXcQ", 81, 8, 160, 21) $Label1 = GUICtrlCreateLabel("Target:", 16, 8, 55, 17) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0x00FF00) Global $StartBut = GUICtrlCreateButton("Start", 16, 40, 67, 25) GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif") GUICtrlSetBkColor(-1, 0x008000) $Label2 = GUICtrlCreateLabel("(Press F4 to Exit)", 96, 40, 8000, 17) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0x00FF00) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $UIfunc = GUIGetMsg() Select Case $UIfunc = $GUI_EVENT_CLOSE _Exit() Case $UIfunc = $StartBut If GUICtrlRead($url) = "" Then MsgBox(48, "Um...", "Give me a target you idiot.") Else GUICtrlSetState($url, $GUI_DISABLE) GUICtrlSetState($StartBut, $GUI_DISABLE) Start() EndIf EndSelect WEnd EndFunc ;==>Begin Func Start() If $loopTrick = 0 Then Global $oIE = _IECreate(GUICtrlRead($url)) _IELoadWait($oIE) Again() ElseIf $loopTrick = 1 Then Sleep(3000) _IEAction($oIE, "refresh") Sleep(3000) Start() EndIf EndFunc ;==>Start Func Again() $loopTrick = 1 Start() EndFunc ;==>Again Func _Exit() Exit EndFunc ;==>_Exit
-
Hello guys, I need to bring up a MsgBox when the user clicks a button on the Internet Explorer page. This is the button on the HTML page: <button id="NOT_READY_BTN-btnEl" type="button" class="x-btn-center" hidefocus="true" disabled="disabled" role="button" autocomplete="off" data-qtip="ENTRA" style="width: 169px; height: 24px;"> <span id="NOT_READY_BTN-btnInnerEl" class="x-btn-inner" style="width: 169px;">ENTRA</span> <span id="NOT_READY_BTN-btnIconEl" class="x-btn-icon " style="background-image:url(img/icons/ENTRA.gif)"></span></button> Thanks
-
<td align="right"> <script language="JavaScript"> DrawActionTableTop(); DrawActionRow('sign in','#"onClick="JavaScript:doit()',2 ); DrawActionTableBottom(); </script> I am trying to do a simple login to a webpage. When i view the source of the web page it shows ^^^^ Further in the source the function that it is calling is function doit() { if(validate()) document.loginFormBean.submit(); } My following Autoit code of course is not working to submit the page $oButton=_IEGetObjById($oIE,"sign in") _IEAction ($oButton, "click")How would I click on this button or can i run this command somehow? Sorry for all the code boxes, i could not delete them once added. document.loginFormBean.submit();
-
Hello, i need your help again. How click on button in form if buttons have same name ? Button value is different. My script not working func odoslat() Local $oForm = _IEFormGetObjByName($oIE, "formedit") Local $oSelect = _IEFormElementGetObjByName($oForm, "Zmazať") _IEAction($oSelect, "focus") _IEAction($oSelect, "click") EndFuncSource code from web is here: I need click on button "Zmazať" <form name="formedit" id="formedit" method="post" action="/deletei2.php"> <br> Vaše heslo:<br> <input type="text" name="heslobazar" maxlength="20" value=""><br><br> <input type="hidden" name="idad" id="idad" value=49359062> <input type="submit" name="administrace" value="Editovať"> <input type="submit" name="administrace" value="Zmazať"> </form> </td> </tr>Thanks for answer
-
Hi I am trying to submit an IE Form: <FORM encType=multipart/form-data method=post name=menuForm action=/nac-cp/default.html><TABLE> <TBODY> <TR> <TD>Inspect:</TD> <TD><INPUT onkeydown="if (event.keyCode == 13) {do_menu_form_submit('quickSearch_searchFieldId_');return false;};" title="<accessNode>:<rackId>-<shelfId>-<slotId>-[iMA#/BOND#]<portId> / <label> / <Id> / LABEL=<portlabel> / LBL=<portlabel> / CLABEL=<customerlabel> / CLBL=<customerlabel> / INSP=<Id> / INSPECTION=<Id>" value="BM0LCPLB:1-1-6-36 " type=text name=quickSearch_searchFieldId_> <INPUT type=hidden name=EventSource> <INPUT type=hidden name=stack> <INPUT type=hidden name=currentPosition> <INPUT value=81BF3F3055F23467DA83BE94A943C651.nwanalyser-nac-cp-jboss-slave-1 type=hidden name=JSESSIONID> </TD></TR></TBODY></TABLE></FORM> The blow code does not work for me. There is no button for this form. From what I understand "onkeydown="if (event.keyCode == 13)" is the enter button. Does anyone know how I could gracefully send 'enter' to this without Winactivate or some such? $na = _IEAttach("myurl.html", "url") Local $oForm = _IEFormGetObjByName($na, "menuForm") Local $oText = _IEFormElementGetObjByName($oForm, "quickSearch_searchFieldId_") _IEFormElementSetValue($oText, "Somedata") _IEAction($oForm, "$oForm")
- 7 replies
-
- _IEAction
- _IEFormGetObjByName
-
(and 2 more)
Tagged with:
-
Hi, I am using code below to find a link in IE. I need to open the link in another tab. Is there a way or function to middle mouse button click with _IEAction? Local $sMyString = "DLM-" Local $oLinks = _IELinkGetCollection($LAMA) For $oLink In $oLinks Local $sLinkText = _IEPropertyGet($oLink, "innerText") If StringInStr($sLinkText, $sMyString) Then MsgBox(0, "Form Info", "found your link") _IEAction($oLink, "click") ExitLoop EndIf Next
- 4 replies
-
- _IEAction
- ControlClick
-
(and 1 more)
Tagged with:
-
Could someone help me understand why I'm losing the object for certain _IE user-functions (those included with Au3 v3.3.10.2) #include <IE.au3> ; Required for automatically entering login credentials to app manager GLOBAL $oIE $oIE = _IECreate("about:blank", 1) ; _IEQuit ($oIE) ; _IEQuit line HERE, it work, closing the browser... ConsoleWrite ("===============================" & @CRLF ) If WinExists ( "Blank Page - Windows Internet Explorer") <> 1 then While WinExists ("Blank Page - Windows Internet Explorer") <> 1 sleep ( 500 ) WEnd EndIf sleep ( 1200 ) ConsoleWrite ("===============================" & @CRLF ) ; _IEQuit ($oIE) ; _IEQuit line HERE, it work, closing the browser... ConsoleWrite ('This is where the object, $oIE, gets broken/lost' & @CRLF ) _IENavigate( $oIE, "http://www.msn.com" ) sleep (3000) ConsoleWrite ("===============================" & @CRLF ) sleep ( 5000 ) _IEQuit ($oIE) ; HERE FAILS, console error: "--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidObjectType" exit In the above script, there are 3 lines with _IEQuit. The 1st 2 are commented out, but they work with closing the browser fine, but the 3rd line, fails to close out the browser window. (I'm not wanting to close out the browser window, but I was trying to figure out why subsequent calls lose the object variable reference of $oIE. Using _IEQuit seemed to be the easiest way to ensure we were attached to the same browser window. I've also noticed that using the above script, after the script exits (with the 3rd _IEQuit line intact), since the browser window is still open, if I try and enter any URL into the adress bar, pressing enter then causing a new browser window to open up. Any suggestions on why the object reference is getting broken? Thanks, Van
-
IE.au3 Get and Click object without id and having title="Logout" I want to get the object from the Web page code is below and click on it. <td title="Logout" class="icon-button" noWrap="nowrap" itemID="xxx522081682204.21765"> The structure where this td is located is as follows <form name="myForm"> <div>.... <div>.... <div> id = divToolbar... <div> <table....> <tbody...> <tr> <td...........> <td............> <td title="Logout" ........> How to get such object and then perform click operation on it? I am also attaching the exact html code image. Is there any general function available? Thanks in advance for help.