Sign in to follow this  
Followers 0
Skrip

Gui While?

5 posts in this topic

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]

Share this post


Link to post
Share on other sites



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 ?


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

$Button1 = GUICtrlCreateButton("Browse", 8, 40, 401, 25, 0)


[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]

Share this post


Link to post
Share on other sites

all i want to say is you can save yourself a variable by just putting the function fileselectfolder as the data part of guictrlsetdata

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  
Followers 0