Sign in to follow this  
Followers 0
AlmarM

Save?

34 posts in this topic

#1 ·  Posted (edited)

I have this script:

#include <GuiConstants.au3>

GuiCreate("CFG Maker", 800, 400)

GuiCtrlCreateTab(1, 0, 800, 400)
GuiCtrlCreateTabItem("Names")
GuiCtrlCreateLabel("Typ the names", 5, 25) 
GuiCtrlCreateTabItem("Controls")
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
GuiCtrlCreateTabItem("Other Controls")
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
GuiCtrlCreateTabItem("Weapon Controls")
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
GuiCtrlCreateTabItem("Chat Controls") 
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
GuiCtrlCreateTabItem("Fire Team") 
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
GuiCtrlCreateTabItem("Your Scripts") 
GuiCtrlCreateLabel("Typ some scripts you got", 5, 25) 
GuiCtrlCreateEdit("Your Scripts Here", 5, 45, 790, 350) 
$save = GuiCtrlCreateButton(">>SAVE<<", 735, 20) 

GuiSetState()
While GuiGetMsg() <> $GUI_EVENT_CLOSE
WEnd

How do I save all things I typed in the EditBox and later in InputBoxes to a filename.CFG (I want that I can save all things with >>SAVE<< button)

Someone knows that ??

Edited by AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites



Does noone knows it ???


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

While 1
     $msg = GUIGetMsg()
     Select
         Case $msg = $GUI_EVENT_CLOSE
             Exit
         Case $msg = $save
             FileWrite("file.txt", GUICtrlRead($editbox))
     EndSelect
WEnd

Share this post


Link to post
Share on other sites

Ty ill hope it work ^^

If you read the date and time im at school now :)


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

BTW, that if for all tabs ??

Or only for the tab 'Your Script' ??


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

I now have this script:

#include <GuiConstants.au3>
$EDIT = GUICtrlCreateEdit("", 16, 40, 601, 361)

GuiCreate("CFG Maker", 800, 400)

GuiCtrlCreateTab(1, 0, 800, 400)
GuiCtrlCreateTabItem("Names")
GuiCtrlCreateLabel("Typ the names", 5, 25) 
GuiCtrlCreateTabItem("Controls")
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
GuiCtrlCreateTabItem("Other Controls")
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
GuiCtrlCreateTabItem("Weapon Controls")
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
GuiCtrlCreateTabItem("Chat Controls") 
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
GuiCtrlCreateTabItem("Fire Team") 
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
GuiCtrlCreateTabItem("Your Scripts") 
GuiCtrlCreateLabel("Typ some scripts you got", 5, 25) 
GuiCtrlCreateEdit("Your Scripts Here", 5, 45, 790, 350) 
$save = GuiCtrlCreateButton(">>SAVE<<", 735, 20) 

GuiSetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
Exit
Case $msg = $save
$FileSave = Filesavedialog("Save Config File","","Config Files (*.cfg*)|All files (*.*)", 2,"controls.cfg")

$Text = GuiCtrlRead($edit)
Filewrite($Filesave, $Text)
EndSelect
WEnd

But when I change name from controls to an other name, it wont save as .cfg but as nothing

How I fix it ??

EDIT: And if i save it as .cfg it will only save:

0

Not more.... Someone knows ??

Edited by AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

BTW, that if for all tabs ??

Or only for the tab 'Your Script' ??

You dont have edit controls on all the tabs so how would it save that information??? If you had edit controls on all the tabs then you would just use Guictrlread($editbox_Tab1).....bla...bla...bla....

Share this post


Link to post
Share on other sites

I dont get you...

I mean, that if I filled in all inputboxes (GuiCtrlCreateInput()) under each tab and mayby something in Your Scripts that you can save it in the name you want (example.cfg) without typing name.cfg


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

You need to use $edit=GuiCtrlCreateEdit("Your Scripts Here", 5, 45, 790, 350)

Share this post


Link to post
Share on other sites

You dont have edit controls on all the tabs so how would it save that information??? If you had edit controls on all the tabs then you would just use Guictrlread($editbox_Tab1).....bla...bla...bla....

So how I do that ???

With GuiCtrlRead() ??

For all Tabs and InputBoxes ??


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

Like this...

#include <GuiConstants.au3>
$EDIT = GUICtrlCreateEdit("", 16, 40, 601, 361)

