Sign in to follow this  
Followers 0
Qsert18

Mouse coordinates

5 posts in this topic

#1 ·  Posted (edited)

hey guys,

I'm failing to get the coords for the mouseclick () thingy.

(trying to do this in ShiftWindow)

And i noticed that i've got 2x the same coords on my screen lol

mouseclick ( "left", 403,14, 5,2)

These coords can be found at aswell top as bot...

The programm is always picking up those upper values instead of the ones @ bottom (which i actuelly need)

PS: i use the autoitv3 window info thingy

kind regards,

stefan

EDIT: full script

Run("taskmgr.exe")
sleep (2000)

sleep (500)
Winsetstate ( "ShiftWindow", "", @SW_MAXIMIZE )
WinActivate("ShiftWindow")
WinWaitActive("ShiftWindow")
    sleep (1000)
    mouseclick ("left",1380,75, 1 ,2)
    mouseclick ("left",1380,75, 3 ,2)
    sleep (1000)
    
mouseclick ( "left", 403,14, 5,2)
Edited by Qsert18

Share this post


Link to post
Share on other sites



hey guys,

I'm failing to get the coords for the mouseclick () thingy.

(trying to do this in ShiftWindow)

And i noticed that i've got 2x the same coords on my screen lol

mouseclick ( "left", 403,14, 5,2)

These coords can be found at aswell top as bot...

The programm is always picking up those upper values instead of the ones @ bottom (which i actuelly need)

PS: i use the autoitv3 window info thingy

kind regards,

stefan

EDIT: full script

Run("taskmgr.exe")
sleep (2000)

sleep (500)
Winsetstate ( "ShiftWindow", "", @SW_MAXIMIZE )
WinActivate("ShiftWindow")
WinWaitActive("ShiftWindow")
    sleep (1000)
    mouseclick ("left",1380,75, 1 ,2)
    mouseclick ("left",1380,75, 3 ,2)
    sleep (1000)
    
mouseclick ( "left", 403,14, 5,2)

Your post doesn't make any sense to me, particularly the bit "These coords can be found at aswell top as bot..."

I understand that you want to click at some coordinate but the result is that the clicks occur in the wrong place, Some script we could run to see what you are doing would help.

Have you checked that Opt("MouseCoordMode" ) is set as you want and expect?


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

check this imagehack link: http://imageshack.us/photo/my-images/13/bottommy.png/

I've already posted my script above :unsure:

This is what i'm trying to accomplish:

ShiftWindow is probly minimized/not at top of the screen

I want to make it come to the front...

Than it has to click "triggerit" ( ==> mouseclick ("left",1380,75, 3 ,2))

And than it has to press a window @the taskbar (at the bottom of the screen)

Normally it should be those coordinates:mouseclick ( "left", 403,14, 5,2) = red

But it always clicks somewhere on top of the screen = blue :s

EDIT:

I've tried Opt("MouseCoordMode", 1)

but this doesn't work either

Edited by Qsert18

Share this post


Link to post
Share on other sites

¿why you click four times?

¿Is the sleep time enough?

¿Are you sure the place you click is where you want to click?

¿Did you set the MouseCoordMode as you need?

the pixel 0 on the Y coord is always the topest of the screeen

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

i fixed it -.-"

the problem:

i was Using the tool "AutoitV3 Window info". and the settings were set @client :s (i only checked it in my script before)

aah

thanks for the help

Edited by Qsert18

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