TouchOdeath

3.3.14.2 AU3stripper IE.au3 Objevent unsolvable func ERR

18 posts in this topic

#1 ·  Posted (edited)

#include <IE.au3>
#AutoIt3Wrapper_Run_Au3Stripper=y
Local $oIE = _IECreate("https://" & "somesite.com", 0, 1, 1)

I recently updated to 3.3.14.2

If I build this script I consistently get:

-### StripOnly/StripFunc Error: Found ObjEvent() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function.
>### current Func: __ieinternalerrorhandlerderegister
E:\apps\AutoIt3\include\IE.au3(2570,1) Warning for line:$__g_oIEErrorHandler = ObjEvent("AutoIt.Error", $__g_sIEUserErrorHandler) 

I reinstalled autoit to make sure that wasn't the issue, but didn't fix the problem.  Any ideas??  For now I'll downgrade til a solution is found.

 

Edited by TouchOdeath

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

At the moment you have to use the function:

ObjEvent()

EDIT:
Example 1 in HelpFile use it like this:

; Error monitoring. This will trap all COM errors while alive.
    ; This particular object is declared as local, meaning after the function returns it will not exist.
    Local $oErrorHandler = ObjEvent("AutoIt.Error", "_ErrFunc")

 

Hint
For now I suggest to you to use it as Global scope, as this is easier, but not prefered/recomended.

Edited by mLipok

Wondering who uses AutoIT and what it can be used for ?


ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2017-03-27
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites

If you look in IE.au3 $__g_oIEErrorHandler is already declard Global....

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

But did you use :

_IEErrorHandlerRegister()

and btw. It looks like your snippet works well (at least for me).

Can you provide any repro script for you issue ?

Edited by mLipok

Wondering who uses AutoIT and what it can be used for ?


ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2017-03-27
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites

mLipok, everything is in the first post, nothing is left out.  While that wasn't the script I used to orginally stumbled upon the error, I tried to make a script with the least amount of code and still get the error so I can show everyone.  A script as simple as that shouldn't give me any problems but it does.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Ok I use exactly the same snippet from you OP.

#include <IE.au3>
#AutoIt3Wrapper_Run_Au3Stripper=y
Local $oIE = _IECreate("https://" & "somesite.com", 0, 1, 1)

here is my console output:

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "Z:\IE_test.au3" /UserParams    
+>20:28:21 Starting AutoIt3Wrapper v.15.920.938.0 SciTE v.3.6.0.0   Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0415)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\user\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\user\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.2)  from:C:\Program Files (x86)\AutoIt3  input:Z:\IE_test.au3
+>20:28:21 AU3Check ended.rc:0
>Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\autoit3.exe "Z:\IE_test.au3"    
--> Press Ctrl+F11 to Restart or Ctrl+Break -or- F11 to Stop
+>20:28:23 AutoIt3.exe ended.rc:0
+>20:28:23 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 2.542

 

Show me yours.

 

btw.

You are not using exactly the same snippet like in your OP, as you get this error:

-### StripOnly/StripFunc Error: Found ObjEvent() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function.

did you use
 

#Au3Stripper_Parameters=/SO

or /SF or /SV 

??

Edited by mLipok

Wondering who uses AutoIT and what it can be used for ?


ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2017-03-27
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Tools -> go doesn't use au3stripper, but Tools-> Build does.

test456.au3

#include <IE.au3>
#AutoIt3Wrapper_Run_Au3Stripper=y
global $oIE = _IECreate("https://" & "somesite.com", 0, 1, 1)

Tools->Build:

>"E:\apps\AutoIt3\SciTE\..\AutoIt3.exe" "E:\apps\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /NoStatus /prod /in "G:\AutoitVersion\test456.au3"
+>13:33:49 Starting AutoIt3Wrapper v.15.920.938.0 SciTE v.3.6.0.0   Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0409)
+>         SciTEDir => E:\apps\AutoIt3\SciTE   UserDir => C:\Users\TouchOdeath\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\TouchOdeath\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.2)  from:E:\apps\AutoIt3  input:G:\fAutoitVersion\test456.au3
+>13:33:49 AU3Check ended.rc:0
>Running Au3Stripper (15.920.938.0)  from:E:\apps\AutoIt3\SciTE\Au3Stripper cmdline:
-### StripOnly/StripFunc Error: Found ObjEvent() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function.
>### current Func: __ieinternalerrorhandlerderegister
e:\apps\autoit3\include\ie.au3(2570,1) Warning for line:$__g_oIEErrorHandler = ObjEvent("AutoIt.Error", $__g_sIEUserErrorHandler) 

