Jump to content

Please tell me what i'm doing wrong. (control click: about coords)


tp9191
 Share

Recommended Posts

Opt("MouseCoordMode", 2)
$size = WinGetClientSize("MeGUI - MP4 Muxer") ;Add Client name here for Background windows
$x_ratio = $size[0] / @DesktopWidth
$y_ratio = $size[1] / @DesktopHeight
Sleep(2000)
MsClick("","","","left",1,409,178)
Sleep(2000)
MsClick("","","","left",1,409,178)
Sleep(2000)
MsClick("","","","left",1,409,578)
Func MsClick($tittle, $text, $controlid, $clickType, $clicks = 1, $xpos = 1, $ypos = 1)
$randX = $xpos * $x_ratio
$randY = $ypos * $y_ratio
ControlClick("MeGUI - MP4 Muxer", "", "",$clickType,$clicks,$randX,$randY) ;Set $tittle if u want to work on a specific window client
EndFunc   ;==>MsClick

I'm reading the script and excuse me, but, how exactly is this going to help me, anyways? It says it's for background windows while you are full screened? Isn't that a bit excessive if all I am wanting to do is click a simple 'input file' box?

P.S., the guy misspelled "title" but not sure if that will matter.

Link to comment
Share on other sites

Yes its for background windowed full screens. If you programs is not windowed fullscreen then you will need to change these two:

$x_ratio = $size[0] / @DesktopWidth

$y_ratio = $size[1] / @DesktopHeight

If this is your code and it is not working is because of the controlclick command.

The 3rd parametre of the command is the ControlID of the input you want to click not the times of mouseclicks you want to do.

Opt("MouseCoordMode" , 0 )
winactivate ("MeGUI - MP4 Muxer")
controlclick ("MeGUI - MP4 Muxer", "", 1, 8, 12)

MsClick("MeGUI - MP4 Muxer", "",$controlID,"left",1,8,12)

I didn't want to say this but if you want post your summary of the info tool

Edited by ileandros

I feel nothing.It feels great.

Link to comment
Share on other sites

  • 4 months later...

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...