Vous êtes sur la page 1sur 22

#Region #NoTrayIcon #endregion Global $ON HotKeySet("{F4}", "Terminate") HotKeySet("{F3}", "ToggleBot") $BEGIN = TimerInit() Global $PAUSED Local $60COUNT

= 0 Local $MOB = 0 Local $MOBC = 0 Local $PMC = 0 Local $RELOG = 0 Global Const $BS_GROUPBOX = 7 Global Const $BS_BOTTOM = 2048 Global Const $BS_CENTER = 768 Global Const $BS_DEFPUSHBUTTON = 1 Global Const $BS_LEFT = 256 Global Const $BS_MULTILINE = 8192 Global Const $BS_PUSHBOX = 10 Global Const $BS_PUSHLIKE = 4096 Global Const $BS_RIGHT = 512 Global Const $BS_RIGHTBUTTON = 32 Global Const $BS_TOP = 1024 Global Const $BS_VCENTER = 3072 Global Const $BS_FLAT = 32768 Global Const $BS_ICON = 64 Global Const $BS_BITMAP = 128 Global Const $BS_NOTIFY = 16384 Global Const $BS_SPLITBUTTON = 12 Global Const $BS_DEFSPLITBUTTON = 13 Global Const $BS_COMMANDLINK = 14 Global Const $BS_DEFCOMMANDLINK = 15 Global Const $BCSIF_GLYPH = 1 Global Const $BCSIF_IMAGE = 2 Global Const $BCSIF_STYLE = 4 Global Const $BCSIF_SIZE = 8 Global Const $BCSS_NOSPLIT = 1 Global Const $BCSS_STRETCH = 2 Global Const $BCSS_ALIGNLEFT = 4 Global Const $BCSS_IMAGE = 8 Global Const $BUTTON_IMAGELIST_ALIGN_LEFT = 0 Global Const $BUTTON_IMAGELIST_ALIGN_RIGHT = 1 Global Const $BUTTON_IMAGELIST_ALIGN_TOP = 2 Global Const $BUTTON_IMAGELIST_ALIGN_BOTTOM = 3 Global Const $BUTTON_IMAGELIST_ALIGN_CENTER = 4 Global Const $BS_3STATE = 5 Global Const $BS_AUTO3STATE = 6 Global Const $BS_AUTOCHECKBOX = 3 Global Const $BS_CHECKBOX = 2 Global Const $BS_RADIOBUTTON = 4 Global Const $BS_AUTORADIOBUTTON = 9 Global Const $BS_OWNERDRAW = 11 Global Const $GUI_SS_DEFAULT_BUTTON = 0 Global Const $GUI_SS_DEFAULT_CHECKBOX = 0 Global Const $GUI_SS_DEFAULT_GROUP = 0 Global Const $GUI_SS_DEFAULT_RADIO = 0 Global Const $BCM_FIRST = 5632 Global Const $BCM_GETIDEALSIZE = ($BCM_FIRST + 1) Global Const $BCM_GETIMAGELIST = ($BCM_FIRST + 3)

Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global

Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const

$BCM_GETNOTE = ($BCM_FIRST + 10) $BCM_GETNOTELENGTH = ($BCM_FIRST + 11) $BCM_GETSPLITINFO = ($BCM_FIRST + 8) $BCM_GETTEXTMARGIN = ($BCM_FIRST + 5) $BCM_SETDROPDOWNSTATE = ($BCM_FIRST + 6) $BCM_SETIMAGELIST = ($BCM_FIRST + 2) $BCM_SETNOTE = ($BCM_FIRST + 9) $BCM_SETSHIELD = ($BCM_FIRST + 12) $BCM_SETSPLITINFO = ($BCM_FIRST + 7) $BCM_SETTEXTMARGIN = ($BCM_FIRST + 4) $BM_CLICK = 245 $BM_GETCHECK = 240 $BM_GETIMAGE = 246 $BM_GETSTATE = 242 $BM_SETCHECK = 241 $BM_SETDONTCLICK = 248 $BM_SETIMAGE = 247 $BM_SETSTATE = 243 $BM_SETSTYLE = 244 $BCN_FIRST = -1250 $BCN_DROPDOWN = ($BCN_FIRST + 2) $BCN_HOTITEMCHANGE = ($BCN_FIRST + 1) $BN_CLICKED = 0 $BN_PAINT = 1 $BN_HILITE = 2 $BN_UNHILITE = 3 $BN_DISABLE = 4 $BN_DOUBLECLICKED = 5 $BN_SETFOCUS = 6 $BN_KILLFOCUS = 7 $BN_PUSHED = $BN_HILITE $BN_UNPUSHED = $BN_UNHILITE $BN_DBLCLK = $BN_DOUBLECLICKED $BST_CHECKED = 1 $BST_INDETERMINATE = 2 $BST_UNCHECKED = 0 $BST_FOCUS = 8 $BST_PUSHED = 4 $BST_DONTCLICK = 128 $CB_ERR = -1 $CB_ERRATTRIBUTE = -3 $CB_ERRREQUIRED = -4 $CB_ERRSPACE = -2 $CB_OKAY = 0 $STATE_SYSTEM_INVISIBLE = 32768 $STATE_SYSTEM_PRESSED = 8 $CBS_AUTOHSCROLL = 64 $CBS_DISABLENOSCROLL = 2048 $CBS_DROPDOWN = 2 $CBS_DROPDOWNLIST = 3 $CBS_HASSTRINGS = 512 $CBS_LOWERCASE = 16384 $CBS_NOINTEGRALHEIGHT = 1024 $CBS_OEMCONVERT = 128 $CBS_OWNERDRAWFIXED = 16 $CBS_OWNERDRAWVARIABLE = 32 $CBS_SIMPLE = 1 $CBS_SORT = 256 $CBS_UPPERCASE = 8192 $CBM_FIRST = 5888

Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global

Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const

