Jump to content

Recommended Posts

Posted

Hello taietel,

I like your "_Gradient" function.

I just updated my AutoIt from v3.3.6.1 to v3.3.8.0 and now the output is full of lines instead of being solid. I've determined the issue must be with either "Mod", "BitAND" or "Abs" but I cannot narrow it down and fit it. Maybe I am looking in the wrong place.

I would appreciate if you, or someone else, could point out what I am missing. I've looked through the ChangeLog without success.

Thanks in advance to anyone who can help me.

taurus905

"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Posted

I missed one other built-in function which could be causing an issue between v3.3.6.1 aand v3.3.8.0:

"Hex"

I will keep searching for an answer today and post a solution when I find one.

Thanks for your help.

taurus905

"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Posted

Just a quick update.

The Hex() in line 150:

GUICtrlSetBkColor(-1, "0x"&Hex($Bf,2) & Hex($Gf,2) & Hex($Rf,2))

Is causing the problem.

I will post the solution shortly.

taurus905

"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Posted

Solution:

Replace line 150:

GUICtrlSetBkColor(-1, "0x"&Hex($Bf,2) & Hex($Gf,2) & Hex($Rf,2))

With:

GUICtrlSetBkColor(-1, "0x"&Hex(Int($Bf),2) & Hex(Int($Gf),2) & Hex(Int($Rf),2))

Hopefully someone will see this and it will save them the time I spent trying to track it down.

taurus905

"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Posted

And to fix the _3DText function,

replace line 210:

GUICtrlSetColor(-1,"0x"&Hex($Bf,2) & Hex($Gf,2) & Hex($Rf,2))

With:

GUICtrlSetColor(-1,"0x"&Hex(Int($Bf),2) & Hex(Int($Gf),2) & Hex(Int($Rf),2))

taurus905

"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

  • 3 years later...
Posted

Thanks @taietel for sharing, and @taurus905 for fixing.

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

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
  • Recently Browsing   0 members

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