Jump to content

Recommended Posts

  • Moderators
Posted (edited)

This is just a revision of >IEJS.au3 Library, with more functions and a better naming attribute to what the library actually is.

You'll find standard AutoIt object functions as well as internally executed Javascript ones (functions with: _IEEx_JS* are javascript functions).

To read more on how this came about or previous versions, please see the IEJS.au3 page.

When reporting issues, please provide:

Issue you've encountered.

Replication code (If I can't run your code, I won't debug it more than likely).

AutoIt version

IE version

IE update version

SciTe Version if you ran it from SciTe

Functions:

;    _IEEx_CallObjEval()
;    _IEEx_CallObjExecScript() - Fixed
;    _IEEx_CheckAppVersionAlways()
;    _IEEx_ClassNameGetArray() - New
;    _IEEx_ClickObjByPoint()
;    _IEEx_CreateWithParams() - Fixed
;    _IEEx_EmbeddedGetVersion()
;    _IEEx_EmbeddedSetVersion()
;    _IEEx_GetAppMajorVersion()
;    _IEEx_GetObjByClassName() - New
;    _IEEx_GetObjByString() - New
;    _IEEx_GetObjEval()
;    _IEEx_GetObjParentWindow()
;    _IEEx_GetObjPos()
;    _IEEx_GetObjType()
;    _IEEx_GetScroll()
;    _IEEx_GetScrollPoint()
;    _IEEx_GetWindowSize()
;    _IEEx_ObjCheckBoxRadioSelect() - New
;    _IEEx_ObjDispatchEvent() - New
;    _IEEx_MouseEventExec()
;    _IEEx_JSClassNameGetArray()
;    _IEEx_JSClassNameGetCollection()
;    _IEEx_JSClickObj()
;    _IEEx_JSClickObjById()
;    _IEEx_JSClickObjByName()
;    _IEEx_JSClickObjByPoint()
;    _IEEx_JSDragEventObj()
;    _IEEx_JSEnable()
;    _IEEx_JSGetObjByClassName()
;    _IEEx_JSGetObjPos()
;    _IEEx_JSIsEnabled()
;    _IEEx_JSMouseEventObj()
;    _IEEx_JSMouseEventObjById()
;    _IEEx_JSMouseEventObjByName()
;    _IEEx_JSObjQuerySelector()
;    _IEEx_JSObjQuerySelectorAll()
;    _IEEx_JSTypeOf()
;    _IEEx_TabAttach()
;    _IEEx_TabCount()
;    _IEEx_TabCreate()
;    _IEEx_TabGetInstance()
;    _IEEx_VersionInfo()
;    _IEEx_WhileIsObj() - New
;    _IEEx_WhileNotIsObj() - New
;    _IEEx_WinGetBrowserObjArray()

Changes:

2014-12-30    B0.0.6    Added:    _IEEx_EmbeddedGetVersion()Get the embedded version used from something like
                                                          _IECreateEmbedded
2014-12-30    B0.0.6    Added:    _IEEx_EmbeddedSetVersion()Set the embedded version used from something like
                                                          _IECreateEmbedded (see example)
2014-12-30    B0.0.6    Added:    _IEEx_TabAttach()Similar to _IEAttach(), but browser specific and different string cases
2014-12-30    B0.0.6    Added:    _IEEx_TabCount()Get a count of the tabs open in a specific browser session
2014-12-30    B0.0.6    Added:    _IEEx_TabGetInstance()Get the tab instance number from the specific browser session
2014-12-30    B0.0.6    Added:    _IEEx_WinGetBrowserObjArray()Get all the browser objects (tabs) from a specific browser
                                                             window handle/title
2015-01-13    B0.0.7    Changed:  _IEJS format to _IEEx - Script breaking
2015-01-20    B0.0.7    Fixed     _IEEx_CreateWithParams()Issue with tryattach, wait, and focus.
                                                          Added return object/pid feature
2015-01-22    B0.0.7    Fixed:    _IEEx_CallObjExecScript()Recursion issue when IE version is 11 or higher and no exeScript
2015-01-26    B0.0.7    Added:    _IEEx_ClassNameGetArray()Retrieve an array of objects based on class
2015-01-26    B0.0.7    Added:    _IEEx_GetObjByClassName()Retrieve an object based on class
2015-01-26    B0.0.7    Added:    _IEEx_GetObjByString()Retrieve an object by its innerText or value
2015-01-26    B0.0.7    Added:    _IEEx_ObjCheckBoxRadioSelect()(Un)Check/(De)Select radio or checkbox, has dispatchevent
                                                                option as well as fireevent