$CB_ADDSTRING = 323 $CB_DELETESTRING = 324 $CB_DIR = 325 $CB_FINDSTRING = 332 $CB_FINDSTRINGEXACT = 344 $CB_GETCOMBOBOXINFO = 356 $CB_GETCOUNT = 326 $CB_GETCUEBANNER = ($CBM_FIRST + 4) $CB_GETCURSEL = 327 $CB_GETDROPPEDCONTROLRECT = 338 $CB_GETDROPPEDSTATE = 343 $CB_GETDROPPEDWIDTH = 351 $CB_GETEDITSEL = 320 $CB_GETEXTENDEDUI = 342 $CB_GETHORIZONTALEXTENT = 349 $CB_GETITEMDATA = 336 $CB_GETITEMHEIGHT = 340 $CB_GETLBTEXT = 328 $CB_GETLBTEXTLEN = 329 $CB_GETLOCALE = 346 $CB_GETMINVISIBLE = 5890 $CB_GETTOPINDEX = 347 $CB_INITSTORAGE = 353 $CB_LIMITTEXT = 321 $CB_RESETCONTENT = 331 $CB_INSERTSTRING = 330 $CB_SELECTSTRING = 333 $CB_SETCUEBANNER = ($CBM_FIRST + 3) $CB_SETCURSEL = 334 $CB_SETDROPPEDWIDTH = 352 $CB_SETEDITSEL = 322 $CB_SETEXTENDEDUI = 341 $CB_SETHORIZONTALEXTENT = 350 $CB_SETITEMDATA = 337 $CB_SETITEMHEIGHT = 339 $CB_SETLOCALE = 345 $CB_SETMINVISIBLE = 5889 $CB_SETTOPINDEX = 348 $CB_SHOWDROPDOWN = 335 $CBN_CLOSEUP = 8 $CBN_DBLCLK = 2 $CBN_DROPDOWN = 7 $CBN_EDITCHANGE = 5 $CBN_EDITUPDATE = 6 $CBN_ERRSPACE = (-1) $CBN_KILLFOCUS = 4 $CBN_SELCHANGE = 1 $CBN_SELENDCANCEL = 10 $CBN_SELENDOK = 9 $CBN_SETFOCUS = 3 $CBES_EX_CASESENSITIVE = 16 $CBES_EX_NOEDITIMAGE = 1 $CBES_EX_NOEDITIMAGEINDENT = 2 $CBES_EX_NOSIZELIMIT = 8 $CBES_EX_PATHWORDBREAKPROC = 4 $__COMBOBOXCONSTANT_WM_USER = 1024 $CBEM_DELETEITEM = $CB_DELETESTRING $CBEM_GETCOMBOCONTROL = ($__COMBOBOXCONSTANT_WM_USER + 6) $CBEM_GETEDITCONTROL = ($__COMBOBOXCONSTANT_WM_USER + 7) $CBEM_GETEXSTYLE = ($__COMBOBOXCONSTANT_WM_USER + 9)

Global Const $CBEM_GETEXTENDEDSTYLE = ($__COMBOBOXCONSTANT_WM_USER + 9) Global Const $CBEM_GETIMAGELIST = ($__COMBOBOXCONSTANT_WM_USER + 3) Global Const $CBEM_GETITEMA = ($__COMBOBOXCONSTANT_WM_USER + 4) Global Const $CBEM_GETITEMW = ($__COMBOBOXCONSTANT_WM_USER + 13) Global Const $CBEM_GETUNICODEFORMAT = 8192 + 6 Global Const $CBEM_HASEDITCHANGED = ($__COMBOBOXCONSTANT_WM_USER + 10) Global Const $CBEM_INSERTITEMA = ($__COMBOBOXCONSTANT_WM_USER + 1) Global Const $CBEM_INSERTITEMW = ($__COMBOBOXCONSTANT_WM_USER + 11) Global Const $CBEM_SETEXSTYLE = ($__COMBOBOXCONSTANT_WM_USER + 8) Global Const $CBEM_SETEXTENDEDSTYLE = ($__COMBOBOXCONSTANT_WM_USER + 14) Global Const $CBEM_SETIMAGELIST = ($__COMBOBOXCONSTANT_WM_USER + 2) Global Const $CBEM_SETITEMA = ($__COMBOBOXCONSTANT_WM_USER + 5) Global Const $CBEM_SETITEMW = ($__COMBOBOXCONSTANT_WM_USER + 12) Global Const $CBEM_SETUNICODEFORMAT = 8192 + 5 Global Const $CBEM_SETWINDOWTHEME = 8192 + 11 Global Const $CBEN_FIRST = (-800) Global Const $CBEN_LAST = (-830) Global Const $CBEN_BEGINEDIT = ($CBEN_FIRST - 4) Global Const $CBEN_DELETEITEM = ($CBEN_FIRST - 2) Global Const $CBEN_DRAGBEGINA = ($CBEN_FIRST - 8) Global Const $CBEN_DRAGBEGINW = ($CBEN_FIRST - 9) Global Const $CBEN_ENDEDITA = ($CBEN_FIRST - 5) Global Const $CBEN_ENDEDITW = ($CBEN_FIRST - 6) Global Const $CBEN_GETDISPINFO = ($CBEN_FIRST - 0) Global Const $CBEN_GETDISPINFOA = ($CBEN_FIRST - 0) Global Const $CBEN_GETDISPINFOW = ($CBEN_FIRST - 7) Global Const $CBEN_INSERTITEM = ($CBEN_FIRST - 1) Global Const $CBEIF_DI_SETITEM = 268435456 Global Const $CBEIF_IMAGE = 2 Global Const $CBEIF_INDENT = 16 Global Const $CBEIF_LPARAM = 32 Global Const $CBEIF_OVERLAY = 8 Global Const $CBEIF_SELECTEDIMAGE = 4 Global Const $CBEIF_TEXT = 1 Global Const $__COMBOBOXCONSTANT_WS_VSCROLL = 2097152 Global Const $GUI_SS_DEFAULT_COMBO = BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL, $__C OMBOBOXCONSTANT_WS_VSCROLL) Global Const $GUI_EVENT_CLOSE = -3 Global Const $GUI_EVENT_MINIMIZE = -4 Global Const $GUI_EVENT_RESTORE = -5 Global Const $GUI_EVENT_MAXIMIZE = -6 Global Const $GUI_EVENT_PRIMARYDOWN = -7 Global Const $GUI_EVENT_PRIMARYUP = -8 Global Const $GUI_EVENT_SECONDARYDOWN = -9 Global Const $GUI_EVENT_SECONDARYUP = -10 Global Const $GUI_EVENT_MOUSEMOVE = -11 Global Const $GUI_EVENT_RESIZED = -12 Global Const $GUI_EVENT_DROPPED = -13 Global Const $GUI_RUNDEFMSG = "GUI_RUNDEFMSG" Global Const $GUI_AVISTOP = 0 Global Const $GUI_AVISTART = 1 Global Const $GUI_AVICLOSE = 2 Global Const $GUI_CHECKED = 1 Global Const $GUI_INDETERMINATE = 2 Global Const $GUI_UNCHECKED = 4 Global Const $GUI_DROPACCEPTED = 8 Global Const $GUI_NODROPACCEPTED = 4096 Global Const $GUI_ACCEPTFILES = $GUI_DROPACCEPTED Global Const $GUI_SHOW = 16 Global Const $GUI_HIDE = 32

Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global

Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const

