Sign in to follow this  
Followers 0
flea2k

maximize from system tray - hit button - minimize

2 posts in this topic

I have written a small script that launches an exe and then auto logs me in.

The problem is when it logs in the program by default minimizes to the system tray. I want to somehow script it to maximize because there is a button that I have to push to complete the logon process.

If the program maximizes to the very top left coordinates of the screen, the button I need to push is located at x190 y53. Once that is pushed the program can be minimized.

The program is called fastcall.exe if you need that if you make a sample snipit.

I am new to this so it may be simple I just don't know all the functionality.

Share this post


Link to post
Share on other sites



I have written a small script that launches an exe and then auto logs me in.

The problem is when it logs in the program by default minimizes to the system tray. I want to somehow script it to maximize because there is a button that I have to push to complete the logon process.

If the program maximizes to the very top left coordinates of the screen, the button I need to push is located at x190 y53. Once that is pushed the program can be minimized.

The program is called fastcall.exe if you need that if you make a sample snipit.

I am new to this so it may be simple I just don't know all the functionality.

Welcome to AutoIT! :lmao:

Just to let you know how things work around here: You don't generally get very much help with people writing scripts FOR you. This forum is more about helping you to write it yourself.

In that vein: You can change the state of the window with WinSetState(), and then click the required button by X/Y coordinate with MouseClick(), or by Control ID with ControlClick(). The cool thing is, you don't even have to restore the window to click the button. You can use a control (the button is an example of a "Control", if you haven't gotten that far in the help file yet) on a minimized window with ControlCommand().

Give it a try and post your code (working or not!) and you'll get all the help you need to make it work.

;)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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