Jump to content

some help needed with my gui...


Recommended Posts

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 454, 193, 115, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_BORDER,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 454, 193, 115, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_BORDER,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd
Why do you use all the other settings to do this? It looks like only $WS_SYSMENU does the job. Is this just good programming practice to use the others? I was just wondering.
Link to comment
Share on other sites

Why do you use all the other settings to do this? It looks like only $WS_SYSMENU does the job. Is this just good programming practice to use the others? I was just wondering.

The other settings are standard when you use Koda.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Was there a mistake? I cant lounch my GUI, this error is poping up...

GUISetState(@SW_DISABLE, $hGui)
GUISetState(@SW_DISABLE, ^ ERROR
$hGui this is variable contain a gui window handle.

$hGui = GUICreate("Form1", 633, 454, 193, 115, $WS_SYSMENU)

You also can use function so:

GUISetState(@SW_DISABLE)
if you not have a multi window gui.

:D

Link to comment
Share on other sites

ASIM, thnx for helping, but you didn't understand what i was asking. what i was asking for, is it possible to disabble everything, but my gui keep worling? like everything would go gray and unusable till my gui finish working?

After adding your suggested commands my gui gets invisible...

Link to comment
Share on other sites

ASIM, thnx for helping, but you didn't understand what i was asking. what i was asking for, is it possible to disabble everything, but my gui keep worling? like everything would go gray and unusable till my gui finish working?

After adding your suggested commands my gui gets invisible...

What's "everything"? Other windows not a part of your script? Your Desktop? Start Menu? Taskbar clock?

My feeling is you're trying to basically re-create the feel of Vista's UAC prompt? I *believe* (could be wrong) even MS does this by taking a screenshot of the desktop, applying 'dimming' graphical effects to it, setting that as the background for their GUI (SecureDesktop) (which is set to AlwaysOnTop and very actively keeps itself there), then displaying the dialog over that...you won't be able to be quite as secure as SecureDesktop, but you could come close.

"There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110
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...