Sign in to follow this  
Followers 0
Dragonz

Again Help "GUI Brows"

10 posts in this topic

hello

and iam again looking for help , sorry for it

iam looked in auto it help but i still dont know good

i need to make GUI "Brows" to select the path i want to do in the script

it will be awsome if you guys let to me Script Exmpel

thanks any way

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Here's something i found (on this forum i think), when i first started learning AutoIt..

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Box = GUICreate("Config", 211, 67, 388, 177)
$Input1 = GUICtrlCreateInput("", 8, 8, 193, 21)
$Button1 = GUICtrlCreateButton("Browse", 8, 32, 75, 25)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            $path=FileOpenDialog("Select File",@ScriptDir,"All(*.*)")
            GUICtrlSetData($Input1,$path)
    EndSwitch
WEnd

PathEdit.au3

Edited by katoNkatoNK

Share this post


Link to post
Share on other sites

ok sorry for it but iam too noob :unsure:

i have this script to make my auto restat

but iam still dont know about looping, but this not the problem

now i cant even start , i must put my script in my program that need to restart path

here is my script

WinClose("LoginServer") 
Sleep(3000) Run("LoginServer.exe")
 WinWaitActive("LoginServer") 
Sleep(4*600000)

and

WinClose("Gameserver") 
Sleep(3000) Run("gameserver.exe")
 WinWaitActive("Gameserver") 
Sleep(4*600000

and this now that script that i got help on it

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.6.1
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Box = GUICreate("Servers Paths", 300, 150, 500, 177)
$Input1 = GUICtrlCreateInput("Login Server Path", 8, 8, 193, 21)
$Input2 = GUICtrlCreateInput("Game Server Path", 8, 70, 193, 21)
$Button1 = GUICtrlCreateButton("Browse", 8, 32, 75, 25)
$Button2 = GUICtrlCreateButton("Browse", 8, 95, 75, 25)
GUISetState(@SW_SHOW)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            $path=FileOpenDialog("Select File",@ScriptDir,"LoginServer(LoginServer.exe)")
            GUICtrlSetData($Input1,$path)
               Case $Button2
            $path=FileOpenDialog("Select File",@ScriptDir,"GameServer(GameServer.exe)")
            GUICtrlSetData($Input2,$path)
    EndSwitch
WEnd

how can i make the Gui when i get the path it Start The Auto Restart as well without i must put the script in program path

i will be so thank you if i got help with Script Exmpel

Thank you.

Share this post


Link to post
Share on other sites

no one can help me ?

Share this post


Link to post
Share on other sites

Dragonz,

Please do not bump your posts within 24 hours. :unsure:

Remember this is not a 24/7 support forum - those who answer are only here because they like helping others and have some time to spare. You just have to wait until someone who knows something about your particular problem, and is willing to help, comes online. Be patient and someone will answer eventually. :>

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Dragonz,

Please do not bump your posts within 24 hours. :unsure:

Remember this is not a 24/7 support forum - those who answer are only here because they like helping others and have some time to spare. You just have to wait until someone who knows something about your particular problem, and is willing to help, comes online. Be patient and someone will answer eventually. :>

M23

ohh iam really sorry for annoying

ok then i will wait.

thanks alot

Share this post


Link to post
Share on other sites

Dragonz,

ok then i will wait

:unsure:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

hello

and iam again looking for help , sorry for it

iam looked in auto it help but i still dont know good

i need to make GUI "Brows" to select the path i want to do in the script

it will be awsome if you guys let to me Script Exmpel

thanks any way

Try this Little code ^^

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


$blabla = GUICreate("Test Program", 293, 73)
$input = GUICtrlCreateInput("", 80, 8, 121, 21)
$Browse = GUICtrlCreateButton("Browse", 208, 8, 75, 25, $WS_GROUP)
$Exit = GUICtrlCreateButton("Exit", 208, 40, 75, 25, $WS_GROUP)
$txt = GUICtrlCreateLabel("Select Folder", 8, 10, 66, 17)
GUISetState(@SW_SHOW)


While 1
    $nMsg = GUIGetMsg()
    Select
        Case $nMsg = $GUI_EVENT_CLOSE Or $nMsg = $Exit
            Exit
        Case $nMsg = $Browse
            $Select = FileSelectFolder("Choose Folder","")
            GUICtrlSetData($input, $Select)
    EndSelect
WEnd
hope this help you :unsure: GL Edited by TheMaster

Share this post


Link to post
Share on other sites

Try this Little code ^^

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


$blabla = GUICreate("Test Program", 293, 73)
$input = GUICtrlCreateInput("", 80, 8, 121, 21)
$Browse = GUICtrlCreateButton("Browse", 208, 8, 75, 25, $WS_GROUP)
$Exit = GUICtrlCreateButton("Exit", 208, 40, 75, 25, $WS_GROUP)
$txt = GUICtrlCreateLabel("Select Folder", 8, 10, 66, 17)
GUISetState(@SW_SHOW)


While 1
    $nMsg = GUIGetMsg()
    Select
        Case $nMsg = $GUI_EVENT_CLOSE Or $nMsg = $Exit
            Exit
        Case $nMsg = $Browse
            $Select = FileSelectFolder("Choose Folder","")
            GUICtrlSetData($input, $Select)
    EndSelect
WEnd
hope this help you :unsure: GL

thank you for help but i think i got help befor about this once but iam still looking for another script that in my scond replay

Share this post


Link to post
Share on other sites

So guys can u give me any Expmel to Merge the bothe Scripts to be can Start with Gui the one i have made ?

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