Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

[Help] MouseClick and Window Pos


  • Please log in to reply
3 replies to this topic

#1 Kradon

Kradon

    Seeker

  • Active Members
  • 16 posts

Posted 20 June 2011 - 12:50 AM

hello, been trying to find out how to make a script that focuses on a window with MouseClick() click on the same place despite the window's current location on the screen.

EX: Notepad coords are 600,700 (only an example) for MouseClick

but when i move the window notepad to lets say from left side of the screen to the right side of the screen, MouseClick would still move the mouse to the same place where it would've clicked when notepad was on the left side. I hope you guys know what i'm talking about, and i've tried ControlClick, i dont want to use ControlClick. And if this is possible can anyone tell me if it would be compatible with pixelsearch?

thanks a lot.







#2 somdcomputerguy

somdcomputerguy

  • Active Members
  • PipPipPipPipPipPip
  • 2,640 posts

Posted 20 June 2011 - 01:16 AM

Set PixelCoordMode to 2 (client), that may take care of your problem.

- Bruce /* somdcomputerguy */  If you change the way you look at things, the things you look at change.


#3 Kradon

Kradon

    Seeker

  • Active Members
  • 16 posts

Posted 20 June 2011 - 01:26 AM

hi i learn better through examples, can u show me an example script with notepad? thanks.

#4 Kradon

Kradon

    Seeker

  • Active Members
  • 16 posts

Posted 20 June 2011 - 02:07 AM

hi i learn better through examples, can u show me an example script with notepad? thanks.


nvm thanks for the tip, i've tried coding it and ended up understanding how to use set Opt.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users