$GUI_ENABLE = 64 $GUI_DISABLE = 128 $GUI_FOCUS = 256 $GUI_NOFOCUS = 8192 $GUI_DEFBUTTON = 512 $GUI_EXPAND = 1024 $GUI_ONTOP = 2048 $GUI_FONTITALIC = 2 $GUI_FONTUNDER = 4 $GUI_FONTSTRIKE = 8 $GUI_DOCKAUTO = 1 $GUI_DOCKLEFT = 2 $GUI_DOCKRIGHT = 4 $GUI_DOCKHCENTER = 8 $GUI_DOCKTOP = 32 $GUI_DOCKBOTTOM = 64 $GUI_DOCKVCENTER = 128 $GUI_DOCKWIDTH = 256 $GUI_DOCKHEIGHT = 512 $GUI_DOCKSIZE = 768 $GUI_DOCKMENUBAR = 544 $GUI_DOCKSTATEBAR = 576 $GUI_DOCKALL = 802 $GUI_DOCKBORDERS = 102 $GUI_GR_CLOSE = 1 $GUI_GR_LINE = 2 $GUI_GR_BEZIER = 4 $GUI_GR_MOVE = 6 $GUI_GR_COLOR = 8 $GUI_GR_RECT = 10 $GUI_GR_ELLIPSE = 12 $GUI_GR_PIE = 14 $GUI_GR_DOT = 16 $GUI_GR_PIXEL = 18 $GUI_GR_HINT = 20 $GUI_GR_REFRESH = 22 $GUI_GR_PENSIZE = 24 $GUI_GR_NOBKCOLOR = -2 $GUI_BKCOLOR_DEFAULT = -1 $GUI_BKCOLOR_TRANSPARENT = -2 $GUI_BKCOLOR_LV_ALTERNATE = -33554432 $GUI_WS_EX_PARENTDRAG = 1048576 $SS_LEFT = 0 $SS_CENTER = 1 $SS_RIGHT = 2 $SS_ICON = 3 $SS_BLACKRECT = 4 $SS_GRAYRECT = 5 $SS_WHITERECT = 6 $SS_BLACKFRAME = 7 $SS_GRAYFRAME = 8 $SS_WHITEFRAME = 9 $SS_SIMPLE = 11 $SS_LEFTNOWORDWRAP = 12 $SS_BITMAP = 14 $SS_ETCHEDHORZ = 16 $SS_ETCHEDVERT = 17 $SS_ETCHEDFRAME = 18 $SS_NOPREFIX = 128 $SS_NOTIFY = 256

Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global

Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const

$SS_CENTERIMAGE = 512 $SS_RIGHTJUST = 1024 $SS_SUNKEN = 4096 $GUI_SS_DEFAULT_LABEL = 0 $GUI_SS_DEFAULT_GRAPHIC = 0 $GUI_SS_DEFAULT_ICON = $SS_NOTIFY $GUI_SS_DEFAULT_PIC = $SS_NOTIFY $WS_TILED = 0 $WS_OVERLAPPED = 0 $WS_MAXIMIZEBOX = 65536 $WS_MINIMIZEBOX = 131072 $WS_TABSTOP = 65536 $WS_GROUP = 131072 $WS_SIZEBOX = 262144 $WS_THICKFRAME = 262144 $WS_SYSMENU = 524288 $WS_HSCROLL = 1048576 $WS_VSCROLL = 2097152 $WS_DLGFRAME = 4194304 $WS_BORDER = 8388608 $WS_CAPTION = 12582912 $WS_OVERLAPPEDWINDOW = 13565952 $WS_TILEDWINDOW = 13565952 $WS_MAXIMIZE = 16777216 $WS_CLIPCHILDREN = 33554432 $WS_CLIPSIBLINGS = 67108864 $WS_DISABLED = 134217728 $WS_VISIBLE = 268435456 $WS_MINIMIZE = 536870912 $WS_CHILD = 1073741824 $WS_POPUP = -2147483648 $WS_POPUPWINDOW = -2138570752 $DS_MODALFRAME = 128 $DS_SETFOREGROUND = 512 $DS_CONTEXTHELP = 8192 $WS_EX_ACCEPTFILES = 16 $WS_EX_MDICHILD = 64 $WS_EX_APPWINDOW = 262144 $WS_EX_COMPOSITED = 33554432 $WS_EX_CLIENTEDGE = 512 $WS_EX_CONTEXTHELP = 1024 $WS_EX_DLGMODALFRAME = 1 $WS_EX_LEFTSCROLLBAR = 16384 $WS_EX_OVERLAPPEDWINDOW = 768 $WS_EX_RIGHT = 4096 $WS_EX_STATICEDGE = 131072 $WS_EX_TOOLWINDOW = 128 $WS_EX_TOPMOST = 8 $WS_EX_TRANSPARENT = 32 $WS_EX_WINDOWEDGE = 256 $WS_EX_LAYERED = 524288 $WS_EX_CONTROLPARENT = 65536 $WS_EX_LAYOUTRTL = 4194304 $WS_EX_RTLREADING = 8192 $WM_GETTEXTLENGTH = 14 $WM_GETTEXT = 13 $WM_SIZE = 5 $WM_SIZING = 532 $WM_USER = 1024 $WM_CREATE = 1

Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global

Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const

