lolp1 Posted September 25, 2006 Share Posted September 25, 2006 Is there a function in auto-it to resize a window, example resize notepad to 1x1. Or possible detect what size the window is, and then make the mouse clicks so they'll be in the right place.\ Func movemouse ( $x, $y ) $name = WinGetTitle ( "Classname=Diablo II", "") $pos = WinGetPos ( $name, "") $x = $x + $pos[0] $y = $y + $pos[1] MouseClick ( "left", $x, $y, 1, 0) EndFunc I expiermented with that, but no luck. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 25, 2006 Moderators Share Posted September 25, 2006 Is there a function in auto-it to resize a window, example resize notepad to 1x1. Or possible detect what size the window is, and then make the mouse clicks so they'll be in the right place.\ Func movemouse ( $x, $y ) $name = WinGetTitle ( "Classname=Diablo II", "") $pos = WinGetPos ( $name, "") $x = $x + $pos[0] $y = $y + $pos[1] MouseClick ( "left", $x, $y, 1, 0) EndFunc I expiermented with that, but no luck.WinMove() WinGetPos() I'll chalk these questions up to laziness Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 25, 2006 Share Posted September 25, 2006 (edited) WinMove Edit: Smoke_N beat me to it. Edited September 25, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 25, 2006 Moderators Share Posted September 25, 2006 WinMoveEdit: Smoke_N beat me to it.Sometimes you gotta be quick Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
lolp1 Posted September 25, 2006 Author Share Posted September 25, 2006 (edited) Would: WinMove("Diablo II" -", "", 0, 0, 800, 600) be correct? (to make 800, 600 of course) Edited September 25, 2006 by lolp1 Link to comment Share on other sites More sharing options...
jinxter Posted September 25, 2006 Share Posted September 25, 2006 (edited) from manual... WinMove ( "title", "text", x, y [, width [, height]] ) title | The title of the window to move/resize. See Title special definition. text | The text of the window to move/resize. x | X coordinate to move to. y | Y coordinate to move to. width | [optional] New width of the window. height | [optional] New height of the window. Edited September 25, 2006 by jinxter > there are 10 types of people in the world, those who understand binary and those who don't. Link to comment Share on other sites More sharing options...
AzKay Posted September 25, 2006 Share Posted September 25, 2006 from manual... WinMove ( "title", "text", x, y [, width [, height]] ) title | The title of the window to move/resize. See Title special definition. text | The text of the window to move/resize. x | X coordinate to move to. y | Y coordinate to move to. width | [optional] New width of the window. height | [optional] New height of the window.I believe its called a help file. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
jinxter Posted September 25, 2006 Share Posted September 25, 2006 d0h... but it's so well documented it feels like a manual (fair enough?) > there are 10 types of people in the world, those who understand binary and those who don't. Link to comment Share on other sites More sharing options...
AzKay Posted September 25, 2006 Share Posted September 25, 2006 d0h... but it's so well documented it feels like a manual (fair enough?)Ofcourse # MY LOVE FOR YOU... IS LIKE A TRUCK- # 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