-#############################################################################################
-#### Au3Stripper Found   1 Error(s)!!!!    This means your script could have problems running properly.  ####
-#############################################################################################
- 0.30 Iteration 1 Strip Functions result: Output  1255 lines, stripped 1689 Func lines and 1001 Commentlines
- 0.45 Iteration 2 Strip Variables result: Output  926 lines and stripped 329 lines
- 0.56 Iteration 3 Strip Variables result: Output  918 lines and stripped 8 lines
- 0.66 Iteration 4 Strip Variables result: Output  918 lines and stripped 0 lines
+> Source    3993 lines 166331 Characters.
+> Stripped  2026 Func/Var lines and  1001 comment lines, Total 128903 Characters.
+> Saved     75% lines 77% Characters.
+> 0 Au3Stripper v15.920.938.0 finished created:G:\AutoitVersion\test456_stripped.au3
+>13:33:50 Au3Stripper ended.rc:0
>Running AU3Check (3.3.14.2)  from:E:\apps\AutoIt3  input:G:\AutoitVersion\test456_stripped.au3
+>13:33:50 AU3Check ended.rc:0
>Running:(3.3.14.2):E:\apps\AutoIt3\aut2exe\aut2exe.exe  /in "G:\AutoitVersion\test456_stripped.au3" /out "C:\Users\TouchOdeath\AppData\Local\AutoIt v3\Aut2exe\~AU3A72.tmp.exe" /nopack /comp 2
+>13:33:50 Aut2exe.exe ended.C:\Users\TouchOdeath\AppData\Local\AutoIt v3\Aut2exe\~AU3A72.tmp.exe. rc:0
+>13:33:51 Created program:G:\AutoitVersion\test456.exe
+>13:33:51 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 2.417

 

Edited by TouchOdeath

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Sorry

I just realized that 

#Au3Stripper_Parameters=/SO

is deffault, as I use /MO so this was look for me very strange.

And I miss / not understand you correctly you are trying to compile / build   instead RUN - like I was doing few last post.

EDIT:

Wait a moment..

 

Edited by mLipok

Wondering who uses AutoIT and what it can be used for ?


ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2017-03-27
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Try the latest beta which can be found here: https://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

UEZ, I replaced all 3 files, same result :/

mLipok, the /MO builds without error, but that still doesn't answer the question as to why the default /SO still errors.  I still don't know if anyone else builds the same 3 lines of codes do they get the same build results as me.  If they didn't then that might mean it may be an installation problem of some sort.... 

Edited by TouchOdeath

Share this post


Link to post
Share on other sites

It is only a warrning.

You must read this 3 lines toogether

-### StripOnly/StripFunc Error: Found ObjEvent() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function.
>### current Func: __ieinternalerrorhandlerderegister
e:\apps\autoit3\include\ie.au3(2570,1) Warning for line:$__g_oIEErrorHandler = ObjEvent("AutoIt.Error", $__g_sIEUserErrorHandler)

 

But this realy could be a problem in some cases.

So try to 

  1. Run
  2. Compile and run EXE

this following 2 examples:

 

EXAMPLE 1:

#include <IE.au3>
#AutoIt3Wrapper_Run_Au3Stripper=y

Local $oIE = _IECreate("https://" & "somesite.com", 0, 1, 1)

; Deliberately cause error by calling non-existing method
$oIE.PlayMeARockAndRollSong()

 

EXAMPLE 2:

#include <IE.au3>
#AutoIt3Wrapper_Run_Au3Stripper=y

_IEErrorHandlerRegister(__IEInternalErrorHandler)

Local $oIE = _IECreate("https://" & "somesite.com", 0, 1, 1)

; Deliberately cause error by calling non-existing method
$oIE.PlayMeARockAndRollSong()

 


Wondering who uses AutoIT and what it can be used for ?


ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2017-03-27
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

