Change GUI and Button Style AutoIt Error Line 11

Asked By 0 points N/A Posted on -
qa-featured

Hello,

I want to change GUI and button style AutoIt and this error appears every time. I followed the standard steps and I have checked the process again to see if I missed something, everything seems like to be OK. Can anyone tell me what is missing ? Why I have this error ?

Thank you !

AutoIt Error

Line 11 (File “C”UsersAdrianDesktopNowy AutoIt v3 Script (9).au3”):

$iButton1 = GUICreateButton(“Start”, 10, 40, 100, -1, $BS_FLAT)

$iButton1 = GUICreateButton(“Start”, 10, 40, 100, -1, ERROR

Error: Variable used without being declared.

SHARE
Answered By 0 points N/A #179788

Change GUI and Button Style AutoIt Error Line 11

qa-featured

It is problem related to variable definition within the script.

There can be two ways of fixing this error.

1- Check your script, if you have declare the variable, if not, you have to declare it before entering the function.

2- The other way is, if you are sure that you have declare the variable, then, check where it has been placed.

It should be placed in the beginning, not at the end. Because when you call the function at the beginning, the variable would not be declared. And you may have error in your script. So, declare the variable at the beginning. 

Related Questions