The idea of this code was to redirect the mouse click to another point
You can find the code above
Redirect a wrong click
Redirect a wrong click
Last edited by Gonzalo94 on 09 Feb 2019, 16:42, edited 4 times in total.
Re: Redirect a wrong click
Hola Gonzalo! ,
Try this:
Cheers
Try this:
Code: Select all
#NoEnv
#SingleInstance force
#Warn
; ====================== preferences /======================
coordinatesRelativeTo := "Screen" ; asigna el origen del sistema de coordenadas y aqui la esquina izquierda superior de la pantalla
x1 := 673, x2 := 693
y1 := 340, y2 := 381
rectifiedx := 683, rectifiedy := 369
winTitle := "ahk_class Notepad" ; reemplazalo por el titulo de la ventana de tu juego
; ======================/ preferences ======================
return
#If (WinActive(winTitle) && IsOverArea(673, 693, 340, 381, coordinatesRelativeTo))
LButton::Click, %rectifiedx%, %rectifiedy%
#If
isOverArea(_x1, _x2, _y1, _y2, _relativeTo:="Screen") {
_coordModeMouse := A_CoordModeMouse
CoordMode, Mouse, % _relativeTo
MouseGetPos, _x, _y
CoordMode, Mouse, % _coordModeMouse
return (((_x1 <= _x) && (_x <= _x2)) && ((_y1 <= _y) && (_y <= _y2)))
}
Cheers
Re: Redirect a wrong click
thanks!
Re: .
Please don't edit your posts to "." because people might have the same questions, and this is a self.centered scummy move....
Forums are about sharing, not deleting info when you get your questions answered.
Forums are about sharing, not deleting info when you get your questions answered.
Re: Redirect a wrong click
Mucho thanks
May help people search if needed
May help people search if needed
Who is online
Users browsing this forum: Google [Bot] and 49 guests