GuiCreate("CFG Maker", 800, 400)

GuiCtrlCreateTab(1, 0, 800, 400)
GuiCtrlCreateTabItem("Names")
GuiCtrlCreateLabel("Typ the names", 5, 25) 
$Tab1_Input=GuiCtrlCreateEdit("$Tab1_Input....Names", 5, 45, 790, 350) 

GuiCtrlCreateTabItem("Controls")
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
$Tab2_Input=GuiCtrlCreateEdit("$Tab1_Input....Controls", 5, 45, 790, 350) 

GuiCtrlCreateTabItem("Other Controls")
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
$Tab3_Input=GuiCtrlCreateEdit("$Tab3_Input....Other Controls", 5, 45, 790, 350) 

GuiCtrlCreateTabItem("Weapon Controls")
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
$Tab4_Input=GuiCtrlCreateEdit("$Tab4_Input....Weapon Controls", 5, 45, 790, 350) 

GuiCtrlCreateTabItem("Chat Controls") 
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
$Tab5_Input=GuiCtrlCreateEdit("$Tab5_Input....Chat Controls", 5, 45, 790, 350) 

GuiCtrlCreateTabItem("Fire Team") 
GuiCtrlCreateLabel("Typ the controls", 5, 25) 
$Tab6_Input=GuiCtrlCreateEdit("$Tab6_Input....Fire Team", 5, 45, 790, 350) 

GuiCtrlCreateTabItem("Your Scripts") 
GuiCtrlCreateLabel("Typ some scripts you got", 5, 25) 
$Tab7_Input=GuiCtrlCreateEdit("$Tab7_Input....Your Scripts", 5, 45, 790, 350) 
$save = GuiCtrlCreateButton(">>SAVE<<", 735, 20) 

GuiSetState()

While 1
$msg = GUIGetMsg()
    
    Select
        
        Case $msg = $GUI_EVENT_CLOSE
        Exit
        
        Case $msg = $save
        $FileSave = Filesavedialog("Save Config File","","Config Files (*.cfg*)|All files (*.*)", 2,"controls.cfg")
        
        If @error then
        MsgBox(4096,"Error","No File Choosen")
        Else
        $Get_All_Inputs = "$Tab1_Input=" & GUICtrlRead($Tab1_Input) & @CRLF & "$Tab2_Input=" & GUICtrlRead($Tab2_Input) & @CRLF & "$Tab3_Input=" & GUICtrlRead($Tab3_Input) & @CRLF & "$Tab4_Input=" & GUICtrlRead($Tab1_Input) & @CRLF & "$Tab5_Input=" & GUICtrlRead($Tab5_Input) & @CRLF & "$Tab6_Input=" & GUICtrlRead($Tab6_Input) & @CRLF & "$Tab7_Input=" & GUICtrlRead($Tab7_Input)
        Filewrite($Filesave, $Get_All_Inputs)
        EndIf
    
    EndSelect
WEnd

Share this post


Link to post
Share on other sites

Oh lol :)

But I already have another script :)

This one:

#include <GuiConstants.au3>
$edit = GUICtrlCreateEdit("", 16, 40, 601, 361)

GuiCreate("CFG Maker", 620, 700) 
$names = GuiCtrlCreateButton("Names", 10, 10, 100, 100) 
$controls = GuiCtrlCreateButton("Controls", 110, 10, 100, 100) 
$other_controls = GuiCtrlCreateButton("Other Controls", 210, 10, 100, 100) 
$weapon_controls = GuiCtrlCreateButton("Weapon Controls", 310, 10, 100, 100) 
$chat_controls = GuiCtrlCreateButton("Chat Controls", 410, 10, 100, 100) 
$show_script = GuiCtrlCreateButton("Save Script", 510, 10, 100, 100) 
GuiCtrlCreateLabel("This CFG Maker will only ask for the keys you want to use", 10, 115) 
GuiCtrlCreateLabel("The stuff what will make the FPS go lower will automatic come", 10, 130) 

GuiSetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
Exit
Case $msg = $names
$names_real_name = InputBox("Names", "Your Real Name:") 
$names_cfg_name = InputBox("Names", "The CFG Name:") 
$names_game_name = InputBox("Names", "Your In-Game Name") 
EndSelect
Select
Case $msg = $controls
$controls_forward = InputBox("Controls", "Move Forward:") 
$controls_back = InputBox("Controls", "Move Back:") 
$controls_left = InputBox("Controls", "Move Left:") 
$controls_right = InputBox("Controls", "Move Right:") 
$controls_lean_left = InputBox("Controls", "Lean Left:") 
$controls_lean_right = InputBox("Controls", "Lean Right:") 
$controls_jump = InputBox("Controls", "Jump:") 
$controls_crouch = InputBox("Controls", "Crouch:") 
$controls_prone = InputBox("Controls", "Prone:") 
$controls_run = InputBox("Controls", "Run:") 
$controls_use = InputBox("Controls", "Use/Activate:") 
EndSelect
Select
Case $msg = $other_controls
$other_controls_show_scores = InputBox("Other Controls", "Show Scores:") 
$other_controls_limbo = InputBox("Other Controls", "Limbo:") 
$other_controls_show_map = InputBox("Other Controls", "Show Map:") 
$other_controls_compass_zoom_in = InputBox("Other Controls", "Compass Zoom In:") 
$other_controls_compass_zoom_out = InputBox("Other Controls", "Compass Zoom Out:") 
EndSelect
Select
Case $msg = $weapon_controls
$weapon_controls_next_weapon = InputBox("Weapon Controls", "Next Weapon:") 
$weapon_controls_prev_weapon = InputBox("Weapon Controls", "Previous Weapon:") 
$weapon_controls_melee = InputBox("Weapon Controls", "Knife (Melee):") 
$weapon_controls_one_handed = InputBox("Weapon Controls", "Luger/Colt (One Handed):") 
$weapon_controls_two_handed = InputBox("Weapon Controls", "MP40/Thompson (Two Handed):") 
$weapon_controls_granade = InputBox("Weapon Controls", "Granade:") 
$weapon_controls_spec1 = InputBox("Weapon Controls", "Special 1:") 
$weapon_controls_spec2 = InputBox("Weapon Controls", "Special 2:") 
$weapon_controls_spec3 = InputBox("Weapon Controls", "Special 3:") 
$weapon_controls_shoot = InputBox("Weapon Controls", "Shoot:") 
$weapon_controls_switch_to = InputBox("Weapon Controls", "Switch to Alternative:") 
$weapon_controls_reload = InputBox("Weapon Controls", "Reload:") 
$weapon_controls_binoc = InputBox("Weapon Controls", "Binocular:") 
EndSelect
Select
Case $msg = $chat_controls
$chat_controls_global = InputBox("Chat Controls", "Global Chat:") 
$chat_controls_team = InputBox("Chat Controls", "Team Chat:") 
$chat_controls_fireteam = InputBox("Chat Controls", "Fire Team Chat:") 
$chat_controls_vsay = InputBox("Chat Controls", "Voice Chat Menu:") 
$chat_controls_vote_yes = InputBox("Chat Controls", "Vote Yes:") 
$chat_controls_vote_no = InputBox("Chat Controls", "Vote No:") 
$chat_controls_screenshot = InputBox("Chat Controls", "Screenshot:") 
$chat_controls_record = InputBox("Chat Controls", "Record Replay:") 
EndSelect
Select
Case $msg = $show_script
$script_box = GuiCtrlCreateEdit("", 10, 150, 600, 540) 

EndSelect
WEnd

BUT I dont get something... How can I get all things I typed into the InputBoxes into the the GuiCtrlCreateEdit("", 10, 150, 600, 540) with things before it... Example:

name $names_real_name


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

~snip~

BUT I dont get something... How can I get all things I typed into the InputBoxes into the the GuiCtrlCreateEdit("", 10, 150, 600, 540) with things before it... Example:

name $names_real_name

My suggestion is that you declare all your input variables first.

DIM $names_real_name, $names_cfg_name, etc.

I'm at work right now and I don't have SciTe to test this, but I'm positive that it's what you're looking for.


[font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version

Share this post


Link to post
Share on other sites

My suggestion is that you declare all your input variables first.

DIM $names_real_name, $names_cfg_name, etc.oÝ÷ Øý«p¢¹+mÒ¢}ý¶¯y'"Mëhµë-¶¬nëHßÙ©¢È­÷­«b·l­ʷö·¥¢"è¯ú®¢× 2Ó~­)à³Múv+)¬£

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

