Jump to content


Photo

Mouse Transform Detection


  • Please log in to reply
1 reply to this topic

#1 aCID3D

aCID3D

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 13 April 2019 - 08:25 AM

HI has ACT a function for detected Mouse Transform ? i move my mouse over the screen and it transform the mouse to a Hand on a place where i can click something then i need a mouseclick or something ... any script for that ?

 

 

thx for help 

 

 



#2 Ego

Ego

    Insane Poster

  • Moderators
  • 431 posts
  • LocationAustralia

Posted 15 April 2019 - 03:30 PM

There are 2 ways YOU can code a macro to do that off the top of my head. Can think of a few other ways, but I'm not coding for whatever you are trying to do.

At the mouse position when it changes, you can use an object and look for isobject to detect it and mouseclick.

Examples below

isobject screen1 at 725, 53
delay .5 sec
MousePos 111, 111
delay .5 sec
leftclick
end
Object screen1 // Test at coords 725, 53 Size: 5, 5 width x height
254=0,0|101=4,0
254=0,2
254=0,4|85=2,4
End

At the mouse position when it changes, you can look for is(color) at x, y and mouseclick.

MousePos 326, 324
delay 3 sec
while 1 = 1
IsWhite 346, 297
delay .2 sec
MousePos 58, 370
delay .3 sec
Dragto 96, 676
delay .3 sec
MousePos 261, 712
delay .1 sec
leftclick
break
End
End

2 snippets of code from 2 of my macros

Ego is not a dirty word