Jump to content

Script breaking change v3.3.16.0 > v3.3.18.0 -- syntax tolerance GuiCtrlCreateButton "" <> 'default'


Recommended Posts

Posted


Hello.

I just had to do a minor adjustment to a script a couple of years old and found this difference:

With Autoit 3.3.16.0 it was fine to use "" to specify same widht and hide with cell realtive operations:

Opt("guicoordmode",2) ; cell relative
for $i = 2 to $a2Buttons[0][0]
    $a2Buttons[$i][0]=GUICtrlCreateButton("Undefiniert - " & $i,-1,5,"","",$BS_LEFT)
    GUICtrlSetFont(-1,8.5,$fw_dontcare,$gui_fontnormal,"courier new")
    GUICtrlSetState(-1,$gui_hide)
Next

With Autoit 3.3.18.0 the relative buttons don't show up, until the "" is replaced with either "default", or a valid value or variable.

After these years of course I do not remember anymore, where I picked this "" from to "use same values as before".

Perhaps this more strict behaviour could be added here?

https://www.autoitscript.com/autoit3/docs/script_breaking_changes.htm

 

cu, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

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
×
×
  • Create New...