SeguiMouse 1.0

« Older   Newer »
  Share  
-Anubi-
CAT_IMG Posted on 21/2/2010, 09:34     +1   -1




Questo programma Anubi lo ha trovato sul forum di Autoit e lo ha riadattato per seguire il muose...è carno :P

SPOILER (click to view)
Dim $Mpos_1 = "", $Mpos_1A = "", $Mpos_2 = "", $Mpos_2A = "", $line = ""
$LineColor = 0x0000ff; color BGR
$LineWidth = 10


HotKeySet("{F1}", "Get_pos_one")
HotKeySet("{F2}", "Get_pos_two")
HotKeySet( "{F3}", "Get_drawing")
While 1

Get_pos_one()

Get_pos_two()
Get_drawing()


Sleep(100)
WEnd


Func Get_pos_one()
GUICtrlDelete($line)
$Ms_In = MouseGetPos()
$Mpos_1 = $Ms_In[0]
$Mpos_2 = $Ms_In[1]

EndFunc

Func Get_pos_two()
GUICtrlDelete($line)
$Ms_In2 = MouseGetPos()
$Mpos_1A = $Ms_In2[0]
$Mpos_2A = $Ms_In2[1]

EndFunc

Func Get_drawing()

If $Mpos_1 = "" Or $Mpos_1A = "" Then
;imbecille :(
Return
EndIf
$hd = DllCall("user32.dll", "int", "GetDC", "hwnd", 0)
$pen = DllCall("gdi32.dll", "int", "CreatePen", "int", 0, "int", $LineWidth, "int", $LineColor)
DllCall("gdi32.dll", "int", "SelectObject", "int", $hd[0], "int", $pen[0])
DllCall("GDI32.dll", "int", "MoveToEx", "hwnd", $hd[0], "int", $Mpos_1, "int", $Mpos_2, "int", 0)
DllCall("GDI32.dll", "int", "LineTo", "hwnd", $hd[0], "int", $Mpos_1A, "int", $Mpos_2A)
DllCall("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $hd[0])

EndFunc

Func Get_Exit()
Exit
EndFunc
 
Top
MHack
CAT_IMG Posted on 21/2/2010, 09:46     +1   -1




Grande Anubi! E' una figata ;)
Ma per ora non siamo ancora ai livelli di Kubuntu XD
 
Top
Gianlu-thebest
CAT_IMG Posted on 21/2/2010, 10:06     +1   -1




forte!!! solo che vorrei che li cancellase le tracce!
 
Top
-Anubi-
CAT_IMG Posted on 21/2/2010, 10:06     +1   -1




Chi è kubuntu ?
 
Top
MHack
CAT_IMG Posted on 21/2/2010, 10:13     +1   -1




Kubuntu è una distribuzione di linux che permette di fare effetti grafici molto belli. Guarda:

Comunque Kubuntu con il Compiz Fusion è bellissimo. Cerca su youtube "compiz fusion"
 
Top
-Anubi-
CAT_IMG Posted on 21/2/2010, 10:14     +1   -1




OMG
 
Top
Gianlu-thebest
CAT_IMG Posted on 21/2/2010, 10:29     +1   -1




CITAZIONE (-Anubi- @ 21/2/2010, 10:14)
OMG

non sei un dio?!?!?
XD
 
Top
-Anubi-
CAT_IMG Posted on 21/2/2010, 12:30     +1   -1




Sì, ma Anubi si riferiva a quell'altro XdXd
 
Top
Gianlu-thebest
CAT_IMG Posted on 21/2/2010, 12:39     +1   -1




XDXDXDXD
 
Top
xdmisterx
CAT_IMG Posted on 21/2/2010, 14:10     +1   -1




bellissimo :)
comunque, perchè richiamare le dll quando ci sono le funzioni per le gdi(anche se è la stessa cosa :))?
 
Top
-Anubi-
CAT_IMG Posted on 21/2/2010, 15:36     +1   -1




Anubi non conosce bene le GDI...
 
Top
Gianlu-thebest
CAT_IMG Posted on 23/2/2010, 17:25     +1   -1




Anubi ma perchè nel codice c'è scritto:
; imbecille :(

XDXDXD
 
Top
-Anubi-
CAT_IMG Posted on 23/2/2010, 18:08     +1   -1




Anubi non sapeva che scrivere dopo else e quindi ...XD
 
Top
12 replies since 21/2/2010, 09:34   187 views
  Share