Jump to content

autoitrulez

Members
  • Posts

    8
  • Joined

  • Last visited

autoitrulez's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. wow, very kool and nice, btw, which can i edit to change radius and density of circle? I c the If Not @error Then WinMove($GUI,"",$pt[0] - 15,$pt[1] - 15) line controls how center the cursor is... i clearly have to edit this to change size of circle, but shape changes also wen i edit I want to know, because I want there to b an input box to put the size in for a gui
  2. oh, u wrote it, i saw it in a thread of BigAssMuffin, (oh,, I looked bak, and yea, u wrote it) I want it to simply search for that color, and click on it, but for some reason it clicks on that color, or any colors similar to it.
  3. yes, very confsed with regioned window? is there anyway ti make a pixel or something without the gui..causer then it will use alot of cpu consumption to move the gui as the mouse moves
  4. is there a way so a circle of pixels will apear around the mouse, like say it's +15, there will be a circle around the mouse with a radius of 15 or something along those lines? Thanks again
  5. $aSearch = _PixToMouse( GuiCtrlRead($Input_1), 0x7B5585, 2, 0, GUICtrlRead($Input_2) )
  6. nevermind, still doesnt work? any help?
  7. thanks, but thats already in the script, ... unless ur saying thats the exct order? OH< I GET IT NOW, THANK!!!!
  8. I have this script I made: HotKeySet("{ESC}", "quit") $color = 0x7B5585 $game = 0 (GUI WENT HERE, I TOOK OUT TO SAVE SPACE) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $Button_1 Exit EndSelect If $game = 1 Then If _IsPressed("04") Then ; ( radiius, color, ?, ?, shade) $aSearch = _PixToMouse( GuiCtrlRead($Input_1), 0x7B5585, 0, GUICtrlRead($Input_2) ) If Not @error Then MouseClick('right', $aSearch[0], $aSearch[1], 1, 0) Sleep(500) EndIf EndIf EndIf WEnd Func _PixToMouse($iVariant, $iColor, $iWinCoord = 2, $iShade = 0, $iStep = 1) $OptPCM = Opt('PixelCoordMode', $iWinCoord) $OptMCM = Opt('MouseCoordMode', $iWinCoord) Local $aMpos = MouseGetPos(), $aPix If IsArray($aMpos) Then $aPix = PixelSearch($aMpos[0] - $iVariant, $aMpos[1] - $iVariant, _ $aMpos[0] + $iVariant, $aMpos[1] + $iVariant, $iShade, $iStep) Opt('PixelCoordMode', $OptPCM) Opt('MouseCoordMode', $OptMCM) If IsArray($aPix) Then Return $aPix EndIf EndIf Return SetError(1, 0, 0) EndFunc Func _IsPressed($v_R, $v_dll = 'user32.dll') $v_R = DllCall($v_dll, 'int', 'GetAsyncKeyState', 'int', '0x' & $v_R) Return (Not @error And BitAND($v_R[0], 0x8000) = 0x8000) * 1 EndFunc ;==>_IsPressed Func Play() If $game < 1 Then $game = $game + 1 Else $game = 0 EndIf EndFunc Func quit() Exit EndFunc The main line I am having trouble with is this: $aSearch = _PixToMouse( GuiCtrlRead($Input_1), 0x7B5585, 0, GUICtrlRead($Input_2) ) because even thoguh I set color afriation to 0, it will still click on ixes xlose to this color..maybe I messed up somewhere? I believe it is (radius to search, color, color variation?, step) if this is wrong, pelase correct, thanks!
×
×
  • Create New...