Jump to content

acez

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by acez

  1. what do you mean declare? im new to scripting
  2. it mostly laggs me when i press mouse1(left click on the mouse) any help?
  3. This script gives me this error: If IsArray($Pos) Then If IsArray(^ ERROR
  4. Its for Counter Strike, and can you tell me where do i put the sleep(x) at or what ever you said that may fix it
  5. #Include <Misc.au3> HotKeySet("!{ESC}", "Terminate") $Color = "0xEB00A7"; pink this is just for testing....it will only target cts with the mdls i made $Colo1 = "0xB1007E"; $Colo2 = "0xAD007B" $Colo3 = "0x65004A" $left = 460 $top = 380 $right = 540 $bottem = 430 $dll = DllOpen("user32.dll") While 1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;hotkeys________________________ _________________ if _IsPressed("39",$dll) Then ; 9 $Color = "0xD60000"; SoundPlay(@MyDocumentsDir & "\t.wav",0) sleep(500) Else if _IsPressed("30",$dll) Then; 0 $Color = "0xD60000" SoundPlay(@MyDocumentsDir & "\ct.wav",0) sleep(500) Else If _IsPressed("26",$dll) Then;up $left = 460 $top = 380 $right = 540 $bottem = 430 Else If _IsPressed("28",$dll) Then;down $left = 490 $top = 380 $right = 510 $bottem = 430 Else if WinActive("Counter-Strike") Then If _IsPressed("01", $dll) Then $Pos = PixelSearch($left,$top,$right,$bottem, $Color, 10,2) If IsArray($Pos) Then MouseMove($Pos[0],$Pos[1],0) Else $Pos = PixelSearch($left,$top,$right,$bottem, $Colo1, 10,2) if IsArray($Pos) Then MouseMove($Pos[0],$Pos[1],0) Else $Pos = PixelSearch($left,$top,$right,$bottem, $Colo2, 10,2) if IsArray($Pos) Then MouseMove($Pos[0],$Pos[1],0) Else $Pos = PixelSearch($left,$top,$right,$bottem, $Colo3, 10,2) if IsArray($Pos) Then MouseMove($Pos[0],$Pos[1],0) Else EndIf EndIf EndIf EndIf EndIf EndIf EndIf EndIf EndIf EndIf WEnd Func Terminate() Exit 0 EndFunc DllClose($dll)
  6. Hey, Im new to this forums and scripting, my friend gave me a script that searches for a specific color in a game, and when the program is running it laggs the game, anyway to prevent the lag?
×
×
  • Create New...