alezacco Posted March 28, 2008 Posted March 28, 2008 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
martin Posted March 28, 2008 Posted March 28, 2008 (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 Alessandrothe 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 March 28, 2008 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.
au3boy Posted April 5, 2008 Posted April 5, 2008 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 Alessandrome too
crashdemons Posted April 5, 2008 Posted April 5, 2008 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.)
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