Sign in to follow this  
Followers 0
pammi

Need Help on MouseClickDrag

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



Ok will try and let u know. But the mouseclickdrag should have worked ryt?

Share this post


Link to post
Share on other sites

I was able to perform the operation using mouseclickdrag by varying the x and y coordinates.

Thanks Johnone for ur support

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