vanowm Posted June 14, 2008 Share Posted June 14, 2008 (edited) Hello! I've seen a similar question has been asked before, but now I can't find it...must be searching for wrong keywords... Anyway, the situation is the following: a program asks to save a file (standard save file dialog), I need create an automated filename input, with changing path of the file and maybe the filename. I've done so far "save file" window detection, also I've tryed use ControlSend function to change filename, however, using ControlSend creates problem if you are typing something at that time. So, ControlSend is not preferable. So, if anyone know an answer or at least could point me to a right direction... Thank you. Edited June 14, 2008 by vanowm Link to comment Share on other sites More sharing options...
Malkey Posted June 14, 2008 Share Posted June 14, 2008 Hello!I've seen a similar question has been asked before, but now I can't find it...must be searching for wrong keywords...Anyway, the situation is the following:a program asks to save a file (standard save file dialog), I need create an automated filename input, with changing path of the file and maybe the filename.I've done so far "save file" window detection, also I've tryed use ControlSend function to change filename, however, using ControlSend creates problem if you are typing something at that time. So, ControlSend is not preferable.So, if anyone know an answer or at least could point me to a right direction...Thank you.Check out FileSaveDialog() in the Help file. Link to comment Share on other sites More sharing options...
vanowm Posted June 14, 2008 Author Share Posted June 14, 2008 I must have explained it bad... The save file dialog is opened by none-AU3 application, so FileSaveDialog() will not do any good.. Link to comment Share on other sites More sharing options...
Champak Posted June 14, 2008 Share Posted June 14, 2008 (edited) If I'm understanding your problem correctly, do this. BlockInput(1);if your typing something when the function runs ControlGetText();Retrieve ControlSetText();Change...instead of controlsend...I just prefer it. BlockInput(0) Edited June 14, 2008 by Champak Link to comment Share on other sites More sharing options...
vanowm Posted June 14, 2008 Author Share Posted June 14, 2008 excellent! ControlGetText() and ControlSetText() is exactly what I've been looking for! Thank 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