Search the Community
Showing results for tags 'objevent'.
-
I have this AutoIt script that works on Windows 7. However, when I test it on Windows 10, the objEvent will not execute the function it's supposed to call. So I have a webpage the script will check if it is active, then it will search if a popup button exist (elementId), if so, assign it to the event handler so that when that button is clicked, then handler function will move the focus back to the main GUI again. If WinActive("Website Title - Internet Explorer") Then $ie = _IEAttach("Website Title") $objElement= _IEGetObjById ($ie, &quo
- 9 replies
-
- objevent
- windows 10
-
(and 1 more)
Tagged with:
-
I'm trying to use the COM interface to create an object . Here is the reference url:https://msdn.microsoft.com/zh-tw/library/windows/desktop/aa384106.aspx I failed to use the event ,actually I have no idea about how to. I take the example in objectevent. apparently I do not get the key point. here is my code. Global $oErrorHandler = ObjEvent("AutoIt.Error", "_ErrFunc") Global $oHttp = ObjCreate('WinHttp.WinHttpRequest.5.1') Global $ohttpevent= ObjEvent($oHttp, 'IWinEvents_','IWinHttpRequestEvents') $oHttp.SetTimeouts(60000, 60000, 60000, 5
-
Hello, i'm trying to use this UDF _IEquerySelectorAll() to check if i clicked a button in a web page. here is the index.html: and this is my autoit script including the _IEquerySelectorAll() function (modified by mLipok) : well, so i'm supposed to see a msgbox when i click the button, but nothing happens... Can someone help me please ? something should be wrong here: $oDoc = _IEDocGetObj($oIE) $oButton = _IEquerySelectorAll($oDoc,'button', 0) ObjEvent($oButton, "_Evt_") Func _Evt_onClick() msgbox(0,"","button clicked
-
Hello and happy new Year to everybody! I'm trying to catch some events occuring within a browser control by simply using the ObjEvent() function. I think I'm not using that function in a proper way since some events are captured, while other are not. more precisely, events like those listed in this page are working: https://msdn.microsoft.com/en-us/library/aa769764(v=vs.85).aspx while other events listed in other "interfaces", as in the following links, does not works. https://msdn.microsoft.com/en-us/library/hh801967(v=vs.85).aspx For exemple, Here I would like to catch
-
I have e.g. Local $oIEEvents = ObjEvent(_IEGetObjById($oIE, "mylink"), "_MyLink_", "HTMLAnchorEvents2")working perfectly, but Local $oIEEvents = ObjEvent(_IEGetObjById($oIE, "future_btn"), "_Futurebtn_", "HTMLButtonElementEvents ")does not as ExtJS has not dynamically created the html yet. Is there anything in the IE API that would allow a callback to $oIE once the html is available?