pammi Posted May 8, 2012 Posted May 8, 2012 Hi everyone, I need help in resizing a splitter control bar. I used the below code to perform the operation $pos=ControlGetPos("ABC", "", 59664) ;control ID : 59664 $x=$pos[0] $y=$pos[1] $drag=MouseClickDrag( "left", $x, $y+60,$x+100,$y,100) First I retrieved the position of the control and the tried to do a mouseclickdrag operation. But its not happening. The mouseclickdrag is clicking the mouse somewhere else and is not dragging the splitter control. Even I tried to use controlmove function but i found some indentation issue after the control movement operation and the application GUI was not displaying properly. $sWinHandle = ControlGetHandle("[CLASS:AfxMDIFrame42; INSTANCE:3]","",59664) $a=ControlMove ("ABC", "",59649, 4,5) Can anyone please help me out with this.
JohnOne Posted May 8, 2012 Posted May 8, 2012 try using some variations of "MouseCoordMode" option ( Opt in helpfile ) And maybe even "GUICoordMode" AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
pammi Posted May 8, 2012 Author Posted May 8, 2012 Ok will try and let u know. But the mouseclickdrag should have worked ryt?
JohnOne Posted May 8, 2012 Posted May 8, 2012 rytSorry, I don't understand. Only speak English. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
pammi Posted May 9, 2012 Author Posted May 9, 2012 I was able to perform the operation using mouseclickdrag by varying the x and y coordinates. Thanks Johnone for ur support
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