That was just an example. :)

If it gets really long, you can always put them inside an Array variable and call that variable instead of making a "Code Train".

And I bet you want me to show you how to do it too. :)

Edited by aslani

[font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version

Share this post


Link to post
Share on other sites

That was just an example. :)

If it gets really long, you can always put them inside an Array variable and call that variable instead of making a "Code Train".

And I bet you want me to show you how to do it too. :)

Duh :P


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

Why the Case $msg = $save_button wont work ??

#include <GuiConstants.au3>
$edit = GUICtrlCreateEdit("", 16, 40, 601, 361)

GuiCreate("CFG Maker", 620, 700) 
$names = GuiCtrlCreateButton("Names", 10, 10, 100, 100) 
$controls = GuiCtrlCreateButton("Controls", 110, 10, 100, 100) 
$other_controls = GuiCtrlCreateButton("Other Controls", 210, 10, 100, 100) 
$weapon_controls = GuiCtrlCreateButton("Weapon Controls", 310, 10, 100, 100) 
$chat_controls = GuiCtrlCreateButton("Chat Controls", 410, 10, 100, 100) 
$show_script = GuiCtrlCreateButton("Show Script", 510, 10, 100, 100) 
GuiCtrlCreateLabel("This CFG Maker will only ask for the keys you want to use", 10, 115) 
GuiCtrlCreateLabel("The stuff what will make the FPS go lower are in the LowerFPS.txt", 10, 130) 

GuiSetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
Exit
Case $msg = $names
$names_real_name = InputBox("Names", "Your Real Name:") 
$names_cfg_name = InputBox("Names", "The CFG Name:") 
$names_game_name = InputBox("Names", "Your In-Game Name") 
EndSelect
Select
Case $msg = $controls
$controls_forward = InputBox("Controls", "Move Forward:") 
$controls_back = InputBox("Controls", "Move Back:") 
$controls_left = InputBox("Controls", "Move Left:") 
$controls_right = InputBox("Controls", "Move Right:") 
$controls_lean_left = InputBox("Controls", "Lean Left:") 
$controls_lean_right = InputBox("Controls", "Lean Right:") 
$controls_jump = InputBox("Controls", "Jump:") 
$controls_crouch = InputBox("Controls", "Crouch:") 
$controls_prone = InputBox("Controls", "Prone:") 
$controls_run = InputBox("Controls", "Run:") 
$controls_use = InputBox("Controls", "Use/Activate:") 
EndSelect
Select
Case $msg = $other_controls
$other_controls_show_scores = InputBox("Other Controls", "Show Scores:") 
$other_controls_limbo = InputBox("Other Controls", "Limbo:") 
$other_controls_show_map = InputBox("Other Controls", "Show Map:") 
$other_controls_compass_zoom_in = InputBox("Other Controls", "Compass Zoom In:") 
$other_controls_compass_zoom_out = InputBox("Other Controls", "Compass Zoom Out:") 
EndSelect
Select
Case $msg = $weapon_controls
$weapon_controls_next_weapon = InputBox("Weapon Controls", "Next Weapon:") 
$weapon_controls_prev_weapon = InputBox("Weapon Controls", "Previous Weapon:") 
$weapon_controls_melee = InputBox("Weapon Controls", "Knife (Melee):") 
$weapon_controls_one_handed = InputBox("Weapon Controls", "Luger/Colt (One Handed):") 
$weapon_controls_two_handed = InputBox("Weapon Controls", "MP40/Thompson (Two Handed):") 
$weapon_controls_granade = InputBox("Weapon Controls", "Granade:") 
$weapon_controls_spec1 = InputBox("Weapon Controls", "Special 1:") 
$weapon_controls_spec2 = InputBox("Weapon Controls", "Special 2:") 
$weapon_controls_spec3 = InputBox("Weapon Controls", "Special 3:") 
$weapon_controls_shoot = InputBox("Weapon Controls", "Shoot:") 
$weapon_controls_switch_to = InputBox("Weapon Controls", "Switch to Alternative:") 
$weapon_controls_reload = InputBox("Weapon Controls", "Reload:") 
$weapon_controls_binoc = InputBox("Weapon Controls", "Binocular:") 
EndSelect
Select
Case $msg = $chat_controls
$chat_controls_global = InputBox("Chat Controls", "Global Chat:") 
$chat_controls_team = InputBox("Chat Controls", "Team Chat:") 
$chat_controls_fireteam = InputBox("Chat Controls", "Fire Team Chat:") 
$chat_controls_vsay = InputBox("Chat Controls", "Voice Chat Menu:") 
$chat_controls_vote_yes = InputBox("Chat Controls", "Vote Yes:") 
$chat_controls_vote_no = InputBox("Chat Controls", "Vote No:") 
$chat_controls_screenshot = InputBox("Chat Controls", "Screenshot:") 
$chat_controls_record = InputBox("Chat Controls", "Record Replay:") 
EndSelect
Select
Case $msg = $show_script
$script_box = GuiCtrlCreateEdit("//Real Life Name: " & $names_real_name & @CRLF & "//Config Name: " & $names_cfg_name & @CRLF & "name " & $names_game_name & @CRLF & @CRLF & "//Controls" & @CRLF & "bind " & $controls_forward & " +forward" & @CRLF & "bind " & $controls_back & " +back" & @CRLF & "bind " & $controls_left & " +moveleft" & @CRLF & "bind " & $controls_right & " +moveright" & @CRLF & "bind " & $controls_lean_left & " +leanleft", 10, 150, 600, 500) 
$save_button = GuiCtrlCreateButton("Save Script", 210, 650, 200, 50) 
EndSelect
Select
Case $msg = $save_button
$FileSave = Filesavedialog("Save Config File","","Config Files (*.cfg*)|All files (*.*)", 2,"controls.cfg")
$Text = GuiCtrlRead($script_box) 
Filewrite($Filesave, $Text)
EndSelect
WEnd

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

