Jump to content

Gui While?


Skrip
 Share

Recommended Posts

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $nMsg = $Button1
            $e_address = FileSelectFolder("Select Gmod Folder...", @HomeDrive, 4, $address)
            GUICtrlSetData($Input1, $e_address)
        Case $nMsg = $Button2
            $ddir = _FileListToArray($List1)
    EndSwitch
WEnd

Why exactly does it constantly do the $Button1 funtions? The FileSelectFolder keeps coming up. Will not stop.

How do I fix this?

[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

Link to comment
Share on other sites

  • Developers

Why exactly does it constantly do the $Button1 funtions? The FileSelectFolder keeps coming up. Will not stop.

How do I fix this?

What is the value of $Button1 ? 0 maybe ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            $e_address = FileSelectFolder("Select Gmod Folder...", @HomeDrive, 4, $address)
            GUICtrlSetData($Input1, $e_address)
        Case $Button2
            $ddir = _FileListToArray($List1)
    EndSwitch

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...