Jump to content

ModernMenuRaw problem


Recommended Posts

Hello, excuse my English, I use google translator.

In a utility I use my ModernMenuRaw created by Holger Kotschis, the problem is when I do the syntaxcheck or compile with Scythian, tells me that some variables are already dimensioned by Constants.au3.

This is a problem or not?

#include <Constants.au3>
#include <ModernMenuRaw.au3>;Holger Kotsch
#include <GUIConstantsEx.au3>

$GUI = GUICreate("Hello", 300, 300)

GUISetState()

do
    $msg = GUIGetMsg()
until $msg = $GUI_EVENT_CLOSE
Link to comment
Share on other sites

Sorry sorry!

Scythian = Scite

Sorry again :idea:

First, please edit your post when you make instead of making a new one.

I think the error is cause because of the fact that you're trying to define $GUI_EVENT_CLOSE as $msg in

Until $msg = $GUI_EVENT_CLOSE

But i can indeed be caused by the include, I can't test that...

So try this for your loop:

While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd

//EDIT: Failed, forgot EndSwitch

Edited by Rawox
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...