Jump to content

Need Help on MouseClickDrag


Recommended Posts

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...