It is only a warrning.

Nah ... let's make sure we state proper/true statements here! ;)

The Error/Warning generated by au3stripper is pretty clear and discussed many times. It is clear that ie,au3 isn't coded with au3stripper in mind so you better make sure it doesn't break the script!

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

mLipok, I'll run your tests when I come back from the Dr, will be back shortly.  It would really be nice to know if yalls build output throws the same error or not.

Share this post


Link to post
Share on other sites

mLipok, I'll run your tests when I come back from the Dr, will be back shortly.  It would really be nice to know if yalls build output throws the same error or not.

For console output ther would be no differences.
But just try to run, to see what happen.

Nah ... let's make sure we state proper/true statements here! ;)

The Error/Warning generated by au3stripper is pretty clear and discussed many times. It is clear that ie,au3 isn't coded with au3stripper in mind so you better make sure it doesn't break the script!

That's what I meant, but thanks for the detailed explanation.

 


Wondering who uses AutoIT and what it can be used for ?


ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2017-03-27
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

I don't really understand why run and then compile and run.... but I'll post as much information as possible.

Example 1:  Run

>"E:\apps\AutoIt3\SciTE\..\AutoIt3.exe" "E:\apps\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "G:\AutoitVersion\test456.au3" /UserParams    
+>15:34:19 Starting AutoIt3Wrapper v.15.920.938.0 SciTE v.3.6.0.0   Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0409)
+>         SciTEDir => E:\apps\AutoIt3\SciTE   UserDir => C:\Users\TouchOdeath\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\TouchOdeath\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.2)  from:E:\apps\AutoIt3  input:G:\AutoitVersion\test456.au3
+>15:34:20 AU3Check ended.rc:0
>Running:(3.3.14.2):E:\apps\AutoIt3\autoit3.exe "G:\AutoitVersion\test456.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
"G:\AutoitVersion\test456.au3" (7) : ==> The requested action with this object has failed.:
$oIE.PlayMeARockAndRollSong()
$oIE^ ERROR
->15:34:21 AutoIt3.exe ended.rc:1
+>15:34:21 AutoIt3Wrapper Finished.
>Exit code: 1    Time: 1.741

Build:

>"E:\apps\AutoIt3\SciTE\..\AutoIt3.exe" "E:\apps\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /NoStatus /prod /in "G:\AutoitVersion\test456.au3"
+>15:34:45 Starting AutoIt3Wrapper v.15.920.938.0 SciTE v.3.6.0.0   Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0409)
+>         SciTEDir => E:\apps\AutoIt3\SciTE   UserDir => C:\Users\TouchOdeath\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\TouchOdeath\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.2)  from:E:\apps\AutoIt3  input:G:\AutoitVersion\test456.au3
+>15:34:45 AU3Check ended.rc:0
>Running Au3Stripper (15.920.938.0)  from:E:\apps\AutoIt3\SciTE\Au3Stripper cmdline:
-### StripOnly/StripFunc Error: Found ObjEvent() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function.
>### current Func: __ieinternalerrorhandlerderegister
e:\apps\autoit3\include\ie.au3(2570,1) Warning for line:$__g_oIEErrorHandler = ObjEvent("AutoIt.Error", $__g_sIEUserErrorHandler) 

-#############################################################################################
-#### Au3Stripper Found   1 Error(s)!!!!    This means your script could have problems running properly.  ####
-#############################################################################################
- 0.33 Iteration 1 Strip Functions result: Output  1256 lines, stripped 1689 Func lines and 1014 Commentlines
- 0.53 Iteration 2 Strip Variables result: Output  927 lines and stripped 329 lines
- 0.64 Iteration 3 Strip Variables result: Output  919 lines and stripped 8 lines
- 0.75 Iteration 4 Strip Variables result: Output  919 lines and stripped 0 lines
+> Source    4007 lines 166679 Characters.
+> Stripped  2026 Func/Var lines and  1014 comment lines, Total 129221 Characters.
+> Saved     75% lines 77% Characters.
+> 0 Au3Stripper v15.920.938.0 finished created:G:\AutoitVersion\test456_stripped.au3
+>15:34:45 Au3Stripper ended.rc:0
>Running AU3Check (3.3.14.2)  from:E:\apps\AutoIt3  input:G:\AutoitVersion\test456_stripped.au3
+>15:34:45 AU3Check ended.rc:0
>Running:(3.3.14.2):E:\apps\AutoIt3\aut2exe\aut2exe.exe  /in "G:\AutoitVersion\test456_stripped.au3" /out "C:\Users\TouchOdeath\AppData\Local\AutoIt v3\Aut2exe\~AUF107.tmp.exe" /nopack /comp 2
+>15:34:46 Aut2exe.exe ended.C:\Users\TouchOdeath\AppData\Local\AutoIt v3\Aut2exe\~AUF107.tmp.exe. rc:0
+>15:34:46 Created program:G:\AutoitVersion\test456.exe
+>15:34:46 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 2.421