2015-01-26    B0.0.7    Added:    _IEEx_ObjDispatchEvent()similar to fireEvent
2015-01-26    B0.0.7    Added:    _IEEx_WhileIsObj()waits until an object is no longer an object (could come in handy for
                                                    waiting on page loads rather than hoping you have the right about of
                                                    Sleep(n) allocated)
2015-01-26    B0.0.7    Added:    _IEEx_WhileNotIsObj()waits until a variable is an object (could come in handy for
                                                    waiting on page loads rather than hoping you have the right about of
                                                    Sleep(n) allocated)
2015-01-26    B0.0.8    Fixed:    _IEEx_GetAppMajorVersion()Was being passed regular objects but only checking for browser
                                                            Thank you mLipok for reporting and testing for me

 

2015-01-26IEEx.B007.zip

2015-01-26IEEx.B008.zip

.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted (edited)

Trying to use and:
 

  Quote

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "Z:TOOLsMacroFORUM___FORUM -- z forumIEEx.B007ExamplesIEExMouseClickExample.au3" /UserParams  
+>17:23:16 Starting AutoIt3Wrapper v.14.801.2025.5 SciTE v.3.5.2.0   Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0415)
+>         SciTEDir => C:Program Files (x86)AutoIt3SciTE   UserDir => C:UsersuserAppDataLocalAutoIt v3SciTEAutoIt3Wrapper   SCITE_USERHOME => C:UsersuserAppDataLocalAutoIt v3SciTE
>Running AU3Check (3.3.13.19)  from:C:Program Files (x86)AutoIt3Beta  input:Z:TOOLsMacroFORUM___FORUM -- z forumIEEx.B007ExamplesIEExMouseClickExample.au3
+>17:23:16 AU3Check ended.rc:0
>Running:(3.3.13.19):C:\Program Files (x86)\AutoIt3\Beta\autoit3.exe "Z:TOOLsMacroFORUM___FORUM -- z forumIEEx.B007ExamplesIEExMouseClickExample.au3"  
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
"Z:TOOLsMacroFORUM___FORUM -- z forumIEEx.B007ExamplesIEEx.au3" (188) : ==> The requested action with this object has failed.:
Return $oExec.execScript($sScript)
Return $oExec^ ERROR

->17:23:21 AutoIt3.exe ended.rc:1
+>17:23:21 AutoIt3Wrapper Finished.
>Exit code: 1    Time: 5.593

EDIT:

IE 11.0.9600.17501
IEup. 11.0.15 KB3008923
Win 7 Pro 64Bit
SciTE latest Beta

_IEEx_VersionInfo:
Version: B0.0.7
Release Date: 2015-01-13

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

and second issue:

  Quote

 

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "Z:TOOLsMacroFORUM___FORUM -- z forumIEEx.B007ExamplesIEExMouseEventGetPosGetScrollExample.au3" /UserParams   
+>17:32:56 Starting AutoIt3Wrapper v.14.801.2025.5 SciTE v.3.5.2.0   Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0415)
+>         SciTEDir => C:Program Files (x86)AutoIt3SciTE   UserDir => C:UsersuserAppDataLocalAutoIt v3SciTEAutoIt3Wrapper   SCITE_USERHOME => C:UsersuserAppDataLocalAutoIt v3SciTE
>Running AU3Check (3.3.13.19)  from:C:Program Files (x86)AutoIt3Beta  input:Z:TOOLsMacroFORUM___FORUM -- z forumIEEx.B007ExamplesIEExMouseEventGetPosGetScrollExample.au3
+>17:32:56 AU3Check ended.rc:0
>Running:(3.3.13.19):C:\Program Files (x86)\AutoIt3\Beta\autoit3.exe "Z:TOOLsMacroFORUM___FORUM -- z forumIEEx.B007ExamplesIEExMouseEventGetPosGetScrollExample.au3"   
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
!>17:33:23 AutoIt3.exe ended.rc:-1073741571
+>17:33:23 AutoIt3Wrapper Finished.
>Exit code: 3221225725    Time: 26.82

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Moderators
Posted

LOL, that was fast!!!

Not having IE11 sucks... I'll see what I can do, thanks.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

  • Moderators
Posted

Issue fixed I believe, thanks mLipok for helping!

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

  Quote

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:Documents and SettingsDanPollakDesktopIEEx.B008ExamplesIEExClassNameArrayExample.au3" /UserParams    

+>11:39:08 Starting AutoIt3Wrapper v.2.2.0.3 SciTE v.3.4.1.0   Keyboard:00000409  OS:WIN_XP/Service Pack 3  CPU:X64 OS:X86    Environment(Language:0409)

