flea2k Posted November 22, 2006 Share Posted November 22, 2006 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. Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 22, 2006 Share Posted November 22, 2006 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! 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 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