$WM_DESTROY = 2 $WM_MOVE = 3 $WM_ACTIVATE = 6 $WM_SETFOCUS = 7 $WM_KILLFOCUS = 8 $WM_ENABLE = 10 $WM_SETREDRAW = 11 $WM_SETTEXT = 12 $WM_PAINT = 15 $WM_CLOSE = 16 $WM_QUIT = 18 $WM_ERASEBKGND = 20 $WM_SYSCOLORCHANGE = 21 $WM_SHOWWINDOW = 24 $WM_WININICHANGE = 26 $WM_DEVMODECHANGE = 27 $WM_ACTIVATEAPP = 28 $WM_FONTCHANGE = 29 $WM_TIMECHANGE = 30 $WM_CANCELMODE = 31 $WM_SETCURSOR = 32 $WM_MOUSEACTIVATE = 33 $WM_CHILDACTIVATE = 34 $WM_QUEUESYNC = 35 $WM_GETMINMAXINFO = 36 $WM_PAINTICON = 38 $WM_ICONERASEBKGND = 39 $WM_NEXTDLGCTL = 40 $WM_SPOOLERSTATUS = 42 $WM_DRAWITEM = 43 $WM_MEASUREITEM = 44 $WM_DELETEITEM = 45 $WM_VKEYTOITEM = 46 $WM_CHARTOITEM = 47 $WM_SETFONT = 48 $WM_GETFONT = 49 $WM_SETHOTKEY = 50 $WM_GETHOTKEY = 51 $WM_QUERYDRAGICON = 55 $WM_COMPAREITEM = 57 $WM_GETOBJECT = 61 $WM_COMPACTING = 65 $WM_COMMNOTIFY = 68 $WM_WINDOWPOSCHANGING = 70 $WM_WINDOWPOSCHANGED = 71 $WM_POWER = 72 $WM_NOTIFY = 78 $WM_COPYDATA = 74 $WM_CANCELJOURNAL = 75 $WM_INPUTLANGCHANGEREQUEST = 80 $WM_INPUTLANGCHANGE = 81 $WM_TCARD = 82 $WM_HELP = 83 $WM_USERCHANGED = 84 $WM_NOTIFYFORMAT = 85 $WM_CUT = 768 $WM_COPY = 769 $WM_PASTE = 770 $WM_CLEAR = 771 $WM_UNDO = 772

Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global

Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const

$WM_CONTEXTMENU = 123 $WM_STYLECHANGING = 124 $WM_STYLECHANGED = 125 $WM_DISPLAYCHANGE = 126 $WM_GETICON = 127 $WM_SETICON = 128 $WM_NCCREATE = 129 $WM_NCDESTROY = 130 $WM_NCCALCSIZE = 131 $WM_NCHITTEST = 132 $WM_NCPAINT = 133 $WM_NCACTIVATE = 134 $WM_GETDLGCODE = 135 $WM_SYNCPAINT = 136 $WM_NCMOUSEMOVE = 160 $WM_NCLBUTTONDOWN = 161 $WM_NCLBUTTONUP = 162 $WM_NCLBUTTONDBLCLK = 163 $WM_NCRBUTTONDOWN = 164 $WM_NCRBUTTONUP = 165 $WM_NCRBUTTONDBLCLK = 166 $WM_NCMBUTTONDOWN = 167 $WM_NCMBUTTONUP = 168 $WM_NCMBUTTONDBLCLK = 169 $WM_KEYDOWN = 256 $WM_KEYUP = 257 $WM_CHAR = 258 $WM_DEADCHAR = 259 $WM_SYSKEYDOWN = 260 $WM_SYSKEYUP = 261 $WM_SYSCHAR = 262 $WM_SYSDEADCHAR = 263 $WM_INITDIALOG = 272 $WM_COMMAND = 273 $WM_SYSCOMMAND = 274 $WM_TIMER = 275 $WM_HSCROLL = 276 $WM_VSCROLL = 277 $WM_INITMENU = 278 $WM_INITMENUPOPUP = 279 $WM_MENUSELECT = 287 $WM_MENUCHAR = 288 $WM_ENTERIDLE = 289 $WM_MENURBUTTONUP = 290 $WM_MENUDRAG = 291 $WM_MENUGETOBJECT = 292 $WM_UNINITMENUPOPUP = 293 $WM_MENUCOMMAND = 294 $WM_CHANGEUISTATE = 295 $WM_UPDATEUISTATE = 296 $WM_QUERYUISTATE = 297 $WM_CTLCOLORMSGBOX = 306 $WM_CTLCOLOREDIT = 307 $WM_CTLCOLORLISTBOX = 308 $WM_CTLCOLORBTN = 309 $WM_CTLCOLORDLG = 310 $WM_CTLCOLORSCROLLBAR = 311 $WM_CTLCOLORSTATIC = 312 $WM_CTLCOLOR = 25 $MN_GETHMENU = 481

Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global

Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const

$NM_FIRST = 0 $NM_OUTOFMEMORY = $NM_FIRST - 1 $NM_CLICK = $NM_FIRST - 2 $NM_DBLCLK = $NM_FIRST - 3 $NM_RETURN = $NM_FIRST - 4 $NM_RCLICK = $NM_FIRST - 5 $NM_RDBLCLK = $NM_FIRST - 6 $NM_SETFOCUS = $NM_FIRST - 7 $NM_KILLFOCUS = $NM_FIRST - 8 $NM_CUSTOMDRAW = $NM_FIRST - 12 $NM_HOVER = $NM_FIRST - 13 $NM_NCHITTEST = $NM_FIRST - 14 $NM_KEYDOWN = $NM_FIRST - 15 $NM_RELEASEDCAPTURE = $NM_FIRST - 16 $NM_SETCURSOR = $NM_FIRST - 17 $NM_CHAR = $NM_FIRST - 18 $NM_TOOLTIPSCREATED = $NM_FIRST - 19 $NM_LDOWN = $NM_FIRST - 20 $NM_RDOWN = $NM_FIRST - 21 $NM_THEMECHANGED = $NM_FIRST - 22 $WM_MOUSEMOVE = 512 $WM_LBUTTONDOWN = 513 $WM_LBUTTONUP = 514 $WM_LBUTTONDBLCLK = 515 $WM_RBUTTONDOWN = 516 $WM_RBUTTONUP = 517 $WM_RBUTTONDBLCK = 518 $WM_MBUTTONDOWN = 519 $WM_MBUTTONUP = 520 $WM_MBUTTONDBLCK = 521 $WM_MOUSEWHEEL = 522 $WM_XBUTTONDOWN = 523 $WM_XBUTTONUP = 524 $WM_XBUTTONDBLCLK = 525 $WM_MOUSEHWHEEL = 526 $PS_SOLID = 0 $PS_DASH = 1 $PS_DOT = 2 $PS_DASHDOT = 3 $PS_DASHDOTDOT = 4 $PS_NULL = 5 $PS_INSIDEFRAME = 6 $LWA_ALPHA = 2 $LWA_COLORKEY = 1 $RGN_AND = 1 $RGN_OR = 2 $RGN_XOR = 3 $RGN_DIFF = 4 $RGN_COPY = 5 $ERRORREGION = 0 $NULLREGION = 1 $SIMPLEREGION = 2 $COMPLEXREGION = 3 $TRANSPARENT = 1 $OPAQUE = 2 $CCM_FIRST = 8192 $CCM_GETUNICODEFORMAT = ($CCM_FIRST + 6) $CCM_SETUNICODEFORMAT = ($CCM_FIRST + 5) $CCM_SETBKCOLOR = $CCM_FIRST + 1 $CCM_SETCOLORSCHEME = $CCM_FIRST + 2

Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global

Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const

