Jump to content
Sign in to follow this  
vanowm

[SOLVED] How to retrieve/change value in input box in external application?

Recommended Posts

vanowm

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

Share this post


Link to post
Share on other sites
Malkey

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.

Share this post


Link to post
Share on other sites
vanowm

I must have explained it bad...

The save file dialog is opened by none-AU3 application, so FileSaveDialog() will not do any good..

Share this post


Link to post
Share on other sites
Champak

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

Share this post


Link to post
Share on other sites
vanowm

excellent!

ControlGetText() and ControlSetText() is exactly what I've been looking for! :)

Thank you.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.