Jump to content

Compilation Error (With Obfuscator Enabled) - for SAP GUI Scripting


ericsato
 Share

Recommended Posts

Hi all,

I tried to compile a script with obfucator enabled. It gave me following error.

1) first error was i used 7zip dll to do archive/zip operation.

2) 2nd error, register an event, to listen SAP gui session.

If compile without obfuscator, then no error. Run like a charms.

Any idea?

Cheers

 

-### Obfuscation Error: Found DllCallbackRegister() statement using unsolvable Func, which will/could lead to problems running your obfuscated script.
>### current Func: _7ZipSetOwnerWindowEx
C:DAutoItSAP_ARISE_product7Zip.au3(331,1) Warning for line:$hArchiveProc = DllCallbackRegister($sProcFunc, "int", "hwnd;uint;uint;ptr") 
 
-### Obfuscation Error: Found ObjEvent() statement using unsolvable Func, which will/could lead to problems running your obfuscated script.
>### current Func: btnAttachSAPClick
C:DAutoItSAP_ARISE_productMain Window.au3(164,1) Warning for line:ObjEvent($session, "SESS_") 
 
-#############################################################################################
-#### Obfuscator Found   2 Error(s)!!!!    This means your script could have problems running properly.  ####
-#############################################################################################
+> Obfuscator v1.0.30.4 finished obfuscating 14039 lines, stripped 16808 comment lines. created:C:DAutoItSAP_ARISE_productMain Window_Obfuscated.au3
 
Link to comment
Share on other sites

  • Moderators

ericsato,

Welcome to the AutoIt forum. :)

I could tell you to read the Obfuscator thread where this has been covered many, many times - but that would be a very long read! :D

Basically Obfuscator looks for commands where it might have problems - normally using a variable within certain function calls, just like your 2 cases above. If you ask Obfuscator to obfuscate the script then these values might not be correct as there is no way for Obfuscator to know what should be in them as they are only determined at run-time. :)

What are you asking Obfuscator to do? If you are only stripping the script to reduce its size, then you can safely ignore the warnings as the original values will be valid at run-time. If you are actually obfuscating the script then you could well run into problems as the obfuscated values might not match. What parameters are you passing to Obfuscator? :huh:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...