$CCM_GETCOLORSCHEME = $CCM_FIRST + 3 $CCM_GETDROPTARGET = $CCM_FIRST + 4 $CCM_SETWINDOWTHEME = $CCM_FIRST + 11 $GA_PARENT = 1 $GA_ROOT = 2 $GA_ROOTOWNER = 3 $SM_CXSCREEN = 0 $SM_CYSCREEN = 1 $SM_CXVSCROLL = 2 $SM_CYHSCROLL = 3 $SM_CYCAPTION = 4 $SM_CXBORDER = 5 $SM_CYBORDER = 6 $SM_CXDLGFRAME = 7 $SM_CYDLGFRAME = 8 $SM_CYVTHUMB = 9 $SM_CXHTHUMB = 10 $SM_CXICON = 11 $SM_CYICON = 12 $SM_CXCURSOR = 13 $SM_CYCURSOR = 14 $SM_CYMENU = 15 $SM_CXFULLSCREEN = 16 $SM_CYFULLSCREEN = 17 $SM_CYKANJIWINDOW = 18 $SM_MOUSEPRESENT = 19 $SM_CYVSCROLL = 20 $SM_CXHSCROLL = 21 $SM_DEBUG = 22 $SM_SWAPBUTTON = 23 $SM_RESERVED1 = 24 $SM_RESERVED2 = 25 $SM_RESERVED3 = 26 $SM_RESERVED4 = 27 $SM_CXMIN = 28 $SM_CYMIN = 29 $SM_CXSIZE = 30 $SM_CYSIZE = 31 $SM_CXFRAME = 32 $SM_CYFRAME = 33 $SM_CXMINTRACK = 34 $SM_CYMINTRACK = 35 $SM_CXDOUBLECLK = 36 $SM_CYDOUBLECLK = 37 $SM_CXICONSPACING = 38 $SM_CYICONSPACING = 39 $SM_MENUDROPALIGNMENT = 40 $SM_PENWINDOWS = 41 $SM_DBCSENABLED = 42 $SM_CMOUSEBUTTONS = 43 $SM_SECURE = 44 $SM_CXEDGE = 45 $SM_CYEDGE = 46 $SM_CXMINSPACING = 47 $SM_CYMINSPACING = 48 $SM_CXSMICON = 49 $SM_CYSMICON = 50 $SM_CYSMCAPTION = 51 $SM_CXSMSIZE = 52 $SM_CYSMSIZE = 53

Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global

Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const

$SM_CXMENUSIZE = 54 $SM_CYMENUSIZE = 55 $SM_ARRANGE = 56 $SM_CXMINIMIZED = 57 $SM_CYMINIMIZED = 58 $SM_CXMAXTRACK = 59 $SM_CYMAXTRACK = 60 $SM_CXMAXIMIZED = 61 $SM_CYMAXIMIZED = 62 $SM_NETWORK = 63 $SM_CLEANBOOT = 67 $SM_CXDRAG = 68 $SM_CYDRAG = 69 $SM_SHOWSOUNDS = 70 $SM_CXMENUCHECK = 71 $SM_CYMENUCHECK = 72 $SM_SLOWMACHINE = 73 $SM_MIDEASTENABLED = 74 $SM_MOUSEWHEELPRESENT = 75 $SM_XVIRTUALSCREEN = 76 $SM_YVIRTUALSCREEN = 77 $SM_CXVIRTUALSCREEN = 78 $SM_CYVIRTUALSCREEN = 79 $SM_CMONITORS = 80 $SM_SAMEDISPLAYFORMAT = 81 $SM_IMMENABLED = 82 $SM_CXFOCUSBORDER = 83 $SM_CYFOCUSBORDER = 84 $SM_TABLETPC = 86 $SM_MEDIACENTER = 87 $SM_STARTER = 88 $SM_SERVERR2 = 89 $SM_CMETRICS = 90 $SM_REMOTESESSION = 4096 $SM_SHUTTINGDOWN = 8192 $SM_REMOTECONTROL = 8193 $SM_CARETBLINKINGENABLED = 8194 $BLACKNESS = 66 $CAPTUREBLT = 1073741824 $DSTINVERT = 5570569 $MERGECOPY = 12583114 $MERGEPAINT = 12255782 $NOMIRRORBITMAP = -2147483648 $NOTSRCCOPY = 3342344 $NOTSRCERASE = 1114278 $PATCOPY = 15728673 $PATINVERT = 5898313 $PATPAINT = 16452105 $SRCAND = 8913094 $SRCCOPY = 13369376 $SRCERASE = 4457256 $SRCINVERT = 6684742 $SRCPAINT = 15597702 $WHITENESS = 16711778 $DT_BOTTOM = 8 $DT_CALCRECT = 1024 $DT_CENTER = 1 $DT_EDITCONTROL = 8192 $DT_END_ELLIPSIS = 32768 $DT_EXPANDTABS = 64

Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global

Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const