That's because $save_button doesn't have any value. Did you forget to create that button? :)

I got:

Select

Case $msg = $show_script

$script_box = GuiCtrlCreateEdit("//Real Life Name: " & $names_real_name & @CRLF & "//Config Name: " & $names_cfg_name & @CRLF & "name " & $names_game_name & @CRLF & @CRLF & "//Controls" & @CRLF & "bind " & $controls_forward & " +forward" & @CRLF & "bind " & $controls_back & " +back" & @CRLF & "bind " & $controls_left & " +moveleft" & @CRLF & "bind " & $controls_right & " +moveright" & @CRLF & "bind " & $controls_lean_left & " +leanleft", 10, 150, 600, 500)

$save_button = GuiCtrlCreateButton("Save Script", 210, 650, 200, 50)

EndSelect

Case $msg = $save_button

$FileSave = Filesavedialog("Save Config File","","Config Files (*.cfg*)|All files (*.*)", 2,"controls.cfg")

$Text = GuiCtrlRead($script_box)

Filewrite($Filesave, $Text)

EndSelect

WEnd


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

I got:

Select

Case $msg = $show_script

$script_box = GuiCtrlCreateEdit("//Real Life Name: " & $names_real_name & @CRLF & "//Config Name: " & $names_cfg_name & @CRLF & "name " & $names_game_name & @CRLF & @CRLF & "//Controls" & @CRLF & "bind " & $controls_forward & " +forward" & @CRLF & "bind " & $controls_back & " +back" & @CRLF & "bind " & $controls_left & " +moveleft" & @CRLF & "bind " & $controls_right & " +moveright" & @CRLF & "bind " & $controls_lean_left & " +leanleft", 10, 150, 600, 500)

$save_button = GuiCtrlCreateButton("Save Script", 210, 650, 200, 50)

EndSelect

Case $msg = $save_button

$FileSave = Filesavedialog("Save Config File","","Config Files (*.cfg*)|All files (*.*)", 2,"controls.cfg")

$Text = GuiCtrlRead($script_box)

Filewrite($Filesave, $Text)

EndSelect

WEnd

If it's in there, you need to declare it

