Sign in to follow this  
Followers 0
Healian

need help with save

12 posts in this topic

#1 ·  Posted (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 by Healian

Share this post


Link to post
Share on other sites



Healian,

If you look in the Help file under <Tutorials - Simple Notepad Automation> you will see how to save a Notepad file. :graduated:

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._______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

#3 ·  Posted (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. :graduated:

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 by SadBunny

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by kaotkbliss

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by Healian

Share this post


Link to post
Share on other sites

no i am 32

Share this post


Link to post
Share on other sites

i solved it yea thank you very much i made endif before run notebad

Share this post


Link to post
Share on other sites

but if i have many input boxed and want save it in the same config

all

Share this post


Link to post
Share on other sites

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 game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

ok i will try and report you :graduated:

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