$DT_EXTERNALLEADING = 512 $DT_HIDEPREFIX = 1048576 $DT_INTERNAL = 4096 $DT_LEFT = 0 $DT_MODIFYSTRING = 65536 $DT_NOCLIP = 256 $DT_NOFULLWIDTHCHARBREAK = 524288 $DT_NOPREFIX = 2048 $DT_PATH_ELLIPSIS = 16384 $DT_PREFIXONLY = 2097152 $DT_RIGHT = 2 $DT_RTLREADING = 131072 $DT_SINGLELINE = 32 $DT_TABSTOP = 128 $DT_TOP = 0 $DT_VCENTER = 4 $DT_WORDBREAK = 16 $DT_WORD_ELLIPSIS = 262144 $RDW_ERASE = 4 $RDW_FRAME = 1024 $RDW_INTERNALPAINT = 2 $RDW_INVALIDATE = 1 $RDW_NOERASE = 32 $RDW_NOFRAME = 2048 $RDW_NOINTERNALPAINT = 16 $RDW_VALIDATE = 8 $RDW_ERASENOW = 512 $RDW_UPDATENOW = 256 $RDW_ALLCHILDREN = 128 $RDW_NOCHILDREN = 64 $WM_RENDERFORMAT = 773 $WM_RENDERALLFORMATS = 774 $WM_DESTROYCLIPBOARD = 775 $WM_DRAWCLIPBOARD = 776 $WM_PAINTCLIPBOARD = 777 $WM_VSCROLLCLIPBOARD = 778 $WM_SIZECLIPBOARD = 779 $WM_ASKCBFORMATNAME = 780 $WM_CHANGECBCHAIN = 781 $WM_HSCROLLCLIPBOARD = 782 $HTERROR = -2 $HTTRANSPARENT = -1 $HTNOWHERE = 0 $HTCLIENT = 1 $HTCAPTION = 2 $HTSYSMENU = 3 $HTGROWBOX = 4 $HTSIZE = $HTGROWBOX $HTMENU = 5 $HTHSCROLL = 6 $HTVSCROLL = 7 $HTMINBUTTON = 8 $HTMAXBUTTON = 9 $HTLEFT = 10 $HTRIGHT = 11 $HTTOP = 12 $HTTOPLEFT = 13 $HTTOPRIGHT = 14 $HTBOTTOM = 15 $HTBOTTOMLEFT = 16

Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global Global

Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const Const

$HTBOTTOMRIGHT = 17 $HTBORDER = 18 $HTREDUCE = $HTMINBUTTON $HTZOOM = $HTMAXBUTTON $HTSIZEFIRST = $HTLEFT $HTSIZELAST = $HTBOTTOMRIGHT $HTOBJECT = 19 $HTCLOSE = 20 $HTHELP = 21 $COLOR_SCROLLBAR = 0 $COLOR_BACKGROUND = 1 $COLOR_ACTIVECAPTION = 2 $COLOR_INACTIVECAPTION = 3 $COLOR_MENU = 4 $COLOR_WINDOW = 5 $COLOR_WINDOWFRAME = 6 $COLOR_MENUTEXT = 7 $COLOR_WINDOWTEXT = 8 $COLOR_CAPTIONTEXT = 9 $COLOR_ACTIVEBORDER = 10 $COLOR_INACTIVEBORDER = 11 $COLOR_APPWORKSPACE = 12 $COLOR_HIGHLIGHT = 13 $COLOR_HIGHLIGHTTEXT = 14 $COLOR_BTNFACE = 15 $COLOR_BTNSHADOW = 16 $COLOR_GRAYTEXT = 17 $COLOR_BTNTEXT = 18 $COLOR_INACTIVECAPTIONTEXT = 19 $COLOR_BTNHIGHLIGHT = 20 $COLOR_3DDKSHADOW = 21 $COLOR_3DLIGHT = 22 $COLOR_INFOTEXT = 23 $COLOR_INFOBK = 24 $COLOR_HOTLIGHT = 26 $COLOR_GRADIENTACTIVECAPTION = 27 $COLOR_GRADIENTINACTIVECAPTION = 28 $COLOR_MENUHILIGHT = 29 $COLOR_MENUBAR = 30 $COLOR_DESKTOP = 1 $COLOR_3DFACE = 15 $COLOR_3DSHADOW = 16 $COLOR_3DHIGHLIGHT = 20 $COLOR_3DHILIGHT = 20 $COLOR_BTNHILIGHT = 20 $HINST_COMMCTRL = -1 $IDB_STD_SMALL_COLOR = 0 $IDB_STD_LARGE_COLOR = 1 $IDB_VIEW_SMALL_COLOR = 4 $IDB_VIEW_LARGE_COLOR = 5 $IDB_HIST_SMALL_COLOR = 8 $IDB_HIST_LARGE_COLOR = 9 $STARTF_FORCEOFFFEEDBACK = 128 $STARTF_FORCEONFEEDBACK = 64 $STARTF_RUNFULLSCREEN = 32 $STARTF_USECOUNTCHARS = 8 $STARTF_USEFILLATTRIBUTE = 16 $STARTF_USEHOTKEY = 512 $STARTF_USEPOSITION = 4 $STARTF_USESHOWWINDOW = 1

