mini Posted December 14, 2009 Posted December 14, 2009 Hello all, im trying to save some text from a "$input" to a .txt when i press the key to save files Func button5();SAVE FileWrite("temp1.txt", "$input1") FileWrite("temp2.txt", $input2) ;$input3 ;$input4 MsgBox(0, "Save", "Temp Files Save") EndFunc Does anyone can help me? [size="4"]My first work[/size], it checks if one prograrm is running and if not it closes all necessery windows and run them again.[size="4"]My second work[/size], Script Function: It saves a Client Info and creates a INI file for all clients with all the info.[size="4"]My third work[/size], Script Function: It change some INFO on a working program, every X min configured.
Moderators Melba23 Posted December 14, 2009 Moderators Posted December 14, 2009 mini,You need to use GUICtrlRead($input) - that gets the content rather than the ID of the control itself.M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
mini Posted December 14, 2009 Author Posted December 14, 2009 well i need really to save does 4 files on a TXT using a save button... if you can help me ill be glad. [size="4"]My first work[/size], it checks if one prograrm is running and if not it closes all necessery windows and run them again.[size="4"]My second work[/size], Script Function: It saves a Client Info and creates a INI file for all clients with all the info.[size="4"]My third work[/size], Script Function: It change some INFO on a working program, every X min configured.
Moderators Melba23 Posted December 14, 2009 Moderators Posted December 14, 2009 mini,Just do what I said above: Func button5();SAVE FileWrite("temp1.txt", GUICtrlRead($input1)) FileWrite("temp2.txt", GUICtrlRead($input2)) FileWrite("temp3.txt", GUICtrlRead($input3)) FileWrite("temp4.txt", GUICtrlRead($input4)) MsgBox(0, "Save", "Temp Files Saved") EndFuncIf you are having problems understanding the basics of AutoIt then might I suggest reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) - this will help you enormously. You should also look at the excellent tutorials that you will find here and here. There are even video tutorials on YouTube if you prefer watching to reading. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
mini Posted December 14, 2009 Author Posted December 14, 2009 thx bro, ill do that... There are things that i really dont understand in fact. its the first time im programing, i didnt study programming on school, sow, that are big thins that i dont understand. Thx very much for your help [size="4"]My first work[/size], it checks if one prograrm is running and if not it closes all necessery windows and run them again.[size="4"]My second work[/size], Script Function: It saves a Client Info and creates a INI file for all clients with all the info.[size="4"]My third work[/size], Script Function: It change some INFO on a working program, every X min configured.
Moderators Melba23 Posted December 14, 2009 Moderators Posted December 14, 2009 mini, We all start somewhere - usually at the bottom! The main thing is to make your own way up. The tutorials will help a lot and AutoIt has probably the best Help file out there. And we are a friendly lot here (except when it comes to certain forbidden things! ) M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
mini Posted December 14, 2009 Author Posted December 14, 2009 yes, I've bumped on one of does things today. But i didn't want to be on this situation as the one I've bumped in. I just been on my project for learning propose, I'm making a pause on my project today. I'm tired, ill try again tomorrow or some days later after reading some more. My project works with no problem, but it as no GUI, just MsgBox's. A GUI makes it more "clean". Thx very much for that help and the Tut's/Help links. [size="4"]My first work[/size], it checks if one prograrm is running and if not it closes all necessery windows and run them again.[size="4"]My second work[/size], Script Function: It saves a Client Info and creates a INI file for all clients with all the info.[size="4"]My third work[/size], Script Function: It change some INFO on a working program, every X min configured.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now