Jump to content

Obfuscator Error!


Recommended Posts

Why ? Can you fix this script for me ?

C:\Documents and Settings\ZXZX\Desktop\2-3\New Folder\Google-Gmail.au3(10,1) Warning for line:$oEvt = ObjEvent($oIE, "IEEvent_", "DWebBrowserEvents2")

-#############################################################################################

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

-#############################################################################################

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Run_Obfuscator=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <IE.au3>
Opt("WinTitleMatchMode", 2)
$1 = 0
While 1
    If $1 <> WinExists('Gmail') And WinExists('Gmail') <> 0 Then
        $oIE = _IEAttach("Gmail")
        $oEvt = ObjEvent($oIE, "IEEvent_", "DWebBrowserEvents2")
        $1 = WinExists('Gmail')
    EndIf
WEnd


Func IEEvent_BeforeNavigate2($notsurewhatthisis, $url, $TargetFrameName, $PostData, $Headers, $Cancel)
ConsoleWrite($url & @CR)
EndFunc   ;==>IEEvent_BeforeNavigate2
Link to comment
Share on other sites

  • Developers

You posted incomplete information. The Warning shown is:

-### Obfuscation Error: Found ObjEvent() statement using unsolvable Func, which will/could lead to problems running your obfuscated script.
>### current Func: Main Script
OpenInScite6.au3(11,1) Warning for line:$oEvt = ObjEvent($oIE, "IEEvent_", "DWebBrowserEvents2")

... and it simply states that it cannot find Func IEEvent_ so it has problems obfuscating this code.

You have to realise that when you start renaming funcs that issues like this can happen and cannot always be resolved.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

Can we fix this code ?

Plenty options. First options that comes to mind:

- Why do you need to obfuscate the script.

- Do not obfuscate Func Names

- Don't obfuscate parts of the code using the appropriate directives....

... oh and before you ask: I am not going to do it for you. :P

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Plenty options. First options that comes to mind:

- Why do you need to obfuscate the script.

- Do not obfuscate Func Names

- Don't obfuscate parts of the code using the appropriate directives....

... oh and before you ask: I am not going to do it for you. :P

Thank you very much
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...