Global Const $STARTF_USESIZE = 2 Global Const $STARTF_USESTDHANDLES = 256 Global Const $CDDS_PREPAINT = 1 Global Const $CDDS_POSTPAINT = 2 Global Const $CDDS_PREERASE = 3 Global Const $CDDS_POSTERASE = 4 Global Const $CDDS_ITEM = 65536 Global Const $CDDS_ITEMPREPAINT = 65537 Global Const $CDDS_ITEMPOSTPAINT = 65538 Global Const $CDDS_ITEMPREERASE = 65539 Global Const $CDDS_ITEMPOSTERASE = 65540 Global Const $CDDS_SUBITEM = 131072 Global Const $CDIS_SELECTED = 1 Global Const $CDIS_GRAYED = 2 Global Const $CDIS_DISABLED = 4 Global Const $CDIS_CHECKED = 8 Global Const $CDIS_FOCUS = 16 Global Const $CDIS_DEFAULT = 32 Global Const $CDIS_HOT = 64 Global Const $CDIS_MARKED = 128 Global Const $CDIS_INDETERMINATE = 256 Global Const $CDIS_SHOWKEYBOARDCUES = 512 Global Const $CDIS_NEARHOT = 1024 Global Const $CDIS_OTHERSIDEHOT = 2048 Global Const $CDIS_DROPHILITED = 4096 Global Const $CDRF_DODEFAULT = 0 Global Const $CDRF_NEWFONT = 2 Global Const $CDRF_SKIPDEFAULT = 4 Global Const $CDRF_NOTIFYPOSTPAINT = 16 Global Const $CDRF_NOTIFYITEMDRAW = 32 Global Const $CDRF_NOTIFYSUBITEMDRAW = 32 Global Const $CDRF_NOTIFYPOSTERASE = 64 Global Const $CDRF_DOERASE = 8 Global Const $CDRF_SKIPPOSTPAINT = 256 Global Const $GUI_SS_DEFAULT_GUI = BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP , $WS_SYSMENU) #region $FORM1_1 = GUICreate("PWO Bot", 219, 103, 192, 124) $BUTTON1 = GUICtrlCreateButton("Start", 16, 64, 49, 25) $BUTTON2 = GUICtrlCreateButton("Help", 80, 64, 57, 25) $BUTTON3 = GUICtrlCreateButton("Exit", 152, 64, 49, 25) $COMBO1 = GUICtrlCreateCombo("", 72, 8, 121, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOH SCROLL)) GUICtrlSetData(-1, "Run 1st Skill 2nd Skill 3rd Skill 4th Skill") $SKILL = GUICtrlCreateLabel("Skill:", 40, 8, 26, 17) $COMBO2 = GUICtrlCreateCombo("", 72, 32, 121, 25, BitOR($CBS_DROPDOWN, $CBS_AUTO HSCROLL)) GUICtrlSetData(-1, "Fishing Up and Down Left and Right Random") $MOVEMENT = GUICtrlCreateLabel("Movement:", 16, 32, 57, 17) GUISetState(@SW_SHOW) #endregion While 1 $NMSG = GUIGetMsg() Switch $NMSG Case $GUI_EVENT_CLOSE Exit Case $FORM1_1 Case $FORM1_1 Case $FORM1_1 Case $FORM1_1

Case $BUTTON1 ToolTip("Loading PWO Bot", "", "", "PWOBot") MsgBox(0, "PWOBot", "Starting bot..") BOT() Case $BUTTON2 MsgBox(0, "PWOBot", "Read the Readme" Case $BUTTON3 TERMINATE() Exit Case $COMBO1 $ST = GUICtrlRead($COMBO1, 1) Case $SKILL Case $COMBO2 $MT = GUICtrlRead($COMBO2, 1) Case $MOVEMENT EndSwitch WEnd Func TOGGLEBOT() $ON = Not $ON While $ON Sleep(100) BOT() WEnd EndFunc While 1 Sleep(1000) WEnd Func BOT() While 1 $LOGIN = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 144427 0) If @error = 0 Then LOGIN() EndIf $LOGERROR = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 473 128) If @error = 0 Then LOGIN() EndIf WELCOME() PM() CHAT() CHECK() CHAT() PM() AUTOTALK() WEnd EndFunc Func LOGIN() $LOGIN = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 1444270) If @error = 0 Then ToolTip("Logging In", "", "", "PWOBot") MouseMove($LOGIN[0] + 5, $LOGIN[1] + 2, 2) MouseDown("Left") Sleep(100)

MouseUp("Left") $LOGERROR = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 473 128) If @error = 0 Then MouseMove($LOGERROR[0] + 5, $LOGERROR[1] + 2, 2) MouseDown("Left") Sleep(100) MouseUp("Left") EndIf Sleep(5000) EndIf EndFunc Func PM() $PM = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 2072645) If @error = 0 Then ToolTip("Closing PM", "", "", "PWOBot") $PMC = 1 + $PMC MouseMove($PM[0] + 5, $PM[1] + 5, 2) Sleep(100) MouseDown("Left") Sleep(100) MouseUp("Left") Sleep(500) EndIf EndFunc Func WELCOME() $WELCOME = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 15539236) If @error = 0 Then ToolTip("Closing Welcome", "", "", "PWOBot") $XBUT = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 1572164 8) MouseMove($XBUT[0] + 5, $XBUT[1] + 5, 2) MouseDown("Left") Sleep(100) MouseUp("Left") EndIf EndFunc Func CHAT() $CHAT = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 32694) If @error = 0 Then ToolTip("Closing Chats", "", "", "PWOBot") MouseMove($CHAT[0] + 5, $CHAT[1] + 5, 2) Sleep(500) MouseDown("Left") Sleep(100) MouseUp("Left") $YNB = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 8905569) If @error = 0 Then MouseMove($YNB[0] + 2, $YNB[1] + 3, 2) Sleep(500) MouseDown("Left") Sleep(100) MouseUp("Left") Sleep(500)

EndIf EndIf EndFunc Func CHECK() $BATTLE = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 6747135) If @error = 1 Then $DIF = TimerDiff($BEGIN) $COUNT = Int($DIF / 1000) $60COUNT = Int($COUNT / 60) Global $HOUR = Int($60COUNT / 60) ToolTip("PWOBotv2.0 Stats:" & @CRLF & "Pokemon Encounters: " & $ MOB & @CRLF & "Pokeballs Used: " & $MOBC & @CRLF & "Private Messages: " & $PMC & @CRLF & "Time Running: " & @CRLF & $HOUR & " Hours" & @CRLF & $60COUNT & " Minu tes" & @CRLF & "Relogin Attempts: " & $RELOG, 0, 0) MOVE() ElseIf @error = 0 Then ToolTip("Checking Encounter", "", "", "PWOBot") MOBCHECK() EndIf EndFunc Func MOVE() $MT = GUICtrlRead($COMBO2, 1) If $MT = "Fishing" Then $BAGPBT = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 16773 632) If @error = 1 Then ToolTip("Clicking Bag", "", "", "PWOBot") MouseMove($BAGPBT[0] + 5, $BAGPBT[1] + 2, 2) MouseDown("Left") Sleep(100) MouseUp("Left") ElseIf @error = 0 Then ToolTip("Clicking Rod", "", "", "PWOBot")) $ROD = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 8912917) If @error = 1 Then MsgBox(0, "Error", "Make sure your rod is visabl e") Exit EndIf MouseMove($ROD[0] + 5, $ROD[1] + 2, 2) MouseDown("Left") Sleep(100) MouseUp("Left") Sleep(1000) EndIf EndIf If $MT = "Up and Down" Then Send("{UP down}") Sleep(500) Send("{UP up}") Send("{DOWN down}") Sleep(500) Send("{DOWN up}") EndIf If $MT = "Left and Right" Then

