Guest User

Untitled

a guest
Apr 18th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.35 KB | None | 0 0
  1. if _ispressed(01) and _mause_position(100,100,100,100)= true then
  2.  
  3.  
  4.  
  5. Func _mause_position($maus_y,$maus_x,$maus_width,$maus_height)
  6.     $maus = GUIGetCursorInfo()
  7.     If $maus[0] >= $maus_y And $maus[0] <= $maus_y + $maus_width And $maus[1] >= $maus_x And $maus[1] <= $maus_x + $maus_height Then
  8.         Return True
  9.     Else
  10.         Return False
  11.         EndIf
  12. EndFunc
Add Comment
Please, Sign In to add comment