Qsert18 Posted May 19, 2011 Posted May 19, 2011 (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 May 19, 2011 by Qsert18
martin Posted May 19, 2011 Posted May 19, 2011 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.
Qsert18 Posted May 20, 2011 Author Posted May 20, 2011 (edited) check this imagehack link: http://imageshack.us/photo/my-images/13/bottommy.png/ I've already posted my script above 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 May 20, 2011 by Qsert18
monoscout999 Posted May 20, 2011 Posted May 20, 2011 ¿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
Qsert18 Posted May 20, 2011 Author Posted May 20, 2011 (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 May 20, 2011 by Qsert18
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