How i want to use AutoitX.dll in c# for to make a pixelbot with c# but with some function of autoit like PixelSearch and Mouseclick. Is this possible? if yes, what i must write in the code of c# source?
$resultxy = PixelSearch(0, 0 , 20, 300, 0x343434)
If Not @error Then
MouseClick("Left", $resultxy[0], $resultxy[1])
EndIf
HotKeySet("{F6}","_Exit")
While 1
$Variable=PixelSearch(left,top,right,bottom,color)
If IsArray($Variable) = True Then
MouseMove($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
WEnd
Func _Exit()
Exit
EndFunc
:facepalm:Quote:
I dont know of c# but in AutoIt is it like this :
Code:$resultxy = PixelSearch(0, 0 , 20, 300, 0x343434) If Not @error Then MouseClick("Left", $resultxy[0], $resultxy[1]) EndIf
:facepalm:Quote:
MFG, Futur94 :)Code:HotKeySet("{F6}","_Exit") While 1 $Variable=PixelSearch(left,top,right,bottom,color) If IsArray($Variable) = True Then MouseMove($Variable [0], $Variable [1],1) MouseClick ("left") EndIf WEnd Func _Exit() Exit EndFunc
public AutoItX3 a = new AutoItX3;
a.PixelSearch(....)