Healian Posted November 19, 2010 Share Posted November 19, 2010 (edited) thank you for all who replayed me the proplem was eventually solved by the help of kaotbliss and what i only need is i have a drop lisa in the windows which i am working on and i need the script select an item from the lisa how could i do that ? Edited November 19, 2010 by Healian Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 19, 2010 Moderators Share Posted November 19, 2010 Healian,If you look in the Help file under <Tutorials - Simple Notepad Automation> you will see how to save a Notepad file. But be careful and make sure you use the Window Info tool to correctly identify the "Do you want to Save?" dialog - some newer Windows versions have changed the wording since the Help file was written. 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 Link to comment Share on other sites More sharing options...
SadBunny Posted November 19, 2010 Share Posted November 19, 2010 (edited) i made a script that asks about some information $yourage = inputbox ("enter your age","enter your age") run ("notepad") WinWaitActive ("Untitled - Notepad","") send ($yourage) and i need to make a save function to save the script with the age which was entered and dont ask for age again . just open the notepad and enter the age which was saved without inputbox again Perhaps save it in a .ini file and read from that file later or something? If you look in the Help file under <Tutorials - Simple Notepad Automation> you will see how to save a Notepad file. If I read it correctly, he's not asking for a way to save the notepad file, but to save the entered age somewhere so he can send it to the notepad window in another run without having to ask the user again. (Why one would send an age to a notepad window is beyond me however ) Edited November 19, 2010 by SadBunny Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
Healian Posted November 19, 2010 Author Share Posted November 19, 2010 at first thank you for replaying me but i am not looking for save for notepad i mean when i enter the age i need the script asks to be saved with the age entered and when i open the new saved script it did not ask me to enter age again only open notepad and enter age directly without asking me for age to enter again Link to comment Share on other sites More sharing options...
kaotkbliss Posted November 19, 2010 Share Posted November 19, 2010 (edited) I would save it in either an ini or regestry, then the first thing the script would do was look for that file/entry if it is there, use the value if not ask the question. Something like: $yourage = IniRead(@ScriptDir & "\age.ini", "age", 1, "") If $yourage = "" Then $yourage = InputBox("enter your age", "enter your age") IniWrite(@ScriptDir & "\age.ini", "age", 1, $yourage) EndIf Run("notepad") WinWaitActive("Untitled - Notepad", "") Send($yourage) *edit* I think this code is closer to what you want Edited November 19, 2010 by kaotkbliss 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Healian Posted November 19, 2010 Author Share Posted November 19, 2010 (edited) it saves the age in the ini file but when try to open the script again it does not open notepad and type what saved in the ini its very close i think its 90% what i want but when it saves the ini file and try to open it again it does not open the notepad and type what it saved Edited November 19, 2010 by Healian Link to comment Share on other sites More sharing options...
kaotkbliss Posted November 19, 2010 Share Posted November 19, 2010 It does for me. Are you on a 64 bit machine? 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Healian Posted November 19, 2010 Author Share Posted November 19, 2010 no i am 32 Link to comment Share on other sites More sharing options...
Healian Posted November 19, 2010 Author Share Posted November 19, 2010 i solved it yea thank you very much i made endif before run notebad Link to comment Share on other sites More sharing options...
Healian Posted November 19, 2010 Author Share Posted November 19, 2010 but if i have many input boxed and want save it in the same config all Link to comment Share on other sites More sharing options...
kaotkbliss Posted November 19, 2010 Share Posted November 19, 2010 Oh, you were using the old code I changed. To use more data, simply either use other ini section names or other ini keys. ini is usually set up like [section name 1] 1=key1 2=key2 3=key3 [section name 2] 1=key1b 2=key2b 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Healian Posted November 19, 2010 Author Share Posted November 19, 2010 ok i will try and report you Link to comment Share on other sites More sharing options...
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