Executing the exe, it pulls up the website, then "AutoIt Error".  'Error: The requested action with this object has failed.'

 

Example 2:  Run

>"E:\apps\AutoIt3\SciTE\..\AutoIt3.exe" "E:\apps\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "G:\AutoitVersion\test456.au3" /UserParams    
+>15:36:53 Starting AutoIt3Wrapper v.15.920.938.0 SciTE v.3.6.0.0   Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0409)
+>         SciTEDir => E:\apps\AutoIt3\SciTE   UserDir => C:\Users\TouchOdeath\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\TouchOdeath\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.2)  from:E:\apps\AutoIt3  input:G:\AutoitVersion\test456.au3
+>15:36:53 AU3Check ended.rc:0
>Running:(3.3.14.2):E:\apps\AutoIt3\autoit3.exe "G:\AutoitVersion\test456.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
--> COM Error encountered in test456.au3 (17) :
----> $IEComErrorNumber         = 0x80020006 (-2147352570)
----> $IEComErrorWinDescription = Unknown name.
----> $IEComErrorDescription    = 
----> $IEComErrorSource         = 
----> $IEComErrorHelpFile       = 
----> $IEComErrorHelpContext    = 
----> $IEComErrorLastDllError   = 0
----> $IEComErrorRetcode        = 0x00000000
+>15:36:54 AutoIt3.exe ended.rc:0
+>15:36:54 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 1.237

Build:

>"E:\apps\AutoIt3\SciTE\..\AutoIt3.exe" "E:\apps\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /NoStatus /prod /in "G:\AutoitVersion\test456.au3"
+>16:13:26 Starting AutoIt3Wrapper v.15.920.938.0 SciTE v.3.6.0.0   Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0409)
+>         SciTEDir => E:\apps\AutoIt3\SciTE   UserDir => C:\Users\TouchOdeath\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\TouchOdeath\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.2)  from:E:\apps\AutoIt3  input:G:\AutoitVersion\test456.au3
+>16:13:26 AU3Check ended.rc:0
>Running Au3Stripper (15.920.938.0)  from:E:\apps\AutoIt3\SciTE\Au3Stripper cmdline:
-### StripOnly/StripFunc Error: Found ObjEvent() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function.
>### current Func: _ieerrorhandlerregister
e:\apps\autoit3\include\ie.au3(2520,1) Warning for line:$__g_oIEErrorHandler = ObjEvent("AutoIt.Error", $sFunctionName) 

-### StripOnly/StripFunc Error: Found ObjEvent() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function.
>### current Func: __ieinternalerrorhandlerderegister
e:\apps\autoit3\include\ie.au3(2570,1) Warning for line:$__g_oIEErrorHandler = ObjEvent("AutoIt.Error", $__g_sIEUserErrorHandler) 

-#############################################################################################
-#### Au3Stripper Found   2 Error(s)!!!!    This means your script could have problems running properly.  ####
-#############################################################################################
- 0.31 Iteration 1 Strip Functions result: Output  1268 lines, stripped 1678 Func lines and 1013 Commentlines
- 0.48 Iteration 2 Strip Variables result: Output  939 lines and stripped 329 lines
- 0.59 Iteration 3 Strip Variables result: Output  931 lines and stripped 8 lines
- 0.70 Iteration 4 Strip Variables result: Output  931 lines and stripped 0 lines
+> Source    4007 lines 166676 Characters.
+> Stripped  2015 Func/Var lines and  1013 comment lines, Total 128653 Characters.
+> Saved     75% lines 77% Characters.
+> 0 Au3Stripper v15.920.938.0 finished created:G:\AutoitVersion\test456_stripped.au3
+>16:13:31 Au3Stripper ended.rc:0
>Running AU3Check (3.3.14.2)  from:E:\apps\AutoIt3  input:G:\AutoitVersion\test456_stripped.au3
+>16:13:31 AU3Check ended.rc:0
>Running:(3.3.14.2):E:\apps\AutoIt3\aut2exe\aut2exe.exe  /in "G:\AutoitVersion\test456_stripped.au3" /out "C:\Users\TouchOdeath\AppData\Local\AutoIt v3\Aut2exe\~AU6EED.tmp.exe" /nopack /comp 2
+>16:13:32 Aut2exe.exe ended.C:\Users\TouchOdeath\AppData\Local\AutoIt v3\Aut2exe\~AU6EED.tmp.exe. rc:0
+>16:13:32 Created program:G:\AutoitVersion\test456.exe
+>16:13:33 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 7.115

Executing the exe, it pulls up the website, no error box.

Edited by TouchOdeath

Share this post


Link to post
Share on other sites

I don't really understand why run and then compile and run.... but I'll post as much information as possible.

 

When you only RUN then you see that Example 1 and Example 2 put different errors in console output.
The first ends with an error.
The second captures the error, reports it, and ends up normal.

When you compile and Run EXE then you see that 
The first example ends with an MsgBox with AutoIt error.
The second example ends without any MsgBox.

 

As jos said:

The Error/Warning generated by au3stripper is pretty clear and discussed many times. It is clear that ie,au3 isn't coded with au3stripper in mind so you better make sure it doesn't break the script!

 

And I want to say:

In your case this is the only warning you to know that the use /SO can cause problems in some particular case.
Because after a fashion in your case should not cause the error. Provided the proper use of the UDF.


In this case I used the:

_IEErrorHandlerRegister(__IEInternalErrorHandler)

to illustrate to you when your case could prove to be fatal (I mean you see an AutoIt Error MsgBox).

But this usage of:

_IEErrorHandlerRegister(__IEInternalErrorHandler)

Has nothing to do with Au3Stripper.
So I again point you to what Jos said: "you better make sure it doesn't break the script!"


btw.

If you want to see when Au3Stripper can show you this warrning, and it will have a very important significance

just try to use this script:

#include <IE.au3>
#AutoIt3Wrapper_Run_Au3Stripper=y
#Au3Stripper_Parameters=/SO

Call(Example, 1)
Call("Example", 2)

$sTest = "Example"
Call($sTest, 3)

$sTest2 = "Example2"
Call($sTest2, 4)

Func Example($vParam)
    MsgBox(0, 'test', $vParam)
EndFunc   ;==>Example

Func Example2($vParam)
    ; how you think did this MsgBox will appear, after run this as compiled EXE  ?
    MsgBox(0, 'test2', $vParam)
EndFunc   ;==>Example2

 

mLipok

 


Wondering who uses AutoIT and what it can be used for ?


ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2017-03-27
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites

Well.. your doing two completely different things.... your going to get different output.... Building creates the exe which is an entirely different process, while run uses AutoIt3.exe to run the script....

Your instructions were confusing as I couldn't figure out what you wanted me to post, or what was the point of your instructions which were:

So try to 

  1. Run
  2. Compile and run EXE

this following 2 examples:

Ok so run, then compile exe and run.....And then what?  Post my results of run and build?  Or just see if they work?  Seems to me there may have been an instruction missing.

When I see errors or warnings, I generally like to fix them so their not even a 'potential' problem.  In my particular case, I thought it was funny that after upgrading to 3.3.14.2 using only one function (_IECreate), IE.au3 which comes packed with autoit gave au3 stripper warning.  I thought it would be a good idea to let someone know, or maybe it was an installation problem of some sort/some user error on my part, I didn't know thats why I'm here.

e:\apps\autoit3\include\ie.au3(2570,1) Warning for line:$__g_oIEErrorHandler = ObjEvent("AutoIt.Error", $__g_sIEUserErrorHandler) 

-#############################################################################################
-#### Au3Stripper Found   1 Error(s)!!!!    This means your script could have problems running properly.  ####
-#############################################################################################

On the first line they are calling it a Warning.  On the the 4th line they are calling it an error.  So which is it a warning or an error?

"-#### Au3Stripper Found   1 Error(s)!!!!    This means your script could have problems running properly.  ####"

From that above and what Jos said, it could be either error or warning, just have to test to see if it breaks your script or not, in which case it does not so I guess everytime I build my main project I'll just have to ignore those warnings because my main program seems fine.  As Jos has stated, IE.au3 wasn't programmed with au3stripper in mind.  Good to know, thanks again for your help mLipok and Jos!!

Share this post


Link to post
Share on other sites

From that above and what Jos said, it could be either error or warning, just have to test to see if it breaks your script or not, in which case it does not so I guess everytime I build my main project I'll just have to ignore those warnings because my main program seems fine.  As Jos has stated, IE.au3 wasn't programmed with au3stripper in mind.  Good to know, thanks again for your help mLipok and Jos!!

I am Actually not in favor of the testing approach, but prefer the "I understand what I am doing and know that it will not cause an error" approach.
It is pretty simple: Figure out which Func's potentially are being called by that statement and ensure these Func's won't be stripped with:

#Au3Stripper_Ignore_Funcs=                 Do not Strip these functions

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

  • Similar Content

    • Jos
      By Jos
      Merged the SciTE 3.7.3 source into our version and several other changes and fixes to the supporting utilities.
      Enjoy,
      Jos
      Addition/Changes/Fixes in the current installer:
      -------------------------------------------------------------------------------------------------- 24-2-2017 *** Merged the SciTE v 3.7.3 by Neil Hodgson with our own version of SciTE. (Jos) *** Updated AutoIt3Wrapper v17.224.935.0 (Jos)     - 16.612.1119.1 Fixed #AutoIt3Wrapper_Run_Stop_OnError=N, avoiding to stop even when No or not  specified.     - 16.612.1119.2 Fixed #AutoIt3Wrapper_Run_Stop_OnError=N, avoiding to stop even when No or not  specified.     - 16.612.1119.3 Added warning for #AutoIt3Wrapper_UseX64 in case #pragma(out,..)  is used. *** Updated Au3Stripper v17.224.935.0 (Jos)     - 16.612.1119.1 Fixed issue which sometimes was stripping a global const incorrectly     - 16.612.1119.2 Fixed /maxiterations parameter not recognised     - 16.612.1119.3 Fixed increased the max #Au3Stripper_Ignore_Variables to 500 and for #Au3Stripper_Ignore_Funcs to 200     - 16.612.1119.4 Fixed regression introduced in 16.612.1119.1 *** Updated SciTEConfig v17.224.935.0 (Jos)     - 16.306.1119.1 ... *** Updated Tidy v17.224.935.0 (Jos)     - 16.612.1119.1: Fixed Sort_Func function bug when the source contains a BOM. *** Updated CodewiZard v1.5.4.0 (Cyberyeye)     - Fix Icon Ressource Number for Messagebox Tab & ToolTip Tab     - Check/Fix missing includes using AutoIt3Wrapper_Add_Constants=y     - Added Opt("MustDeclareVars", 1) to fix undeclared variables     - Replaced msgbox() magic number by constant name     - Added GUISetIcon var (au3.ico)     - Removed unusefull old AutoIt3Wrapper directive *** Updated Abbreviations (mLipok)     - Updated au3abbrev.properties and helpfile page. --------------------------------------------------------------------------------------------------
      ==> ScitillaHistory page containing all SciTE-Scintilla updates.
      ==> Visit the SciTE4AutoIt3 Download page for the latest versions
      ==> Check  the online documentation for an overview of all extra's you get with this installer.
       
    • kevin42036
      By kevin42036
      Hi All,

      I am very new to AutoIt and scripting in general and have a question about IEFormGetObjByName. The help function says:
      _IEFormGetObjByName ( ByRef $oObject, $sName [, $iIndex = 0] )
      But how do I find what to enter for $sName? In the example below, it says that it can be found by viewing the HTML source. So I went to the google home page, clicked Ctrl U to view the source, and cant figure out how they determined that the $sName is 'gbqf'. Can someone explain this process to me? Thanks in advance!
      ; Get a reference to a specific form by name.  In this case, submit a query
      ; to the Google search engine.  Note that the names of the form and form
      ; elements can be found by viewing the page HTML source
      #include <IE.au3>
      Local $oIE = _IECreate("http://www.google.com")
      Local $oForm = _IEFormGetObjByName($oIE, "gbqf")
      Local $oQuery = _IEFormElementGetObjByName($oForm, "q")
      _IEFormElementSetValue($oQuery, "AutoIt IE.au3")
      _IEFormSubmit($oForm)
       
    • jonson1986
      By jonson1986
      Hello I'm trying to translate few text using below code, I found it working previously couple of months ago but Now these days it's not working at all and I'm getting below errors when I run the script and Array display at the end of text also not able to show any translated text instead of value 0 & 1;
      --> IE.au3 T3.0-2 Warning from function _IEGetObjById, $_IESTATUS_NoMatch (gt-res-data)
      --> IE.au3 T3.0-2 Error from function _IEPropertyGet, $_IESTATUS_InvalidDataType
      Here is code,
      #include <IE.au3> #include <Array.au3> Local $tag="* # * # *" Local $oIE=_IECreate("https://translate.google.com/#auto/es") Local $oForm=_IEFormGetCollection($oIE,0) Local $oQuery=_IEGetObjByName($oForm,"text") _IEFormElementSetValue($oQuery, $tag & @CR & "Hello World" & @CR & "This is a test" & @CR & $tag) _IEFormSubmit($oForm) _IELoadWait($oIE) Local $oText=_IEGetObjById($oIE,"gt-res-data") $lines=StringSplit(_IEPropertyGet($oText,"innerText"),@CRLF,1) _IEQuit($oIE) _ArrayDelete($lines,_ArraySearch($lines,$tag,1,0,0,1,0) & "-" & $lines[0]) _ArrayDelete($lines,"1-" & _ArraySearch($lines,$tag,1,0,0,1,1)) $lines[0]=UBound($lines)-1 _ArrayDisplay($lines)  
    • smellyfingers
      By smellyfingers
      Hey, i hope someone can point me in the right direction, i have a page with tables, inside i have TD,TR,INPUT tags, the input tags is buttons and i need to click on one of theese buttons but they have the same value and type so the only way that i am going to know that it's the correct button is to find out the name of the innerhtml of the TD before (the parent node) because the input comes after, like this
      <TABLE> <TR> <TD> Name of the td </TD> <TR> <TD colSpan=3<INPUT> value=my button type=button</INPUT></TD> <TR> <TD> Other name of a td </TD> <TR> <TD colSpan=3<INPUT> value=my button type=button</INPUT></TD> <TR> I know how to find all td's and inputs but not (in a loop) look for the td's and once it has found it click on the corresponding or "closest" input, maybe a nested loop?
      I made a for loop using _IETagnameGetCollection($ie,"TD") and after it found the TD i tried looking for nextSibling but that might be impossible with INPUT perhaps?
    • Daeth
      By Daeth
      When I try to compile the following code:
      #NoTrayIcon #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Run_Au3Stripper=y #Au3Stripper_Parameters=/rm #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** OnAutoItExitRegister("_exit") Func _exit() ConsoleWrite("kek") EndFunc The stripped version has the _exit() function stripped. The stripped code:
      #NoTrayIcon OnAutoItExitRegister("_exit") When I check the Au3Stripper log it shows:
      0.00 AutoIt3 Source Au3Stripper v16.612.1119.0 Copyright © Jos van der Zande June 12,2016 0.00 CommandLine Params$: 0.00 ============================== Reading Source For Directive ====================================================== 0.00 Ignore Function: onautoitstart 0.00 Ignore Function: onautoitexit 0.00 Directive Params$:/rm 0.00 lCMD$:/rm 0.00 /RenameMinimum Is this a bug? I know I can fix this with '#Au3Stripper_Ignore_Funcs=_exit'.
      This error also occurs with HotKeySet. The function that HotKeySet points to is stripped.