SuperNatural Posted January 6, 2012 Posted January 6, 2012 Hey..I have a little question:I used the Help File and searched on the forum for the MouseCoordsMode (for MouseClick function).I get this information:0 = relative coords to the active window1 = absolute screen coordinates (default)2 = relative coords to the client area of the active windowSo, I wanted to get the position of mouse in a specific window,So I put in the top of my script this code:Opt("MouseCoordMode",0) // 0 = window.And in the info tool I changed to this:BUT,when I run the script, the mouse goes to the wrong position O_oBUT,when I changed this line: Opt("MouseCoordMode",0) // 0 = window. TO:Opt("MouseCoordMode",1) ,The mouse moved to the position I wanted O_oWhy ?In the info tool, as you see, the coord mode was for "Window",And when the Opt was MooseCoordMode, 1, then the script works (which 1 referres to 1 = absolute screen coordinates (default))Any ideas? :SThanks !
Beege Posted January 7, 2012 Posted January 7, 2012 Your results our indeed backwards. But running a quick test of my own with notepad I don't seem to have any problems. Did you verify the results the info tool gave you? Just by looking at them you should be able to tell if they our absolute or window coordinates. If you post the actual mouse coordinates I might better help in spotting the problem.. Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator
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