+>         SciTEDir => C:Program FilesAutoIt3SciTE   UserDir => C:Documents and SettingsDanPollakLocal SettingsApplication DataAutoIt v3SciTEAutoIt3Wrapper   SCITE_USERHOME => C:Documents and SettingsDanPollakLocal SettingsApplication DataAutoIt v3SciTE

>Running AU3Check (3.3.12.0)  from:C:Program FilesAutoIt3  input:C:Documents and SettingsDanPollakDesktopIEEx.B008ExamplesIEExClassNameArrayExample.au3

+>11:39:08 AU3Check ended.rc:0

>Running:(3.3.12.0):C:Program FilesAutoIt3autoit3.exe "C:Documents and SettingsDanPollakDesktopIEEx.B008ExamplesIEExClassNameArrayExample.au3"    

--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop

"C:Documents and SettingsDanPollakDesktopIEEx.B008ExamplesIEEx.au3" (1650) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:

$aORet[$iCount] = $oItem

^ ERROR

->11:39:14 AutoIt3.exe ended.rc:1

+>11:39:14 AutoIt3Wrapper Finished.

>Exit code: 1    Time: 6.191

 

  • Moderators
Posted (edited)

IE11 Dan?

Edit:
I believe I've fixed that issue, but I think I'll wait until anymore are found.  The fix if you want to insert yourself until then:

Func _IEEx_JSClassNameGetArray(ByRef $oObj, $sClass, $sTag = Default)

    Local $oItems = _IEEx_JSClassNameGetCollection($oObj, $sClass)
    If @error Then
        Return SetError(@error, @extended, 0)
    EndIf

    $sTag = ((StringLen($sTag) And Not IsKeyword($sTag)) ? StringLower($sTag) : "")

    Local $iLen = Int($oItems.length)
    If @error Or $iLen = 0 Then
        Return SetError($_IESTATUS_InvalidValue, -1, 0)
    EndIf
    
    Local $aORet[$iLen]
    Local $iCount = 0
    For $oItem In $oItems
        If StringLen($sTag) Then
            If $sTag <> StringLower($oItem.tagName) Then ContinueLoop
        EndIf
        If $iCount = $iLen Then ExitLoop
        $aORet[$iCount] = $oItem
        $iCount += 1
    Next

    ReDim $aORet[$iCount]
    Return SetError($_IESTATUS_Success, 1, $aORet)
EndFunc   ;==>_IEEx_JSClassNameGetArray

.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted (edited)

Little confused by _IEEx_WhileNotIsObj.

How would one pass an object if that object does not exist in the functions current form (IEEx.B008)? 

EDIT:

Because the first thing the function does is...

If Not IsObj($oObj) Then
    Return SetError($_IESTATUS_InvalidDataType, 1, 0)
EndIf
Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

  • Moderators
Posted

fun fun fun... (actually it is, No feedback on the other so I didn't know these were would be broke :) ).

@John, cute huh?  I must admit, that's a standard first line for me in EVERY object udf lol.  I probably did it without thinking... Thanks

@Danp2... it's a javascript issue, I will look over it and try to find an alternative... thanks

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

  • 9 months later...
Posted

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

I am curious, why you use 

Local $oDPWE = Execute('$oObj.document.getElementById("IEExAutEvalObjId")')

instead:

Local $oDPWE = $oObj.document.getElementById("IEExAutEvalObjId")

?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 7 months later...
Posted

I hope someone can help me. (if this isn't outdated)

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\Users\Hans\Desktop\YouTube Upvote Downloader\YouTube upvotes loader with IEEX.au3" /UserParams    
+>19:05:52 Starting AutoIt3Wrapper v.16.306.1237.0 SciTE v.3.6.2.0   Keyboard:00000807  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0407)  CodePage:0  utf8.auto.check:4    # detect ascii high characters and if none found set default encoding to UTF8 and do not add BOM
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\Hans\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Hans\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.2)  from:C:\Program Files (x86)\AutoIt3  input:C:\Users\Hans\Desktop\YouTube Upvote Downloader\YouTube upvotes loader with IEEX.au3
+>19:05:52 AU3Check ended.rc:0
>Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "C:\Users\Hans\Desktop\YouTube Upvote Downloader\YouTube upvotes loader with IEEX.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
"C:\Program Files (x86)\AutoIt3\Include\IEEX.au3" (280) : ==> The requested action with this object has failed.:
If String($oTag.classname) = $sClass Then
If String($oTag^ ERROR
->19:07:49 AutoIt3.exe ended.rc:1
+>19:07:49 AutoIt3Wrapper Finished.
>Exit code: 1    Time: 117.6

It happens, when i'm trying to _IEEx_GetObjByClassName frequently in succession.

 

I hope u can help and have a nice day.

  • 3 years later...

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