Send("{LEFT down}") Sleep(500) Send("{LEFT up}") Send("{RIGHT down}") Sleep(500) Send("{RIGHT up}") EndIf If $MT = "Random" Then $LOWERLIMIT = 1 $UPPERLIMIT = 4 $WALK = Random($LOWERLIMIT, $UPPERLIMIT, 1) If $WALK = 1 Then Send("{LEFT}") Sleep(100) ElseIf $WALK = 2 Then Send("{RIGHT}") Sleep(100) ElseIf $WALK = 3 Then Send("{DOWN}") Sleep(100) ElseIf $WALK = 4 Then Send("{UP}") Sleep(100) EndIf EndIf EndFunc Func MOBCHECK() ToolTip("Checking Encounter", "", "", "PWOBot") MOBCOUNT() $CATCH = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 16744231) If @error = 0 Then ToolTip("Catching Pokemon", "", "", "PWOBot") CHECK2() $MOBC = 1 + $MOBC MOBCATCH() ElseIf @error = 1 Then ToolTip("Fighting Pokemon", "", "", "PWOBot") CHECK2() MOBFIGHT() EndIf EndFunc Func MOBFIGHT() $BATTLE = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 6747135) If @error = 0 Then If $ST = "Run" Then $RUNBT = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight , 7377598) MouseMove($RUNBT[0] + 15, $RUNBT[1] + 2, 2) MouseDown("left") Sleep(100) MouseUp("Left") Sleep(500) EndIf $FIGHTBT = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 1675 6425) If @error = 0 Then

MouseMove($FIGHTBT[0] + 5, $FIGHTBT[1] + 2, 2) Sleep(500) CHECK2() MouseDown("left") Sleep(100) MouseUp("left") Sleep(500) CHECK2() SKILL() Else CHECK2() EndIf ElseIf @error = 1 Then BOT() EndIf EndFunc Func SKILL() ToolTip("Selecting Skill", "", "", "PWOBot") CHECK2() $BATTLE = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 6747135) If @error = 1 Then BOT() EndIf $ST = GUICtrlRead($COMBO1, 1) $CHECK1 = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 9272434) $M = @error If $M = 1 Then Sleep(100) CHECK2() MOBFIGHT() EndIf If $ST = "1st Skill" Then $SKILLS = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 92724 34) If @error = 0 Then MouseMove($SKILLS[0] + 10, $SKILLS[1] + 20, 2) Sleep(500) CHECK2() MouseDown("left") Sleep(100) MouseUp("left") Sleep(500) CHECK2() Else CHECK2() EndIf EndIf If $ST = "2nd Skill" Then $SKILLS = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 92724 34) If @error = 0 Then MouseMove($SKILLS[0] + 10, $SKILLS[1] + 35, 2) Sleep(500) CHECK2() MouseDown("left") Sleep(100) MouseUp("left") Sleep(500)

CHECK2() Else CHECK2() EndIf EndIf If $ST = "3rd Skill" Then $SKILLS = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 92724 34) If @error = 0 Then MouseMove($SKILLS[0] + 10, $SKILLS[1] + 53, 2) Sleep(500) CHECK2() MouseDown("left") Sleep(100) MouseUp("left") Sleep(500) CHECK2() Else CHECK2() EndIf EndIf If $ST = "4th Skill" Then $SKILLS = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 92724 34) MouseMove($SKILLS[0] + 10, $SKILLS[1] + 68, 2) If @error = 0 Then Sleep(500) CHECK2() MouseDown("left") Sleep(100) MouseUp("left") Sleep(500) CHECK2() Else CHECK2() EndIf EndIf EndFunc Func MOBCATCH() ToolTip("Catching Pokemon", "", "", "PWOBot") $CATCH = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 16744231) $T = @error If $T = 0 Then Sleep(100) $BAGBT = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 974436 7) MouseMove($BAGBT[0] + 5, $BAGBT[1] + 5, 1) Sleep(1000) CHECK2() MouseDown("left") Sleep(100) MouseUp("left") Sleep(1000) $SKILLS = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 92724 34) If @error = 0 Then MouseMove($SKILLS[0] + 10, $SKILLS[1] + 20, 2) Sleep(1000)

CHECK2() MouseDown("left") Sleep(100) MouseUp("left") Sleep(1000) ElseIf @error = 1 Then CHECK2() EndIf Else BOT() EndIf EndFunc Func CHECK2() $BATTLE = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 6747135) If @error = 1 Then MOBCOUNT() PM() BOT() ElseIf @error = 0 Then MOBCOUNT() EndIf EndFunc Func MOBCOUNT() $HP = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 11893074) If @error = 0 Then $MOB = 1 + $MOB EndIf EndFunc Func TERMINATE() IniWrite("PWOBot Stats.ini", "Pokemon", "Pokemon Encounters", $MOB) IniWrite("PWOBot Stats.ini", "Items", "Pokeballs Used", $MOBC) IniWrite("PWOBot Stats.ini", "Messages", "Private Messages", $PMC) IniWrite("PWOBot Stats.ini", "Time", "Minutes", $60COUNT) IniWrite("PWOBot Stats.ini", "Login", "Relogin Attempts", $RELOG) IniWrite("PWOBot Stats.ini", "Credits", "Creaded by:", "Geod") If $HOUR = 0 Then IniWrite("PWOBot Stats.ini", "Time", "Hours", 0) ElseIf $HOUR <> 0 Then IniWrite("PWOBot Stats.ini", "Time", "Hours", $HOUR) EndIf Exit 0 EndFunc Func AUTOTALK() ToolTip("Anti-Ban", "", "", "PWOBot") $1 = 1 $5 = 11 $R = Random($1, $5, 1) Local $SAY[12] $SAY[1] = "Man, I'm tired" $SAY[2] = "I've been here for so long!" $SAY[3] = "..." $SAY[4] = "Woohoo a Shiny!"

$SAY[5] = "I should log off >.>" $SAY[6] = "Hi" $SAY[7] = "So Sleepy :3" $SAY[8] = "!" $SAY[9] = ">.>" $SAY[10] = "Ugh >.>" $SAY[11] = "a" $1000000 = 1000 $AT = Random($1, $1000000) If $AT = 1 Then Send("{ENTER}") Send($SAY[$R], 1) Send("{ENTER}") EndIf EndFunc