Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with PixelSearch.
#1
Hello everyone.

I didn't really know in which forum to post this, but my script is more a bot than a hack, so here it is.

Quote:AutoItSetOption ( "MouseCoordMode", 0 ) ; Do not change this parameter! It's needed for windowed D2.
AutoItSetOption ( "PixelCoordMode", 0 ) ; Do not change this parameter! It's needed for windowed D2.

HotKeySet ( "{PGUP}", "PickIt" ) ; Hotkey to activate the main PickIt function
HotKeySet ( "{PGDN}", "Pause" ) ; Hotkey to pause the script
HotKeySet ( "{END}", "Terminate" ) ; Hotkey to terminate the script

While 1 ; This makes the script sleep until you execute one of the declared functions, so it doesn't go nuts Tongue
Sleep ( 100 )
WEnd

Func Pause() ; Pause Function
Sleep ( 100 )
EndFunc

Func PickIt() ; Main PickIt Function. It searchs a pixel in D2 window which has the declared and then performs a left click onto it if the declared color exists.
$PixelSearch = PixelSearch ( 0, 600, 860, 0, 958166, )
If Not @error Then
MouseClick ( "Left", $PixelSearch[0] & "," & $PixelSearch[1], )
EndIf
EndFunc

Func Terminate() ; Terminate function
Exit 0
EndFunc
The idea behind this is a PickIt program. I thought that it should be possible to make the script click onto pixels colored in #958166 (the color which is used for the unique tag in D2). Now, the problem is, that it doesn't do anything. The termination function is the only part which is working at the moment.

I hope that someone could help me out with that.. Tongue
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  have som bot problems momme 3 233 06-15-2012, 03:00 PM
Last Post: comper
  Merc Problems float4life 1 207 03-28-2012, 06:18 PM
Last Post: comper
  Problems with charms pick it script tHende 1 266 03-16-2012, 09:01 AM
Last Post: comper
  Problems running 0wnage 5 394 01-26-2012, 08:54 AM
Last Post: comper
  SnagIT problems TyKe 3 325 01-19-2012, 01:45 AM
Last Post: comper
  Problems with item-logging - Tried useing Skidudes guide... Akao 5 142 01-09-2012, 05:45 AM
Last Post: comper
  D2NT Bot Problems 0wnage 9 507 01-03-2012, 06:45 AM
Last Post: 0wnage
  I am haveing acouple problems with my d2nt bot sbare91 1 480 11-08-2011, 06:53 AM
Last Post: bugme143
  hi im having problems with d2nt sin187 2 334 06-25-2011, 05:50 AM
Last Post: sin187
  2 Problems I need help with! AlloutSkitzo 3 360 03-15-2011, 05:13 AM
Last Post: AlloutSkitzo

Forum Jump:


Users browsing this thread: