Jump to content

Obfuscation Error _WinAPI_SetLayeredWindowAttributes


Recommended Posts

I keep getting the following Obfuscation Error:

-###2 Obfuscation Error: Found Execute() statement which will lead to problems running your obfuscated script.

>### current Func: _WinAPI_SetLayeredWindowAttributes

C:\Program Files (x86)\AutoIt3\include\WinAPI.au3(5364,1) Warning for line:$i_transcolor = Execute('0x00' & StringMid($i_transcolor, 5, 2) & StringMid($i_transcolor, 3, 2) & StringMid($i_transcolor, 1, 2))

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

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

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

+> Obfuscator v1.0.28.7 finished obfuscating 21303 lines, stripped 32874 comment lines. created:F:\Backup\AutoIt\Projects\PowerOpt\PowerOpt_Obfuscated.au3

“No other God have I but Thee; born in a manger, died on a tree.” Martin Luther

Link to comment
Share on other sites

  • Moderators

rdwray,

You and everyone else! :bye:

Please read the Obfuscator thread fully to see same explanation given many, many times. Basically because certain functions take a literal or (as here) concatenated string as a parameter, Obfuscator cannot reliably determine what the final result will be and so may make errors when obfuscating - hence the warning. :oops:

Note the warning says "could have problems" - in this case I imagine you could ignore it as the final result is a number and not the name of another variable. :doh:

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

rdwray,

You and everyone else! :bye:

Please read the Obfuscator thread fully to see same explanation given many, many times. Basically because certain functions take a literal or (as here) concatenated string as a parameter, Obfuscator cannot reliably determine what the final result will be and so may make errors when obfuscating - hence the warning. :oops:

Note the warning says "could have problems" - in this case I imagine you could ignore it as the final result is a number and not the name of another variable. :doh:

M23

The script runs fine, just wanted to let someone know I was getting it.

Took a look at the thread and, like anything else, everything can not be covered because of the flexibility. It is an excellent tool. As far as having problems: the first time I compiled without obfuscator the .exe failed; after using it, the script ran fine; something to be said for that.

“No other God have I but Thee; born in a manger, died on a tree.” Martin Luther

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