Sign in to follow this  
Followers 0
alezacco

Problem with Save

4 posts in this topic

Hi!

I've a problem...I want to save a file but when the Save window (Salva con nome) is open It don't write the string "prova" in the name field.

Send("!f")

Send("s")

WinWaitActive("Salva con nome")

ControlSend("Salva con nome","","Edit","prova")

Thanks

Alessandro

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi!

I've a problem...I want to save a file but when the Save window (Salva con nome) is open It don't write the string "prova" in the name field.

Send("!f")

Send("s")

WinWaitActive("Salva con nome")

ControlSend("Salva con nome","","Edit","prova")

Thanks

Alessandro

the control ID is unlikely to be Edit. Edit1 is more likely. Use AutoIt window Info tool to get the control ID.

EDIT: I should say might not be Edit, so if Edit is correct then maybe the title case or spelling is not quite right.

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Hi!

I've a problem...I want to save a file but when the Save window (Salva con nome) is open It don't write the string "prova" in the name field.

Send("!f")

Send("s")

WinWaitActive("Salva con nome")

ControlSend("Salva con nome","","Edit","prova")

Thanks

Alessandro

me too

Share this post


Link to post
Share on other sites

If this is a standed "Save As" window:

as martin pointed out earlier the field containing the text should be "Edit1" so you should do the equivalent of

ControlSetText("Salva con nome",'',"Edit1",'newfilenamehere')

Make sure all of the characters in the string "Salva con nome" match the window's title and are not accented in it (not sure if AutoIt will match all of the accents of a letter)


My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)

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