Dim $save_buttonoÝ÷ Ø    l£*.«ÞjZ-¡úÞvéÝj{RzW´IÝIé^rÖ¥*.­æ¥)Þyج¢w h¢KazXz»r¶%y©ò¢êܡ׬~ò¢æ§u§]¶ Çè¯*.®ö«¦åzÆ®¶­sb6æ6ÇVFRfÇC´wV6öç7FçG2æS2fwC° ¤DÒb33c¶æÖW5÷&VÅöæÖRÂb33c¶æÖW5ö6fuöæÖRÂb33c¶æÖW5övÖUöæÖRÂb33c¶6öçG&öÇ5öf÷'v&BÂb33c¶6öçG&öÇ5ö&6²Âb33c¶6öçG&öÇ5öÆVgBÂb33c¶6öçG&öÇ5÷&vBÂb33c¶6öçG&öÇ5öÆVåöÆVgBÂb33c·6fUö'WGFöà ¢b33c¶VFBÒuT7G&Ä7&VFTVFBgV÷C²gV÷C²ÂbÂCÂcÂ3c ¤wV7&VFRgV÷C´4drÖ¶W"gV÷C²Âc#Âs¢b33c¶æÖW2ÒwV7G&Ä7&VFT'WGFöâgV÷C´æÖW2gV÷C²Â¢b33c¶6öçG&öÇ2ÒwV7G&Ä7&VFT'WGFöâgV÷C´6öçG&öÇ2gV÷C²Â¢b33c¶÷FW%ö6öçG&öÇ2ÒwV7G&Ä7&VFT'WGFöâgV÷C´÷FW"6öçG&öÇ2gV÷C²Â#¢b33c·vVöåö6öçG&öÇ2ÒwV7G&Ä7&VFT'WGFöâgV÷CµvVöâ6öçG&öÇ2gV÷C²Â3¢b33c¶6Eö6öçG&öÇ2ÒwV7G&Ä7&VFT'WGFöâgV÷C´6B6öçG&öÇ2gV÷C²ÂC¢b33c·6÷u÷67&BÒwV7G&Ä7&VFT'WGFöâgV÷Cµ6÷r67&BgV÷C²ÂS¤wV7G&Ä7&VFTÆ&VÂgV÷CµF24drÖ¶W"vÆÂöæÇ6²f÷"FR¶W2÷RvçBFòW6RgV÷C²ÂÂR¤wV7G&Ä7&VFTÆ&VÂgV÷CµFR7GVfbvBvÆÂÖ¶RFRe2vòÆ÷vW"&RâFRÆ÷vW$e2çGBgV÷C²ÂÂ3 ¤wV6WE7FFR¥vÆR¢b33c¶×6rÒuTvWD×6r ¥6VÆV7@¤66Rb33c¶×6rÒb33c´uTôUdTåEô4Äõ4P W@ ¤66Rb33c¶×6rÒb33c¶æÖW0 b33c¶æÖW5÷&VÅöæÖRÒçWD&÷gV÷C´æÖW2gV÷C²ÂgV÷Cµ÷W"&VÂæÖS¢gV÷C² b33c¶æÖW5ö6fuöæÖRÒçWD&÷gV÷C´æÖW2gV÷C²ÂgV÷CµFR4dræÖS¢gV÷C² b33c¶æÖW5övÖUöæÖRÒçWD&÷gV÷C´æÖW2gV÷C²ÂgV÷Cµ÷W"âÔvÖRæÖRgV÷C² ¤66Rb33c¶×6rÒb33c¶6öçG&öÇ0 b33c¶6öçG&öÇ5öf÷'v&BÒçWD&÷gV÷C´6öçG&öÇ2gV÷C²ÂgV÷C´Ö÷fRf÷'v&C¢gV÷C² b33c¶6öçG&öÇ5ö&6²ÒçWD&÷gV÷C´6öçG&öÇ2gV÷C²ÂgV÷C´Ö÷fR&6³¢gV÷C² b33c¶6öçG&öÇ5öÆVgBÒçWD&÷gV÷C´6öçG&öÇ2gV÷C²ÂgV÷C´Ö÷fRÆVgC¢gV÷C² b33c¶6öçG&öÇ5÷&vBÒçWD&÷gV÷C´6öçG&öÇ2gV÷C²ÂgV÷C´Ö÷fR&vC¢gV÷C² b33c¶6öçG&öÇ5öÆVåöÆVgBÒçWD&÷gV÷C´6öçG&öÇ2gV÷C²ÂgV÷C´ÆVâÆVgC¢gV÷C² b33c¶6öçG&öÇ5öÆVå÷&vBÒçWD&÷gV÷C´6öçG&öÇ2gV÷C²ÂgV÷C´ÆVâ&vC¢gV÷C² b33c¶6öçG&öÇ5ö§V×ÒçWD&÷gV÷C´6öçG&öÇ2gV÷C²ÂgV÷C´§V×¢gV÷C² b33c¶6öçG&öÇ5ö7&÷V6ÒçWD&÷gV÷C´6öçG&öÇ2gV÷C²ÂgV÷C´7&÷V6¢gV÷C² b33c¶6öçG&öÇ5÷&öæRÒçWD&÷gV÷C´6öçG&öÇ2gV÷C²ÂgV÷Cµ&öæS¢gV÷C² b33c¶6öçG&öÇ5÷'VâÒçWD&÷gV÷C´6öçG&öÇ2gV÷C²ÂgV÷Cµ'Vã¢gV÷C² b33c¶6öçG&öÇ5÷W6RÒçWD&÷gV÷C´6öçG&öÇ2gV÷C²ÂgV÷CµW6Rô7FfFS¢gV÷C² ¤66Rb33c¶×6rÒb33c¶÷FW%ö6öçG&öÇ0 b33c¶÷FW%ö6öçG&öÇ5÷6÷u÷66÷&W2ÒçWD&÷gV÷C´÷FW"6öçG&öÇ2gV÷C²ÂgV÷Cµ6÷r66÷&W3¢gV÷C² b33c¶÷FW%ö6öçG&öÇ5öÆÖ&òÒçWD&÷gV÷C´÷FW"6öçG&öÇ2gV÷C²ÂgV÷C´ÆÖ&ó¢gV÷C² b33c¶÷FW%ö6öçG&öÇ5÷6÷uöÖÒçWD&÷gV÷C´÷FW"6öçG&öÇ2gV÷C²ÂgV÷Cµ6÷rÖ¢gV÷C² b33c¶÷FW%ö6öçG&öÇ5ö6ö×75÷¦ööÕöâÒçWD&÷gV÷C´÷FW"6öçG&öÇ2gV÷C²ÂgV÷C´6ö×72¦ööÒã¢gV÷C² b33c¶÷FW%ö6öçG&öÇ5ö6ö×75÷¦ööÕö÷WBÒçWD&÷gV÷C´÷FW"6öçG&öÇ2gV÷C²ÂgV÷C´6ö×72¦ööÒ÷WC¢gV÷C² ¤66Rb33c¶×6rÒb33c·vVöåö6öçG&öÇ0 b33c·vVöåö6öçG&öÇ5öæWE÷vVöâÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷C´æWBvVöã¢gV÷C² b33c·vVöåö6öçG&öÇ5÷&We÷vVöâÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷Cµ&Wf÷W2vVöã¢gV÷C² b33c·vVöåö6öçG&öÇ5öÖVÆVRÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷C´¶æfRÖVÆVR¢gV÷C² b33c·vVöåö6öçG&öÇ5ööæUöæFVBÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷C´ÇVvW"ô6öÇBöæRæFVB¢gV÷C² b33c·vVöåö6öçG&öÇ5÷GvõöæFVBÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷C´ÕCõFö×6öâGvòæFVB¢gV÷C² b33c·vVöåö6öçG&öÇ5öw&æFRÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷C´w&æFS¢gV÷C² b33c·vVöåö6öçG&öÇ5÷7V3ÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷Cµ7V6¢gV÷C² b33c·vVöåö6öçG&öÇ5÷7V3"ÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷Cµ7V6Â#¢gV÷C² b33c·vVöåö6öçG&öÇ5÷7V32ÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷Cµ7V6Â3¢gV÷C² b33c·vVöåö6öçG&öÇ5÷6ö÷BÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷Cµ6ö÷C¢gV÷C² b33c·vVöåö6öçG&öÇ5÷7vF6÷FòÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷Cµ7vF6FòÇFW&æFfS¢gV÷C² b33c·vVöåö6öçG&öÇ5÷&VÆöBÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷Cµ&VÆöC¢gV÷C² b33c·vVöåö6öçG&öÇ5ö&æö2ÒçWD&÷gV÷CµvVöâ6öçG&öÇ2gV÷C²ÂgV÷C´&æö7VÆ#¢gV÷C² ¤66Rb33c¶×6rÒb33c¶6Eö6öçG&öÇ0 b33c¶6Eö6öçG&öÇ5övÆö&ÂÒçWD&÷gV÷C´6B6öçG&öÇ2gV÷C²ÂgV÷C´vÆö&Â6C¢gV÷C² b33c¶6Eö6öçG&öÇ5÷FVÒÒçWD&÷gV÷C´6B6öçG&öÇ2gV÷C²ÂgV÷CµFVÒ6C¢gV÷C² b33c¶6Eö6öçG&öÇ5öf&WFVÒÒçWD&÷gV÷C´6B6öçG&öÇ2gV÷C²ÂgV÷C´f&RFVÒ6C¢gV÷C² b33c¶6Eö6öçG&öÇ5÷g6ÒçWD&÷gV÷C´6B6öçG&öÇ2gV÷C²ÂgV÷Cµfö6R6BÖVçS¢gV÷C² b33c¶6Eö6öçG&öÇ5÷f÷FU÷W2ÒçWD&÷gV÷C´6B6öçG&öÇ2gV÷C²ÂgV÷Cµf÷FRW3¢gV÷C² b33c¶6Eö6öçG&öÇ5÷f÷FUöæòÒçWD&÷gV÷C´6B6öçG&öÇ2gV÷C²ÂgV÷Cµf÷FRæó¢gV÷C² b33c¶6Eö6öçG&öÇ5÷67&VVç6÷BÒçWD&÷gV÷C´6B6öçG&öÇ2gV÷C²ÂgV÷Cµ67&VVç6÷C¢gV÷C² b33c¶6Eö6öçG&öÇ5÷&V6÷&BÒçWD&÷gV÷C´6B6öçG&öÇ2gV÷C²ÂgV÷Cµ&V6÷&B&WÆ¢gV÷C² ¤66Rb33c¶×6rÒb33c·6÷u÷67&@ b33c·67&Eö&÷ÒwV7G&Ä7&VFTVFBgV÷C²òõ&VÂÆfRæÖS¢gV÷C²fײb33c¶æÖW5÷&VÅöæÖRfײ5$ÄbfײgV÷C²òô6öæfræÖS¢gV÷C²fײb33c¶æÖW5ö6fuöæÖRfײ5$ÄbfײgV÷C¶æÖRgV÷C²fײb33c¶æÖW5övÖUöæÖRfײ5$Äbfײ5$ÄbfײgV÷C²òô6öçG&öÇ2gV÷C²fײ5$ÄbfײgV÷C¶&æBgV÷C²fײb33c¶6öçG&öÇ5öf÷'v&BfײgV÷C²¶f÷'v&BgV÷C²fײ5$ÄbfײgV÷C¶&æBgV÷C²fײb33c¶6öçG&öÇ5ö&6²fײgV÷C²¶&6²gV÷C²fײ5$ÄbfײgV÷C¶&æBgV÷C²fײb33c¶6öçG&öÇ5öÆVgBfײgV÷C²¶Ö÷fVÆVgBgV÷C²fײ5$ÄbfײgV÷C¶&æBgV÷C²fײb33c¶6öçG&öÇ5÷&vBfײgV÷C²¶Ö÷fW&vBgV÷C²fײ5$ÄbfײgV÷C¶&æBgV÷C²fײb33c¶6öçG&öÇ5öÆVåöÆVgBfײgV÷C²¶ÆVæÆVgBgV÷C²ÂÂSÂcÂS b33c·6fUö'WGFöâÒwV7G&Ä7&VFT'WGFöâgV÷Cµ6fR67&BgV÷C²Â#ÂcSÂ#ÂS ¤66Rb33c¶×6rÒb33c·6fUö'WGFöà b33c´fÆU6fRÒfÆW6fVFÆörgV÷Cµ6fR6öæfrfÆRgV÷C²ÂgV÷C²gV÷C²ÂgV÷C´6öæfrfÆW2¢æ6fr¢ÄÆÂfÆW2¢â¢gV÷C²Â"ÂgV÷C¶6öçG&öÇ2æ6frgV÷C² b33cµFWBÒwV7G&Å&VBb33c·67&Eö&÷ fÆWw&FRb33c´fÆW6fRÂb33cµFWB¤VæE6VÆV7@¥tVæ

Now that's a lot easier to read. :)


[font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version

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