Jump to content
Sign in to follow this  
Docfxit

Variable used without being declared

Recommended Posts

Docfxit

I'm getting an error saying "Variable used without being declared"

Posted Image

File MsgBox.au3

#include <GUIConstantsEx.au3>
GuiCreate("My Debug MsgBox", 200, 300, @DesktopWidth - 220, @DesktopHeight - 340, -1, $WS_EX_TOPMOST)
GuiCtrlCreateLabel("Result of testing:", 10, 10, 180, 20)
$Result = GuiCtrlCreateEdit("", 10, 40, 180, 180)
$OK = GUICtrlCreateButton('OK', 50, 250, 100, 25)
GuiSetState()
While 1
    $Msg = GUIGetMsg()
  Select
   Case $Msg = $GUI_EVENT_CLOSE
    Exit
   Case $Msg = $OK
        GUICtrlSetData ($Result, "")
  EndSelect
WEnd

It worked in an earlier version of AutoIt.

I'm now using ver. 3.3.4

In Windows seven

Win7

Thanks,

Docfxit

Edited by docfxit

Share this post


Link to post
Share on other sites
Docfxit

That would be because $WS_EX_TOPMOST is now declared in WindowsConstants.au3 :D

That worked great. I never would have guessed it.

Thank you very much,

Docfxit

Share this post


Link to post
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
Sign in to follow this  

×