Jump to content

Again Help "GUI Brows"


Recommended Posts

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

Link to comment
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.

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
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

Link to comment
Share on other sites

  • Moderators

Dragonz,

ok then i will wait

:unsure:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

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
Link to comment
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
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...