Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Region
- #AutoIt3Wrapper_OutFile=AOMH Updated 4-27.exe
- #AutoIt3Wrapper_UseUpx=n
- #AutoIt3Wrapper_UseX64=n
- #AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
- #EndRegion
- Global Const $ws_ex_clientedge = 512
- 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 Const $bcm_getnote = ($bcm_first + 10)
- Global Const $bcm_getnotelength = ($bcm_first + 11)
- Global Const $bcm_getsplitinfo = ($bcm_first + 8)
- Global Const $bcm_gettextmargin = ($bcm_first + 5)
- Global Const $bcm_setdropdownstate = ($bcm_first + 6)
- Global Const $bcm_setimagelist = ($bcm_first + 2)
- Global Const $bcm_setnote = ($bcm_first + 9)
- Global Const $bcm_setshield = ($bcm_first + 12)
- Global Const $bcm_setsplitinfo = ($bcm_first + 7)
- Global Const $bcm_settextmargin = ($bcm_first + 4)
- Global Const $bm_click = 245
- Global Const $bm_getcheck = 240
- Global Const $bm_getimage = 246
- Global Const $bm_getstate = 242
- Global Const $bm_setcheck = 241
- Global Const $bm_setdontclick = 248
- Global Const $bm_setimage = 247
- Global Const $bm_setstate = 243
- Global Const $bm_setstyle = 244
- Global Const $bcn_first = -1250
- Global Const $bcn_dropdown = ($bcn_first + 2)
- Global Const $bcn_hotitemchange = ($bcn_first + 1)
- Global Const $bn_clicked = 0
- Global Const $bn_paint = 1
- Global Const $bn_hilite = 2
- Global Const $bn_unhilite = 3
- Global Const $bn_disable = 4
- Global Const $bn_doubleclicked = 5
- Global Const $bn_setfocus = 6
- Global Const $bn_killfocus = 7
- Global Const $bn_pushed = $bn_hilite
- Global Const $bn_unpushed = $bn_unhilite
- Global Const $bn_dblclk = $bn_doubleclicked
- Global Const $bst_checked = 1
- Global Const $bst_indeterminate = 2
- Global Const $bst_unchecked = 0
- Global Const $bst_focus = 8
- Global Const $bst_pushed = 4
- Global Const $bst_dontclick = 128
- Global Const $cb_err = -1
- Global Const $cb_errattribute = -3
- Global Const $cb_errrequired = -4
- Global Const $cb_errspace = -2
- Global Const $cb_okay = 0
- Global Const $state_system_invisible = 32768
- Global Const $state_system_pressed = 8
- Global Const $cbs_autohscroll = 64
- Global Const $cbs_disablenoscroll = 2048
- Global Const $cbs_dropdown = 2
- Global Const $cbs_dropdownlist = 3
- Global Const $cbs_hasstrings = 512
- Global Const $cbs_lowercase = 16384
- Global Const $cbs_nointegralheight = 1024
- Global Const $cbs_oemconvert = 128
- Global Const $cbs_ownerdrawfixed = 16
- Global Const $cbs_ownerdrawvariable = 32
- Global Const $cbs_simple = 1
- Global Const $cbs_sort = 256
- Global Const $cbs_uppercase = 8192
- Global Const $cbm_first = 5888
- Global Const $cb_addstring = 323
- Global Const $cb_deletestring = 324
- Global Const $cb_dir = 325
- Global Const $cb_findstring = 332
- Global Const $cb_findstringexact = 344
- Global Const $cb_getcomboboxinfo = 356
- Global Const $cb_getcount = 326
- Global Const $cb_getcuebanner = ($cbm_first + 4)
- Global Const $cb_getcursel = 327
- Global Const $cb_getdroppedcontrolrect = 338
- Global Const $cb_getdroppedstate = 343
- Global Const $cb_getdroppedwidth = 351
- Global Const $cb_geteditsel = 320
- Global Const $cb_getextendedui = 342
- Global Const $cb_gethorizontalextent = 349
- Global Const $cb_getitemdata = 336
- Global Const $cb_getitemheight = 340
- Global Const $cb_getlbtext = 328
- Global Const $cb_getlbtextlen = 329
- Global Const $cb_getlocale = 346
- Global Const $cb_getminvisible = 5890
- Global Const $cb_gettopindex = 347
- Global Const $cb_initstorage = 353
- Global Const $cb_limittext = 321
- Global Const $cb_resetcontent = 331
- Global Const $cb_insertstring = 330
- Global Const $cb_selectstring = 333
- Global Const $cb_setcuebanner = ($cbm_first + 3)
- Global Const $cb_setcursel = 334
- Global Const $cb_setdroppedwidth = 352
- Global Const $cb_seteditsel = 322
- Global Const $cb_setextendedui = 341
- Global Const $cb_sethorizontalextent = 350
- Global Const $cb_setitemdata = 337
- Global Const $cb_setitemheight = 339
- Global Const $cb_setlocale = 345
- Global Const $cb_setminvisible = 5889
- Global Const $cb_settopindex = 348
- Global Const $cb_showdropdown = 335
- Global Const $cbn_closeup = 8
- Global Const $cbn_dblclk = 2
- Global Const $cbn_dropdown = 7
- Global Const $cbn_editchange = 5
- Global Const $cbn_editupdate = 6
- Global Const $cbn_errspace = (-1)
- Global Const $cbn_killfocus = 4
- Global Const $cbn_selchange = 1
- Global Const $cbn_selendcancel = 10
- Global Const $cbn_selendok = 9
- Global Const $cbn_setfocus = 3
- Global Const $cbes_ex_casesensitive = 16
- Global Const $cbes_ex_noeditimage = 1
- Global Const $cbes_ex_noeditimageindent = 2
- Global Const $cbes_ex_nosizelimit = 8
- Global Const $cbes_ex_pathwordbreakproc = 4
- Global Const $__comboboxconstant_wm_user = 1024
- Global Const $cbem_deleteitem = $cb_deletestring
- Global Const $cbem_getcombocontrol = ($__comboboxconstant_wm_user + 6)
- Global Const $cbem_geteditcontrol = ($__comboboxconstant_wm_user + 7)
- Global Const $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, $__comboboxconstant_ws_vscroll)
- Global Const $es_left = 0
- Global Const $es_center = 1
- Global Const $es_right = 2
- Global Const $es_multiline = 4
- Global Const $es_uppercase = 8
- Global Const $es_lowercase = 16
- Global Const $es_password = 32
- Global Const $es_autovscroll = 64
- Global Const $es_autohscroll = 128
- Global Const $es_nohidesel = 256
- Global Const $es_oemconvert = 1024
- Global Const $es_readonly = 2048
- Global Const $es_wantreturn = 4096
- Global Const $es_number = 8192
- Global Const $ec_err = -1
- Global Const $ecm_first = 5376
- Global Const $em_canundo = 198
- Global Const $em_charfrompos = 215
- Global Const $em_emptyundobuffer = 205
- Global Const $em_fmtlines = 200
- Global Const $em_getcuebanner = ($ecm_first + 2)
- Global Const $em_getfirstvisibleline = 206
- Global Const $em_gethandle = 189
- Global Const $em_getimestatus = 217
- Global Const $em_getlimittext = 213
- Global Const $em_getline = 196
- Global Const $em_getlinecount = 186
- Global Const $em_getmargins = 212
- Global Const $em_getmodify = 184
- Global Const $em_getpasswordchar = 210
- Global Const $em_getrect = 178
- Global Const $em_getsel = 176
- Global Const $em_getthumb = 190
- Global Const $em_getwordbreakproc = 209
- Global Const $em_hideballoontip = ($ecm_first + 4)
- Global Const $em_limittext = 197
- Global Const $em_linefromchar = 201
- Global Const $em_lineindex = 187
- Global Const $em_linelength = 193
- Global Const $em_linescroll = 182
- Global Const $em_posfromchar = 214
- Global Const $em_replacesel = 194
- Global Const $em_scroll = 181
- Global Const $em_scrollcaret = 183
- Global Const $em_setcuebanner = ($ecm_first + 1)
- Global Const $em_sethandle = 188
- Global Const $em_setimestatus = 216
- Global Const $em_setlimittext = $em_limittext
- Global Const $em_setmargins = 211
- Global Const $em_setmodify = 185
- Global Const $em_setpasswordchar = 204
- Global Const $em_setreadonly = 207
- Global Const $em_setrect = 179
- Global Const $em_setrectnp = 180
- Global Const $em_setsel = 177
- Global Const $em_settabstops = 203
- Global Const $em_setwordbreakproc = 208
- Global Const $em_showballoontip = ($ecm_first + 3)
- Global Const $em_undo = 199
- Global Const $ec_leftmargin = 1
- Global Const $ec_rightmargin = 2
- Global Const $ec_usefontinfo = 65535
- Global Const $emsis_compositionstring = 1
- Global Const $eimes_getcompstratonce = 1
- Global Const $eimes_cancelcompstrinfocus = 2
- Global Const $eimes_completecompstrkillfocus = 4
- Global Const $en_align_ltr_ec = 1792
- Global Const $en_align_rtl_ec = 1793
- Global Const $en_change = 768
- Global Const $en_errspace = 1280
- Global Const $en_hscroll = 1537
- Global Const $en_killfocus = 512
- Global Const $en_maxtext = 1281
- Global Const $en_setfocus = 256
- Global Const $en_update = 1024
- Global Const $en_vscroll = 1538
- Global Const $tti_none = 0
- Global Const $tti_info = 1
- Global Const $tti_warning = 2
- Global Const $tti_error = 3
- Global Const $tti_info_large = 4
- Global Const $tti_warning_large = 5
- Global Const $tti_error_large = 6
- Global Const $__editconstant_ws_vscroll = 2097152
- Global Const $__editconstant_ws_hscroll = 1048576
- Global Const $gui_ss_default_edit = BitOR($es_wantreturn, $__editconstant_ws_vscroll, $__editconstant_ws_hscroll, $es_autovscroll, $es_autohscroll)
- Global Const $gui_ss_default_input = BitOR($es_left, $es_autohscroll)
- 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 Const $gui_enable = 64
- Global Const $gui_disable = 128
- Global Const $gui_focus = 256
- Global Const $gui_nofocus = 8192
- Global Const $gui_defbutton = 512
- Global Const $gui_expand = 1024
- Global Const $gui_ontop = 2048
- Global Const $gui_fontitalic = 2
- Global Const $gui_fontunder = 4
- Global Const $gui_fontstrike = 8
- Global Const $gui_dockauto = 1
- Global Const $gui_dockleft = 2
- Global Const $gui_dockright = 4
- Global Const $gui_dockhcenter = 8
- Global Const $gui_docktop = 32
- Global Const $gui_dockbottom = 64
- Global Const $gui_dockvcenter = 128
- Global Const $gui_dockwidth = 256
- Global Const $gui_dockheight = 512
- Global Const $gui_docksize = 768
- Global Const $gui_dockmenubar = 544
- Global Const $gui_dockstatebar = 576
- Global Const $gui_dockall = 802
- Global Const $gui_dockborders = 102
- Global Const $gui_gr_close = 1
- Global Const $gui_gr_line = 2
- Global Const $gui_gr_bezier = 4
- Global Const $gui_gr_move = 6
- Global Const $gui_gr_color = 8
- Global Const $gui_gr_rect = 10
- Global Const $gui_gr_ellipse = 12
- Global Const $gui_gr_pie = 14
- Global Const $gui_gr_dot = 16
- Global Const $gui_gr_pixel = 18
- Global Const $gui_gr_hint = 20
- Global Const $gui_gr_refresh = 22
- Global Const $gui_gr_pensize = 24
- Global Const $gui_gr_nobkcolor = -2
- Global Const $gui_bkcolor_default = -1
- Global Const $gui_bkcolor_transparent = -2
- Global Const $gui_bkcolor_lv_alternate = -33554432
- Global Const $gui_ws_ex_parentdrag = 1048576
- Global Const $lvs_alignleft = 2048
- Global Const $lvs_alignmask = 3072
- Global Const $lvs_aligntop = 0
- Global Const $lvs_autoarrange = 256
- Global Const $lvs_default = 13
- Global Const $lvs_editlabels = 512
- Global Const $lvs_icon = 0
- Global Const $lvs_list = 3
- Global Const $lvs_nocolumnheader = 16384
- Global Const $lvs_nolabelwrap = 128
- Global Const $lvs_noscroll = 8192
- Global Const $lvs_nosortheader = 32768
- Global Const $lvs_ownerdata = 4096
- Global Const $lvs_ownerdrawfixed = 1024
- Global Const $lvs_report = 1
- Global Const $lvs_shareimagelists = 64
- Global Const $lvs_showselalways = 8
- Global Const $lvs_singlesel = 4
- Global Const $lvs_smallicon = 2
- Global Const $lvs_sortascending = 16
- Global Const $lvs_sortdescending = 32
- Global Const $lvs_typemask = 3
- Global Const $lvs_typestylemask = 64512
- Global Const $lvs_ex_autoautoarrange = 16777216
- Global Const $lvs_ex_autocheckselect = 134217728
- Global Const $lvs_ex_autosizecolumns = 268435456
- Global Const $lvs_ex_borderselect = 32768
- Global Const $lvs_ex_checkboxes = 4
- Global Const $lvs_ex_columnoverflow = -2147483648
- Global Const $lvs_ex_columnsnappoints = 1073741824
- Global Const $lvs_ex_doublebuffer = 65536
- Global Const $lvs_ex_flatsb = 256
- Global Const $lvs_ex_fullrowselect = 32
- Global Const $lvs_ex_gridlines = 1
- Global Const $lvs_ex_headerdragdrop = 16
- Global Const $lvs_ex_headerinallviews = 33554432
- Global Const $lvs_ex_hidelabels = 131072
- Global Const $lvs_ex_infotip = 1024
- Global Const $lvs_ex_justifycolumns = 2097152
- Global Const $lvs_ex_labeltip = 16384
- Global Const $lvs_ex_multiworkareas = 8192
- Global Const $lvs_ex_oneclickactivate = 64
- Global Const $lvs_ex_regional = 512
- Global Const $lvs_ex_simpleselect = 1048576
- Global Const $lvs_ex_snaptogrid = 524288
- Global Const $lvs_ex_subitemimages = 2
- Global Const $lvs_ex_trackselect = 8
- Global Const $lvs_ex_transparentbkgnd = 4194304
- Global Const $lvs_ex_transparentshadowtext = 8388608
- Global Const $lvs_ex_twoclickactivate = 128
- Global Const $lvs_ex_underlinecold = 4096
- Global Const $lvs_ex_underlinehot = 2048
- Global Const $lvgs_normal = 0
- Global Const $lvgs_collapsed = 1
- Global Const $lvgs_hidden = 2
- Global Const $lvgs_noheader = 4
- Global Const $lvgs_collapsible = 8
- Global Const $lvgs_focused = 16
- Global Const $lvgs_selected = 32
- Global Const $lvgs_subseted = 64
- Global Const $lvgs_subsetlinkfocused = 128
- Global Const $lvggr_group = 0
- Global Const $lvggr_header = 1
- Global Const $lvggr_label = 2
- Global Const $lvggr_subsetlink = 3
- Global Const $lv_err = -1
- Global Const $lvbkif_source_none = 0
- Global Const $lvbkif_source_hbitmap = 1
- Global Const $lvbkif_source_url = 2
- Global Const $lvbkif_source_mask = 3
- Global Const $lvbkif_style_normal = 0
- Global Const $lvbkif_style_tile = 16
- Global Const $lvbkif_style_mask = 16
- Global Const $lvbkif_flag_tileoffset = 256
- Global Const $lvbkif_type_watermark = 268435456
- Global Const $lv_view_details = 1
- Global Const $lv_view_icon = 0
- Global Const $lv_view_list = 3
- Global Const $lv_view_smallicon = 2
- Global Const $lv_view_tile = 4
- Global Const $lva_alignleft = 1
- Global Const $lva_aligntop = 2
- Global Const $lva_default = 0
- Global Const $lva_snaptogrid = 5
- Global Const $lvcdi_item = 0
- Global Const $lvcdi_group = 1
- Global Const $lvcf_alldata = 63
- Global Const $lvcf_fmt = 1
- Global Const $lvcf_image = 16
- Global Const $lvcfmt_justifymask = 3
- Global Const $lvcf_text = 4
- Global Const $lvcf_width = 2
- Global Const $lvcfmt_bitmap_on_right = 4096
- Global Const $lvcfmt_center = 2
- Global Const $lvcfmt_col_has_images = 32768
- Global Const $lvcfmt_image = 2048
- Global Const $lvcfmt_left = 0
- Global Const $lvcfmt_right = 1
- Global Const $lvfi_nearestxy = 64
- Global Const $lvfi_param = 1
- Global Const $lvfi_partial = 8
- Global Const $lvfi_string = 2
- Global Const $lvfi_wrap = 32
- Global Const $lvga_footer_left = 8
- Global Const $lvga_footer_center = 16
- Global Const $lvga_footer_right = 32
- Global Const $lvga_header_left = 1
- Global Const $lvga_header_center = 2
- Global Const $lvga_header_right = 4
- Global Const $lvgf_align = 8
- Global Const $lvgf_descriptiontop = 1024
- Global Const $lvgf_descriptionbottom = 2048
- Global Const $lvgf_extendedimage = 8192
- Global Const $lvgf_footer = 2
- Global Const $lvgf_groupid = 16
- Global Const $lvgf_header = 1
- Global Const $lvgf_items = 16384
- Global Const $lvgf_none = 0
- Global Const $lvgf_state = 4
- Global Const $lvgf_subset = 32768
- Global Const $lvgf_subsetitems = 65536
- Global Const $lvgf_subtitle = 256
- Global Const $lvgf_task = 512
- Global Const $lvgf_titleimage = 4096
- Global Const $lvht_above = 8
- Global Const $lvht_below = 16
- Global Const $lvht_nowhere = 1
- Global Const $lvht_onitemicon = 2
- Global Const $lvht_onitemlabel = 4
- Global Const $lvht_onitemstateicon = 8
- Global Const $lvht_toleft = 64
- Global Const $lvht_toright = 32
- Global Const $lvht_onitem = BitOR($lvht_onitemicon, $lvht_onitemlabel, $lvht_onitemstateicon)
- Global Const $lvif_colfmt = 65536
- Global Const $lvif_columns = 512
- Global Const $lvif_groupid = 256
- Global Const $lvif_image = 2
- Global Const $lvif_indent = 16
- Global Const $lvif_norecompute = 2048
- Global Const $lvif_param = 4
- Global Const $lvif_state = 8
- Global Const $lvif_text = 1
- Global Const $lvim_after = 1
- Global Const $lvir_bounds = 0
- Global Const $lvir_icon = 1
- Global Const $lvir_label = 2
- Global Const $lvir_selectbounds = 3
- Global Const $lvis_cut = 4
- Global Const $lvis_drophilited = 8
- Global Const $lvis_focused = 1
- Global Const $lvis_overlaymask = 3840
- Global Const $lvis_selected = 2
- Global Const $lvis_stateimagemask = 61440
- Global Const $lvm_first = 4096
- Global Const $lvm_approximateviewrect = ($lvm_first + 64)
- Global Const $lvm_arrange = ($lvm_first + 22)
- Global Const $lvm_canceleditlabel = ($lvm_first + 179)
- Global Const $lvm_createdragimage = ($lvm_first + 33)
- Global Const $lvm_deleteallitems = ($lvm_first + 9)
- Global Const $lvm_deletecolumn = ($lvm_first + 28)
- Global Const $lvm_deleteitem = ($lvm_first + 8)
- Global Const $lvm_editlabela = ($lvm_first + 23)
- Global Const $lvm_editlabelw = ($lvm_first + 118)
- Global Const $lvm_editlabel = $lvm_editlabela
- Global Const $lvm_enablegroupview = ($lvm_first + 157)
- Global Const $lvm_ensurevisible = ($lvm_first + 19)
- Global Const $lvm_finditem = ($lvm_first + 13)
- Global Const $lvm_getbkcolor = ($lvm_first + 0)
- Global Const $lvm_getbkimagea = ($lvm_first + 69)
- Global Const $lvm_getbkimagew = ($lvm_first + 139)
- Global Const $lvm_getcallbackmask = ($lvm_first + 10)
- Global Const $lvm_getcolumna = ($lvm_first + 25)
- Global Const $lvm_getcolumnw = ($lvm_first + 95)
- Global Const $lvm_getcolumnorderarray = ($lvm_first + 59)
- Global Const $lvm_getcolumnwidth = ($lvm_first + 29)
- Global Const $lvm_getcountperpage = ($lvm_first + 40)
- Global Const $lvm_geteditcontrol = ($lvm_first + 24)
- Global Const $lvm_getemptytext = ($lvm_first + 204)
- Global Const $lvm_getextendedlistviewstyle = ($lvm_first + 55)
- Global Const $lvm_getfocusedgroup = ($lvm_first + 93)
- Global Const $lvm_getfooterinfo = ($lvm_first + 206)
- Global Const $lvm_getfooteritem = ($lvm_first + 208)
- Global Const $lvm_getfooteritemrect = ($lvm_first + 207)
- Global Const $lvm_getfooterrect = ($lvm_first + 205)
- Global Const $lvm_getgroupcount = ($lvm_first + 152)
- Global Const $lvm_getgroupinfo = ($lvm_first + 149)
- Global Const $lvm_getgroupinfobyindex = ($lvm_first + 153)
- Global Const $lvm_getgroupmetrics = ($lvm_first + 156)
- Global Const $lvm_getgrouprect = ($lvm_first + 98)
- Global Const $lvm_getgroupstate = ($lvm_first + 92)
- Global Const $lvm_getheader = ($lvm_first + 31)
- Global Const $lvm_gethotcursor = ($lvm_first + 63)
- Global Const $lvm_gethotitem = ($lvm_first + 61)
- Global Const $lvm_gethovertime = ($lvm_first + 72)
- Global Const $lvm_getimagelist = ($lvm_first + 2)
- Global Const $lvm_getinsertmark = ($lvm_first + 167)
- Global Const $lvm_getinsertmarkcolor = ($lvm_first + 171)
- Global Const $lvm_getinsertmarkrect = ($lvm_first + 169)
- Global Const $lvm_getisearchstringa = ($lvm_first + 52)
- Global Const $lvm_getisearchstringw = ($lvm_first + 117)
- Global Const $lvm_getitema = ($lvm_first + 5)
- Global Const $lvm_getitemw = ($lvm_first + 75)
- Global Const $lvm_getitemcount = ($lvm_first + 4)
- Global Const $lvm_getitemindexrect = ($lvm_first + 209)
- Global Const $lvm_getitemposition = ($lvm_first + 16)
- Global Const $lvm_getitemrect = ($lvm_first + 14)
- Global Const $lvm_getitemspacing = ($lvm_first + 51)
- Global Const $lvm_getitemstate = ($lvm_first + 44)
- Global Const $lvm_getitemtexta = ($lvm_first + 45)
- Global Const $lvm_getitemtextw = ($lvm_first + 115)
- Global Const $lvm_getnextitem = ($lvm_first + 12)
- Global Const $lvm_getnextitemindex = ($lvm_first + 211)
- Global Const $lvm_getnumberofworkareas = ($lvm_first + 73)
- Global Const $lvm_getorigin = ($lvm_first + 41)
- Global Const $lvm_getoutlinecolor = ($lvm_first + 176)
- Global Const $lvm_getselectedcolumn = ($lvm_first + 174)
- Global Const $lvm_getselectedcount = ($lvm_first + 50)
- Global Const $lvm_getselectionmark = ($lvm_first + 66)
- Global Const $lvm_getstringwidtha = ($lvm_first + 17)
- Global Const $lvm_getstringwidthw = ($lvm_first + 87)
- Global Const $lvm_getsubitemrect = ($lvm_first + 56)
- Global Const $lvm_gettextbkcolor = ($lvm_first + 37)
- Global Const $lvm_gettextcolor = ($lvm_first + 35)
- Global Const $lvm_gettileinfo = ($lvm_first + 165)
- Global Const $lvm_gettileviewinfo = ($lvm_first + 163)
- Global Const $lvm_gettooltips = ($lvm_first + 78)
- Global Const $lvm_gettopindex = ($lvm_first + 39)
- Global Const $lvm_getunicodeformat = 8192 + 6
- Global Const $lvm_getview = ($lvm_first + 143)
- Global Const $lvm_getviewrect = ($lvm_first + 34)
- Global Const $lvm_getworkareas = ($lvm_first + 70)
- Global Const $lvm_hasgroup = ($lvm_first + 161)
- Global Const $lvm_hittest = ($lvm_first + 18)
- Global Const $lvm_insertcolumna = ($lvm_first + 27)
- Global Const $lvm_insertcolumnw = ($lvm_first + 97)
- Global Const $lvm_insertgroup = ($lvm_first + 145)
- Global Const $lvm_insertgroupsorted = ($lvm_first + 159)
- Global Const $lvm_insertitema = ($lvm_first + 7)
- Global Const $lvm_insertitemw = ($lvm_first + 77)
- Global Const $lvm_insertmarkhittest = ($lvm_first + 168)
- Global Const $lvm_isgroupviewenabled = ($lvm_first + 175)
- Global Const $lvm_isitemvisible = ($lvm_first + 182)
- Global Const $lvm_mapidtoindex = ($lvm_first + 181)
- Global Const $lvm_mapindextoid = ($lvm_first + 180)
- Global Const $lvm_movegroup = ($lvm_first + 151)
- Global Const $lvm_redrawitems = ($lvm_first + 21)
- Global Const $lvm_removeallgroups = ($lvm_first + 160)
- Global Const $lvm_removegroup = ($lvm_first + 150)
- Global Const $lvm_scroll = ($lvm_first + 20)
- Global Const $lvm_setbkcolor = ($lvm_first + 1)
- Global Const $lvm_setbkimagea = ($lvm_first + 68)
- Global Const $lvm_setbkimagew = ($lvm_first + 138)
- Global Const $lvm_setcallbackmask = ($lvm_first + 11)
- Global Const $lvm_setcolumna = ($lvm_first + 26)
- Global Const $lvm_setcolumnw = ($lvm_first + 96)
- Global Const $lvm_setcolumnorderarray = ($lvm_first + 58)
- Global Const $lvm_setcolumnwidth = ($lvm_first + 30)
- Global Const $lvm_setextendedlistviewstyle = ($lvm_first + 54)
- Global Const $lvm_setgroupinfo = ($lvm_first + 147)
- Global Const $lvm_setgroupmetrics = ($lvm_first + 155)
- Global Const $lvm_sethotcursor = ($lvm_first + 62)
- Global Const $lvm_sethotitem = ($lvm_first + 60)
- Global Const $lvm_sethovertime = ($lvm_first + 71)
- Global Const $lvm_seticonspacing = ($lvm_first + 53)
- Global Const $lvm_setimagelist = ($lvm_first + 3)
- Global Const $lvm_setinfotip = ($lvm_first + 173)
- Global Const $lvm_setinsertmark = ($lvm_first + 166)
- Global Const $lvm_setinsertmarkcolor = ($lvm_first + 170)
- Global Const $lvm_setitema = ($lvm_first + 6)
- Global Const $lvm_setitemw = ($lvm_first + 76)
- Global Const $lvm_setitemcount = ($lvm_first + 47)
- Global Const $lvm_setitemindexstate = ($lvm_first + 210)
- Global Const $lvm_setitemposition = ($lvm_first + 15)
- Global Const $lvm_setitemposition32 = ($lvm_first + 49)
- Global Const $lvm_setitemstate = ($lvm_first + 43)
- Global Const $lvm_setitemtexta = ($lvm_first + 46)
- Global Const $lvm_setitemtextw = ($lvm_first + 116)
- Global Const $lvm_setoutlinecolor = ($lvm_first + 177)
- Global Const $lvm_setselectedcolumn = ($lvm_first + 140)
- Global Const $lvm_setselectionmark = ($lvm_first + 67)
- Global Const $lvm_settextbkcolor = ($lvm_first + 38)
- Global Const $lvm_settextcolor = ($lvm_first + 36)
- Global Const $lvm_settileinfo = ($lvm_first + 164)
- Global Const $lvm_settileviewinfo = ($lvm_first + 162)
- Global Const $lvm_settilewidth = ($lvm_first + 141)
- Global Const $lvm_settooltips = ($lvm_first + 74)
- Global Const $lvm_setunicodeformat = 8192 + 5
- Global Const $lvm_setview = ($lvm_first + 142)
- Global Const $lvm_setworkareas = ($lvm_first + 65)
- Global Const $lvm_sortgroups = ($lvm_first + 158)
- Global Const $lvm_sortitems = ($lvm_first + 48)
- Global Const $lvm_sortitemsex = ($lvm_first + 81)
- Global Const $lvm_subitemhittest = ($lvm_first + 57)
- Global Const $lvm_update = ($lvm_first + 42)
- Global Const $lvn_first = -100
- Global Const $lvn_last = -199
- Global Const $lvn_begindrag = ($lvn_first - 9)
- Global Const $lvn_beginlabeledita = ($lvn_first - 5)
- Global Const $lvn_beginlabeleditw = ($lvn_first - 75)
- Global Const $lvn_beginrdrag = ($lvn_first - 11)
- Global Const $lvn_beginscroll = ($lvn_first - 80)
- Global Const $lvn_columnclick = ($lvn_first - 8)
- Global Const $lvn_columndropdown = ($lvn_first - 64)
- Global Const $lvn_columnoverflowclick = ($lvn_first - 66)
- Global Const $lvn_deleteallitems = ($lvn_first - 4)
- Global Const $lvn_deleteitem = ($lvn_first - 3)
- Global Const $lvn_endlabeledita = ($lvn_first - 6)
- Global Const $lvn_endlabeleditw = ($lvn_first - 76)
- Global Const $lvn_endscroll = ($lvn_first - 81)
- Global Const $lvn_getdispinfoa = ($lvn_first - 50)
- Global Const $lvn_getdispinfow = ($lvn_first - 77)
- Global Const $lvn_getdispinfo = $lvn_getdispinfoa
- Global Const $lvn_getemptymarkup = ($lvn_first - 87)
- Global Const $lvn_getinfotipa = ($lvn_first - 57)
- Global Const $lvn_getinfotipw = ($lvn_first - 58)
- Global Const $lvn_hottrack = ($lvn_first - 21)
- Global Const $lvn_incrementalsearcha = ($lvn_first - 62)
- Global Const $lvn_incrementalsearchw = ($lvn_first - 63)
- Global Const $lvn_insertitem = ($lvn_first - 2)
- Global Const $lvn_itemactivate = ($lvn_first - 14)
- Global Const $lvn_itemchanged = ($lvn_first - 1)
- Global Const $lvn_itemchanging = ($lvn_first - 0)
- Global Const $lvn_keydown = ($lvn_first - 55)
- Global Const $lvn_linkclick = ($lvn_first - 84)
- Global Const $lvn_marqueebegin = ($lvn_first - 56)
- Global Const $lvn_odcachehint = ($lvn_first - 13)
- Global Const $lvn_odfinditema = ($lvn_first - 52)
- Global Const $lvn_odfinditemw = ($lvn_first - 79)
- Global Const $lvn_odfinditem = $lvn_odfinditema
- Global Const $lvn_odstatechanged = ($lvn_first - 15)
- Global Const $lvn_setdispinfoa = ($lvn_first - 51)
- Global Const $lvn_setdispinfow = ($lvn_first - 78)
- Global Const $lvni_above = 256
- Global Const $lvni_below = 512
- Global Const $lvni_toleft = 1024
- Global Const $lvni_toright = 2048
- Global Const $lvni_all = 0
- Global Const $lvni_cut = 4
- Global Const $lvni_drophilited = 8
- Global Const $lvni_focused = 1
- Global Const $lvni_selected = 2
- Global Const $lvscw_autosize = -1
- Global Const $lvscw_autosize_useheader = -2
- Global Const $lvsicf_noinvalidateall = 1
- Global Const $lvsicf_noscroll = 2
- Global Const $lvsil_normal = 0
- Global Const $lvsil_small = 1
- Global Const $lvsil_state = 2
- Global Const $gui_ss_default_listview = BitOR($lvs_showselalways, $lvs_singlesel)
- Global Const $tbs_autoticks = 1
- Global Const $tbs_both = 8
- Global Const $tbs_bottom = 0
- Global Const $tbs_downisleft = 1024
- Global Const $tbs_enableselrange = 32
- Global Const $tbs_fixedlength = 64
- Global Const $tbs_horz = 0
- Global Const $tbs_left = 4
- Global Const $tbs_nothumb = 128
- Global Const $tbs_noticks = 16
- Global Const $tbs_reversed = 512
- Global Const $tbs_right = 0
- Global Const $tbs_top = 4
- Global Const $tbs_tooltips = 256
- Global Const $tbs_vert = 2
- Global Const $gui_ss_default_slider = $tbs_autoticks
- Global Const $tbcd_channel = 3
- Global Const $tbcd_thumb = 2
- Global Const $tbcd_tics = 1
- Global Const $__sliderconstant_wm_user = 1024
- Global Const $tbm_clearsel = $__sliderconstant_wm_user + 19
- Global Const $tbm_cleartics = $__sliderconstant_wm_user + 9
- Global Const $tbm_getbuddy = $__sliderconstant_wm_user + 33
- Global Const $tbm_getchannelrect = $__sliderconstant_wm_user + 26
- Global Const $tbm_getlinesize = $__sliderconstant_wm_user + 24
- Global Const $tbm_getnumtics = $__sliderconstant_wm_user + 16
- Global Const $tbm_getpagesize = $__sliderconstant_wm_user + 22
- Global Const $tbm_getpos = $__sliderconstant_wm_user
- Global Const $tbm_getptics = $__sliderconstant_wm_user + 14
- Global Const $tbm_getselend = $__sliderconstant_wm_user + 18
- Global Const $tbm_getselstart = $__sliderconstant_wm_user + 17
- Global Const $tbm_getrangemax = $__sliderconstant_wm_user + 2
- Global Const $tbm_getrangemin = $__sliderconstant_wm_user + 1
- Global Const $tbm_getthumblength = $__sliderconstant_wm_user + 28
- Global Const $tbm_getthumbrect = $__sliderconstant_wm_user + 25
- Global Const $tbm_gettic = $__sliderconstant_wm_user + 3
- Global Const $tbm_getticpos = $__sliderconstant_wm_user + 15
- Global Const $tbm_gettooltips = $__sliderconstant_wm_user + 30
- Global Const $tbm_getunicodeformat = 8192 + 6
- Global Const $tbm_setbuddy = $__sliderconstant_wm_user + 32
- Global Const $tbm_setlinesize = $__sliderconstant_wm_user + 23
- Global Const $tbm_setpagesize = $__sliderconstant_wm_user + 21
- Global Const $tbm_setpos = $__sliderconstant_wm_user + 5
- Global Const $tbm_setrange = $__sliderconstant_wm_user + 6
- Global Const $tbm_setrangemax = $__sliderconstant_wm_user + 8
- Global Const $tbm_setrangemin = $__sliderconstant_wm_user + 7
- Global Const $tbm_setsel = $__sliderconstant_wm_user + 10
- Global Const $tbm_setselend = $__sliderconstant_wm_user + 12
- Global Const $tbm_setselstart = $__sliderconstant_wm_user + 11
- Global Const $tbm_setthumblength = $__sliderconstant_wm_user + 27
- Global Const $tbm_settic = $__sliderconstant_wm_user + 4
- Global Const $tbm_setticfreq = $__sliderconstant_wm_user + 20
- Global Const $tbm_settipside = $__sliderconstant_wm_user + 31
- Global Const $tbm_settooltips = $__sliderconstant_wm_user + 29
- Global Const $tbm_setunicodeformat = 8192 + 5
- Global Const $tbts_bottom = 2
- Global Const $tbts_left = 1
- Global Const $tbts_right = 3
- Global Const $tbts_top = 0
- Global Const $ss_left = 0
- Global Const $ss_center = 1
- Global Const $ss_right = 2
- Global Const $ss_icon = 3
- Global Const $ss_blackrect = 4
- Global Const $ss_grayrect = 5
- Global Const $ss_whiterect = 6
- Global Const $ss_blackframe = 7
- Global Const $ss_grayframe = 8
- Global Const $ss_whiteframe = 9
- Global Const $ss_simple = 11
- Global Const $ss_leftnowordwrap = 12
- Global Const $ss_bitmap = 14
- Global Const $ss_etchedhorz = 16
- Global Const $ss_etchedvert = 17
- Global Const $ss_etchedframe = 18
- Global Const $ss_noprefix = 128
- Global Const $ss_notify = 256
- Global Const $ss_centerimage = 512
- Global Const $ss_rightjust = 1024
- Global Const $ss_sunken = 4096
- Global Const $gui_ss_default_label = 0
- Global Const $gui_ss_default_graphic = 0
- Global Const $gui_ss_default_icon = $ss_notify
- Global Const $gui_ss_default_pic = $ss_notify
- Global Const $tcs_bottom = 2
- Global Const $tcs_buttons = 256
- Global Const $tcs_fixedwidth = 1024
- Global Const $tcs_flatbuttons = 8
- Global Const $tcs_focusnever = 32768
- Global Const $tcs_focusonbuttondown = 4096
- Global Const $tcs_forceiconleft = 16
- Global Const $tcs_forcelabelleft = 32
- Global Const $tcs_hottrack = 64
- Global Const $tcs_multiline = 512
- Global Const $tcs_multiselect = 4
- Global Const $tcs_ownerdrawfixed = 8192
- Global Const $tcs_raggedright = 2048
- Global Const $tcs_right = 2
- Global Const $tcs_rightjustify = 0
- Global Const $tcs_scrollopposite = 1
- Global Const $tcs_singleline = 0
- Global Const $tcs_tabs = 0
- Global Const $tcs_tooltips = 16384
- Global Const $tcs_vertical = 128
- Global Const $tcs_ex_flatseparators = 1
- Global Const $tcs_ex_registerdrop = 2
- Global Const $tcht_nowhere = 1
- Global Const $tcht_onitemicon = 2
- Global Const $tcht_onitemlabel = 4
- Global Const $tcht_onitem = 6
- Global Const $tcif_text = 1
- Global Const $tcif_image = 2
- Global Const $tcif_rtlreading = 4
- Global Const $tcif_param = 8
- Global Const $tcif_state = 16
- Global Const $tcif_alldata = 27
- Global Const $tcis_buttonpressed = 1
- Global Const $tcis_highlighted = 2
- Global Const $tc_err = -1
- Global Const $gui_ss_default_tab = 0
- Global Const $tcm_first = 4864
- Global Const $tccm_first = 8192
- Global Const $tcm_adjustrect = ($tcm_first + 40)
- Global Const $tcm_deleteallitems = ($tcm_first + 9)
- Global Const $tcm_deleteitem = ($tcm_first + 8)
- Global Const $tcm_deselectall = ($tcm_first + 50)
- Global Const $tcm_getcurfocus = ($tcm_first + 47)
- Global Const $tcm_getcursel = ($tcm_first + 11)
- Global Const $tcm_getextendedstyle = ($tcm_first + 53)
- Global Const $tcm_getimagelist = ($tcm_first + 2)
- Global Const $tcm_getitema = ($tcm_first + 5)
- Global Const $tcm_getitemw = ($tcm_first + 60)
- Global Const $tcm_getitemcount = ($tcm_first + 4)
- Global Const $tcm_getitemrect = ($tcm_first + 10)
- Global Const $tcm_getrowcount = ($tcm_first + 44)
- Global Const $tcm_gettooltips = ($tcm_first + 45)
- Global Const $tccm_getunicodeformat = ($tccm_first + 6)
- Global Const $tcm_getunicodeformat = $tccm_getunicodeformat
- Global Const $tcm_highlightitem = ($tcm_first + 51)
- Global Const $tcm_hittest = ($tcm_first + 13)
- Global Const $tcm_insertitema = ($tcm_first + 7)
- Global Const $tcm_insertitemw = ($tcm_first + 62)
- Global Const $tcm_removeimage = ($tcm_first + 42)
- Global Const $tcm_setitema = ($tcm_first + 6)
- Global Const $tcm_setitemw = ($tcm_first + 61)
- Global Const $tcm_setitemextra = ($tcm_first + 14)
- Global Const $tcm_setitemsize = $tcm_first + 41
- Global Const $tcm_setcurfocus = ($tcm_first + 48)
- Global Const $tcm_setcursel = ($tcm_first + 12)
- Global Const $tcm_setextendedstyle = ($tcm_first + 52)
- Global Const $tcm_setimagelist = $tcm_first + 3
- Global Const $tcm_setmintabwidth = ($tcm_first + 49)
- Global Const $tcm_setpadding = ($tcm_first + 43)
- Global Const $tcm_settooltips = ($tcm_first + 46)
- Global Const $tccm_setunicodeformat = ($tccm_first + 5)
- Global Const $tcm_setunicodeformat = $tccm_setunicodeformat
- Global Const $tcn_first = -550
- Global Const $tcn_focuschange = ($tcn_first - 4)
- Global Const $tcn_getobject = ($tcn_first - 3)
- Global Const $tcn_keydown = ($tcn_first - 0)
- Global Const $tcn_selchange = ($tcn_first - 1)
- Global Const $tcn_selchanging = ($tcn_first - 2)
- Global Const $ws_tiled = 0
- Global Const $ws_overlapped = 0
- Global Const $ws_maximizebox = 65536
- Global Const $ws_minimizebox = 131072
- Global Const $ws_tabstop = 65536
- Global Const $ws_group = 131072
- Global Const $ws_sizebox = 262144
- Global Const $ws_thickframe = 262144
- Global Const $ws_sysmenu = 524288
- Global Const $ws_hscroll = 1048576
- Global Const $ws_vscroll = 2097152
- Global Const $ws_dlgframe = 4194304
- Global Const $ws_border = 8388608
- Global Const $ws_caption = 12582912
- Global Const $ws_overlappedwindow = 13565952
- Global Const $ws_tiledwindow = 13565952
- Global Const $ws_maximize = 16777216
- Global Const $ws_clipchildren = 33554432
- Global Const $ws_clipsiblings = 67108864
- Global Const $ws_disabled = 134217728
- Global Const $ws_visible = 268435456
- Global Const $ws_minimize = 536870912
- Global Const $ws_child = 1073741824
- Global Const $ws_popup = -2147483648
- Global Const $ws_popupwindow = -2138570752
- Global Const $ds_modalframe = 128
- Global Const $ds_setforeground = 512
- Global Const $ds_contexthelp = 8192
- Global Const $ws_ex_acceptfiles = 16
- Global Const $ws_ex_mdichild = 64
- Global Const $ws_ex_appwindow = 262144
- Global Const $ws_ex_composited = 33554432
- Global Const $ws_ex_edge = 512
- Global Const $ws_ex_contexthelp = 1024
- Global Const $ws_ex_dlgmodalframe = 1
- Global Const $ws_ex_leftscrollbar = 16384
- Global Const $ws_ex_overlappedwindow = 768
- Global Const $ws_ex_right = 4096
- Global Const $ws_ex_staticedge = 131072
- Global Const $ws_ex_toolwindow = 128
- Global Const $ws_ex_topmost = 8
- Global Const $ws_ex_transparent = 32
- Global Const $ws_ex_windowedge = 256
- Global Const $ws_ex_layered = 524288
- Global Const $ws_ex_controlparent = 65536
- Global Const $ws_ex_layoutrtl = 4194304
- Global Const $ws_ex_rtlreading = 8192
- Global Const $wm_gettextlength = 14
- Global Const $wm_gettext = 13
- Global Const $wm_size = 5
- Global Const $wm_sizing = 532
- Global Const $wm_user = 1024
- Global Const $wm_create = 1
- Global Const $wm_destroy = 2
- Global Const $wm_move = 3
- Global Const $wm_activate = 6
- Global Const $wm_setfocus = 7
- Global Const $wm_killfocus = 8
- Global Const $wm_enable = 10
- Global Const $wm_setredraw = 11
- Global Const $wm_settext = 12
- Global Const $wm_paint = 15
- Global Const $wm_close = 16
- Global Const $wm_quit = 18
- Global Const $wm_erasebkgnd = 20
- Global Const $wm_syscolorchange = 21
- Global Const $wm_showwindow = 24
- Global Const $wm_wininichange = 26
- Global Const $wm_devmodechange = 27
- Global Const $wm_activateapp = 28
- Global Const $wm_fontchange = 29
- Global Const $wm_timechange = 30
- Global Const $wm_cancelmode = 31
- Global Const $wm_setcursor = 32
- Global Const $wm_mouseactivate = 33
- Global Const $wm_childactivate = 34
- Global Const $wm_queuesync = 35
- Global Const $wm_getminmaxinfo = 36
- Global Const $wm_painticon = 38
- Global Const $wm_iconerasebkgnd = 39
- Global Const $wm_nextdlgctl = 40
- Global Const $wm_spoolerstatus = 42
- Global Const $wm_drawitem = 43
- Global Const $wm_measureitem = 44
- Global Const $wm_deleteitem = 45
- Global Const $wm_vkeytoitem = 46
- Global Const $wm_chartoitem = 47
- Global Const $wm_setfont = 48
- Global Const $wm_getfont = 49
- Global Const $wm_sethotkey = 50
- Global Const $wm_gethotkey = 51
- Global Const $wm_querydragicon = 55
- Global Const $wm_compareitem = 57
- Global Const $wm_getobject = 61
- Global Const $wm_compacting = 65
- Global Const $wm_commnotify = 68
- Global Const $wm_windowposchanging = 70
- Global Const $wm_windowposchanged = 71
- Global Const $wm_power = 72
- Global Const $wm_notify = 78
- Global Const $wm_copydata = 74
- Global Const $wm_canceljournal = 75
- Global Const $wm_inputlangchangerequest = 80
- Global Const $wm_inputlangchange = 81
- Global Const $wm_tcard = 82
- Global Const $wm_help = 83
- Global Const $wm_userchanged = 84
- Global Const $wm_notifyformat = 85
- Global Const $wm_cut = 768
- Global Const $wm_copy = 769
- Global Const $wm_paste = 770
- Global Const $wm_clear = 771
- Global Const $wm_undo = 772
- Global Const $wm_contextmenu = 123
- Global Const $wm_stylechanging = 124
- Global Const $wm_stylechanged = 125
- Global Const $wm_displaychange = 126
- Global Const $wm_geticon = 127
- Global Const $wm_seticon = 128
- Global Const $wm_nccreate = 129
- Global Const $wm_ncdestroy = 130
- Global Const $wm_nccalcsize = 131
- Global Const $wm_nchittest = 132
- Global Const $wm_ncpaint = 133
- Global Const $wm_ncactivate = 134
- Global Const $wm_getdlgcode = 135
- Global Const $wm_syncpaint = 136
- Global Const $wm_ncmousemove = 160
- Global Const $wm_nclbuttondown = 161
- Global Const $wm_nclbuttonup = 162
- Global Const $wm_nclbuttondblclk = 163
- Global Const $wm_ncrbuttondown = 164
- Global Const $wm_ncrbuttonup = 165
- Global Const $wm_ncrbuttondblclk = 166
- Global Const $wm_ncmbuttondown = 167
- Global Const $wm_ncmbuttonup = 168
- Global Const $wm_ncmbuttondblclk = 169
- Global Const $wm_keydown = 256
- Global Const $wm_keyup = 257
- Global Const $wm_char = 258
- Global Const $wm_deadchar = 259
- Global Const $wm_syskeydown = 260
- Global Const $wm_syskeyup = 261
- Global Const $wm_syschar = 262
- Global Const $wm_sysdeadchar = 263
- Global Const $wm_initdialog = 272
- Global Const $wm_command = 273
- Global Const $wm_syscommand = 274
- Global Const $wm_timer = 275
- Global Const $wm_hscroll = 276
- Global Const $wm_vscroll = 277
- Global Const $wm_initmenu = 278
- Global Const $wm_initmenupopup = 279
- Global Const $wm_menuselect = 287
- Global Const $wm_menuchar = 288
- Global Const $wm_enteridle = 289
- Global Const $wm_menurbuttonup = 290
- Global Const $wm_menudrag = 291
- Global Const $wm_menugetobject = 292
- Global Const $wm_uninitmenupopup = 293
- Global Const $wm_menucommand = 294
- Global Const $wm_changeuistate = 295
- Global Const $wm_updateuistate = 296
- Global Const $wm_queryuistate = 297
- Global Const $wm_ctlcolormsgbox = 306
- Global Const $wm_ctlcoloredit = 307
- Global Const $wm_ctlcolorlistbox = 308
- Global Const $wm_ctlcolorbtn = 309
- Global Const $wm_ctlcolordlg = 310
- Global Const $wm_ctlcolorscrollbar = 311
- Global Const $wm_ctlcolorstatic = 312
- Global Const $wm_ctlcolor = 25
- Global Const $mn_gethmenu = 481
- Global Const $nm_first = 0
- Global Const $nm_outofmemory = $nm_first - 1
- Global Const $nm_click = $nm_first - 2
- Global Const $nm_dblclk = $nm_first - 3
- Global Const $nm_return = $nm_first - 4
- Global Const $nm_rclick = $nm_first - 5
- Global Const $nm_rdblclk = $nm_first - 6
- Global Const $nm_setfocus = $nm_first - 7
- Global Const $nm_killfocus = $nm_first - 8
- Global Const $nm_customdraw = $nm_first - 12
- Global Const $nm_hover = $nm_first - 13
- Global Const $nm_nchittest = $nm_first - 14
- Global Const $nm_keydown = $nm_first - 15
- Global Const $nm_releasedcapture = $nm_first - 16
- Global Const $nm_setcursor = $nm_first - 17
- Global Const $nm_char = $nm_first - 18
- Global Const $nm_tooltipscreated = $nm_first - 19
- Global Const $nm_ldown = $nm_first - 20
- Global Const $nm_rdown = $nm_first - 21
- Global Const $nm_themechanged = $nm_first - 22
- Global Const $wm_mousemove = 512
- Global Const $wm_lbuttondown = 513
- Global Const $wm_lbuttonup = 514
- Global Const $wm_lbuttondblclk = 515
- Global Const $wm_rbuttondown = 516
- Global Const $wm_rbuttonup = 517
- Global Const $wm_rbuttondblck = 518
- Global Const $wm_mbuttondown = 519
- Global Const $wm_mbuttonup = 520
- Global Const $wm_mbuttondblck = 521
- Global Const $wm_mousewheel = 522
- Global Const $wm_xbuttondown = 523
- Global Const $wm_xbuttonup = 524
- Global Const $wm_xbuttondblclk = 525
- Global Const $wm_mousehwheel = 526
- Global Const $ps_solid = 0
- Global Const $ps_dash = 1
- Global Const $ps_dot = 2
- Global Const $ps_dashdot = 3
- Global Const $ps_dashdotdot = 4
- Global Const $ps_null = 5
- Global Const $ps_insideframe = 6
- Global Const $lwa_alpha = 2
- Global Const $lwa_colorkey = 1
- Global Const $rgn_and = 1
- Global Const $rgn_or = 2
- Global Const $rgn_xor = 3
- Global Const $rgn_diff = 4
- Global Const $rgn_copy = 5
- Global Const $errorregion = 0
- Global Const $nullregion = 1
- Global Const $simpleregion = 2
- Global Const $complexregion = 3
- Global Const $transparent = 1
- Global Const $opaque = 2
- Global Const $ccm_first = 8192
- Global Const $ccm_getunicodeformat = ($ccm_first + 6)
- Global Const $ccm_setunicodeformat = ($ccm_first + 5)
- Global Const $ccm_setbkcolor = $ccm_first + 1
- Global Const $ccm_setcolorscheme = $ccm_first + 2
- Global Const $ccm_getcolorscheme = $ccm_first + 3
- Global Const $ccm_getdroptarget = $ccm_first + 4
- Global Const $ccm_setwindowtheme = $ccm_first + 11
- Global Const $ga_parent = 1
- Global Const $ga_root = 2
- Global Const $ga_rootowner = 3
- Global Const $sm_cxscreen = 0
- Global Const $sm_cyscreen = 1
- Global Const $sm_cxvscroll = 2
- Global Const $sm_cyhscroll = 3
- Global Const $sm_cycaption = 4
- Global Const $sm_cxborder = 5
- Global Const $sm_cyborder = 6
- Global Const $sm_cxdlgframe = 7
- Global Const $sm_cydlgframe = 8
- Global Const $sm_cyvthumb = 9
- Global Const $sm_cxhthumb = 10
- Global Const $sm_cxicon = 11
- Global Const $sm_cyicon = 12
- Global Const $sm_cxcursor = 13
- Global Const $sm_cycursor = 14
- Global Const $sm_cymenu = 15
- Global Const $sm_cxfullscreen = 16
- Global Const $sm_cyfullscreen = 17
- Global Const $sm_cykanjiwindow = 18
- Global Const $sm_mousepresent = 19
- Global Const $sm_cyvscroll = 20
- Global Const $sm_cxhscroll = 21
- Global Const $sm_debug = 22
- Global Const $sm_swapbutton = 23
- Global Const $sm_reserved1 = 24
- Global Const $sm_reserved2 = 25
- Global Const $sm_reserved3 = 26
- Global Const $sm_reserved4 = 27
- Global Const $sm_cxmin = 28
- Global Const $sm_cymin = 29
- Global Const $sm_cxsize = 30
- Global Const $sm_cysize = 31
- Global Const $sm_cxframe = 32
- Global Const $sm_cyframe = 33
- Global Const $sm_cxmintrack = 34
- Global Const $sm_cymintrack = 35
- Global Const $sm_cxdoubleclk = 36
- Global Const $sm_cydoubleclk = 37
- Global Const $sm_cxiconspacing = 38
- Global Const $sm_cyiconspacing = 39
- Global Const $sm_menudropalignment = 40
- Global Const $sm_penwindows = 41
- Global Const $sm_dbcsenabled = 42
- Global Const $sm_cmousebuttons = 43
- Global Const $sm_secure = 44
- Global Const $sm_cxedge = 45
- Global Const $sm_cyedge = 46
- Global Const $sm_cxminspacing = 47
- Global Const $sm_cyminspacing = 48
- Global Const $sm_cxsmicon = 49
- Global Const $sm_cysmicon = 50
- Global Const $sm_cysmcaption = 51
- Global Const $sm_cxsmsize = 52
- Global Const $sm_cysmsize = 53
- Global Const $sm_cxmenusize = 54
- Global Const $sm_cymenusize = 55
- Global Const $sm_arrange = 56
- Global Const $sm_cxminimized = 57
- Global Const $sm_cyminimized = 58
- Global Const $sm_cxmaxtrack = 59
- Global Const $sm_cymaxtrack = 60
- Global Const $sm_cxmaximized = 61
- Global Const $sm_cymaximized = 62
- Global Const $sm_network = 63
- Global Const $sm_cleanboot = 67
- Global Const $sm_cxdrag = 68
- Global Const $sm_cydrag = 69
- Global Const $sm_showsounds = 70
- Global Const $sm_cxmenucheck = 71
- Global Const $sm_cymenucheck = 72
- Global Const $sm_slowmachine = 73
- Global Const $sm_mideastenabled = 74
- Global Const $sm_mousewheelpresent = 75
- Global Const $sm_xvirtualscreen = 76
- Global Const $sm_yvirtualscreen = 77
- Global Const $sm_cxvirtualscreen = 78
- Global Const $sm_cyvirtualscreen = 79
- Global Const $sm_cmonitors = 80
- Global Const $sm_samedisplayformat = 81
- Global Const $sm_immenabled = 82
- Global Const $sm_cxfocusborder = 83
- Global Const $sm_cyfocusborder = 84
- Global Const $sm_tabletpc = 86
- Global Const $sm_mediacenter = 87
- Global Const $sm_starter = 88
- Global Const $sm_serverr2 = 89
- Global Const $sm_cmetrics = 90
- Global Const $sm_remotesession = 4096
- Global Const $sm_shuttingdown = 8192
- Global Const $sm_remotecontrol = 8193
- Global Const $sm_caretblinkingenabled = 8194
- Global Const $blackness = 66
- Global Const $captureblt = 1073741824
- Global Const $dstinvert = 5570569
- Global Const $mergecopy = 12583114
- Global Const $mergepaint = 12255782
- Global Const $nomirrorbitmap = -2147483648
- Global Const $notsrccopy = 3342344
- Global Const $notsrcerase = 1114278
- Global Const $patcopy = 15728673
- Global Const $patinvert = 5898313
- Global Const $patpaint = 16452105
- Global Const $srcand = 8913094
- Global Const $srccopy = 13369376
- Global Const $srcerase = 4457256
- Global Const $srcinvert = 6684742
- Global Const $srcpaint = 15597702
- Global Const $whiteness = 16711778
- Global Const $dt_bottom = 8
- Global Const $dt_calcrect = 1024
- Global Const $dt_center = 1
- Global Const $dt_editcontrol = 8192
- Global Const $dt_end_ellipsis = 32768
- Global Const $dt_expandtabs = 64
- Global Const $dt_externalleading = 512
- Global Const $dt_hideprefix = 1048576
- Global Const $dt_internal = 4096
- Global Const $dt_left = 0
- Global Const $dt_modifystring = 65536
- Global Const $dt_noclip = 256
- Global Const $dt_nofullwidthcharbreak = 524288
- Global Const $dt_noprefix = 2048
- Global Const $dt_path_ellipsis = 16384
- Global Const $dt_prefixonly = 2097152
- Global Const $dt_right = 2
- Global Const $dt_rtlreading = 131072
- Global Const $dt_singleline = 32
- Global Const $dt_tabstop = 128
- Global Const $dt_top = 0
- Global Const $dt_vcenter = 4
- Global Const $dt_wordbreak = 16
- Global Const $dt_word_ellipsis = 262144
- Global Const $rdw_erase = 4
- Global Const $rdw_frame = 1024
- Global Const $rdw_internalpaint = 2
- Global Const $rdw_invalidate = 1
- Global Const $rdw_noerase = 32
- Global Const $rdw_noframe = 2048
- Global Const $rdw_nointernalpaint = 16
- Global Const $rdw_validate = 8
- Global Const $rdw_erasenow = 512
- Global Const $rdw_updatenow = 256
- Global Const $rdw_allchildren = 128
- Global Const $rdw_nochildren = 64
- Global Const $wm_renderformat = 773
- Global Const $wm_renderallformats = 774
- Global Const $wm_destroyclipboard = 775
- Global Const $wm_drawclipboard = 776
- Global Const $wm_paintclipboard = 777
- Global Const $wm_vscrollclipboard = 778
- Global Const $wm_sizeclipboard = 779
- Global Const $wm_askcbformatname = 780
- Global Const $wm_changecbchain = 781
- Global Const $wm_hscrollclipboard = 782
- Global Const $hterror = -2
- Global Const $httransparent = -1
- Global Const $htnowhere = 0
- Global Const $htclient = 1
- Global Const $htcaption = 2
- Global Const $htsysmenu = 3
- Global Const $htgrowbox = 4
- Global Const $htsize = $htgrowbox
- Global Const $htmenu = 5
- Global Const $hthscroll = 6
- Global Const $htvscroll = 7
- Global Const $htminbutton = 8
- Global Const $htmaxbutton = 9
- Global Const $htleft = 10
- Global Const $htright = 11
- Global Const $httop = 12
- Global Const $httopleft = 13
- Global Const $httopright = 14
- Global Const $htbottom = 15
- Global Const $htbottomleft = 16
- Global Const $htbottomright = 17
- Global Const $htborder = 18
- Global Const $htreduce = $htminbutton
- Global Const $htzoom = $htmaxbutton
- Global Const $htsizefirst = $htleft
- Global Const $htsizelast = $htbottomright
- Global Const $htobject = 19
- Global Const $htclose = 20
- Global Const $hthelp = 21
- Global Const $color_scrollbar = 0
- Global Const $color_background = 1
- Global Const $color_activecaption = 2
- Global Const $color_inactivecaption = 3
- Global Const $color_menu = 4
- Global Const $color_window = 5
- Global Const $color_windowframe = 6
- Global Const $color_menutext = 7
- Global Const $color_windowtext = 8
- Global Const $color_captiontext = 9
- Global Const $color_activeborder = 10
- Global Const $color_inactiveborder = 11
- Global Const $color_appworkspace = 12
- Global Const $color_highlight = 13
- Global Const $color_highlighttext = 14
- Global Const $color_btnface = 15
- Global Const $color_btnshadow = 16
- Global Const $color_graytext = 17
- Global Const $color_btntext = 18
- Global Const $color_inactivecaptiontext = 19
- Global Const $color_btnhighlight = 20
- Global Const $color_3ddkshadow = 21
- Global Const $color_3dlight = 22
- Global Const $color_infotext = 23
- Global Const $color_infobk = 24
- Global Const $color_hotlight = 26
- Global Const $color_gradientactivecaption = 27
- Global Const $color_gradientinactivecaption = 28
- Global Const $color_menuhilight = 29
- Global Const $color_menubar = 30
- Global Const $color_desktop = 1
- Global Const $color_3dface = 15
- Global Const $color_3dshadow = 16
- Global Const $color_3dhighlight = 20
- Global Const $color_3dhilight = 20
- Global Const $color_btnhilight = 20
- Global Const $hinst_commctrl = -1
- Global Const $idb_std_small_color = 0
- Global Const $idb_std_large_color = 1
- Global Const $idb_view_small_color = 4
- Global Const $idb_view_large_color = 5
- Global Const $idb_hist_small_color = 8
- Global Const $idb_hist_large_color = 9
- Global Const $startf_forceofffeedback = 128
- Global Const $startf_forceonfeedback = 64
- Global Const $startf_runfullscreen = 32
- Global Const $startf_usecountchars = 8
- Global Const $startf_usefillattribute = 16
- Global Const $startf_usehotkey = 512
- Global Const $startf_useposition = 4
- Global Const $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)
- Global Const $fw_dontcare = 0
- Global Const $fw_thin = 100
- Global Const $fw_extralight = 200
- Global Const $fw_ultralight = 200
- Global Const $fw_light = 300
- Global Const $fw_normal = 400
- Global Const $fw_regular = 400
- Global Const $fw_medium = 500
- Global Const $fw_semibold = 600
- Global Const $fw_demibold = 600
- Global Const $fw_bold = 700
- Global Const $fw_extrabold = 800
- Global Const $fw_ultrabold = 800
- Global Const $fw_heavy = 900
- Global Const $fw_black = 900
- Global Const $cf_effects = 256
- Global Const $cf_printerfonts = 2
- Global Const $cf_screenfonts = 1
- Global Const $cf_noscriptsel = 8388608
- Global Const $cf_inittologfontstruct = 64
- Global Const $logpixelsx = 88
- Global Const $logpixelsy = 90
- Global Const $ansi_charset = 0
- Global Const $baltic_charset = 186
- Global Const $chinesebig5_charset = 136
- Global Const $default_charset = 1
- Global Const $easteurope_charset = 238
- Global Const $gb2312_charset = 134
- Global Const $greek_charset = 161
- Global Const $hangeul_charset = 129
- Global Const $mac_charset = 77
- Global Const $oem_charset = 255
- Global Const $russian_charset = 204
- Global Const $shiftjis_charset = 128
- Global Const $symbol_charset = 2
- Global Const $turkish_charset = 162
- Global Const $vietnamese_charset = 163
- Global Const $out_character_precis = 2
- Global Const $out_default_precis = 0
- Global Const $out_device_precis = 5
- Global Const $out_outline_precis = 8
- Global Const $out_ps_only_precis = 10
- Global Const $out_raster_precis = 6
- Global Const $out_string_precis = 1
- Global Const $out_stroke_precis = 3
- Global Const $out_tt_only_precis = 7
- Global Const $out_tt_precis = 4
- Global Const $clip_character_precis = 1
- Global Const $clip_default_precis = 0
- Global Const $clip_embedded = 128
- Global Const $clip_lh_angles = 16
- Global Const $clip_mask = 15
- Global Const $clip_stroke_precis = 2
- Global Const $clip_tt_always = 32
- Global Const $antialiased_quality = 4
- Global Const $default_quality = 0
- Global Const $draft_quality = 1
- Global Const $nonantialiased_quality = 3
- Global Const $proof_quality = 2
- Global Const $default_pitch = 0
- Global Const $fixed_pitch = 1
- Global Const $variable_pitch = 2
- Global Const $ff_decorative = 80
- Global Const $ff_dontcare = 0
- Global Const $ff_modern = 48
- Global Const $ff_roman = 16
- Global Const $ff_script = 64
- Global Const $ff_swiss = 32
- Global Const $tagpoint = "long X;long Y"
- Global Const $tagrect = "long Left;long Top;long Right;long Bottom"
- Global Const $tagsize = "long X;long Y"
- Global Const $tagmargins = "int cxLeftWidth;int cxRightWidth;int cyTopHeight;int cyBottomHeight"
- Global Const $tagfiletime = "dword Lo;dword Hi"
- Global Const $tagsystemtime = "word Year;word Month;word Dow;word Day;word Hour;word Minute;word Second;word MSeconds"
- Global Const $tagtime_zone_information = "long Bias;wchar StdName[32];word StdDate[8];long StdBias;wchar DayName[32];word DayDate[8];long DayBias"
- Global Const $tagnmhdr = "hwnd hWndFrom;uint_ptr IDFrom;INT Code"
- Global Const $tagcomboboxexitem = "uint Mask;int_ptr Item;ptr Text;int TextMax;int Image;int SelectedImage;int OverlayImage;" & "int Indent;lparam Param"
- Global Const $tagnmcbedragbegin = $tagnmhdr & ";int ItemID;ptr szText"
- Global Const $tagnmcbeendedit = $tagnmhdr & ";bool fChanged;int NewSelection;ptr szText;int Why"
- Global Const $tagnmcomboboxex = $tagnmhdr & ";uint Mask;int_ptr Item;ptr Text;int TextMax;int Image;" & "int SelectedImage;int OverlayImage;int Indent;lparam Param"
- Global Const $tagdtprange = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;" & "word MinSecond;word MinMSecond;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;" & "word MaxMinute;word MaxSecond;word MaxMSecond;bool MinValid;bool MaxValid"
- Global Const $tagnmdatetimechange = $tagnmhdr & ";dword Flag;" & $tagsystemtime
- Global Const $tagnmdatetimeformat = $tagnmhdr & ";ptr Format;" & $tagsystemtime & ";ptr pDisplay;wchar Display[64]"
- Global Const $tagnmdatetimeformatquery = $tagnmhdr & ";ptr Format;long SizeX;long SizeY"
- Global Const $tagnmdatetimekeydown = $tagnmhdr & ";int VirtKey;ptr Format;" & $tagsystemtime
- Global Const $tagnmdatetimestring = $tagnmhdr & ";ptr UserString;" & $tagsystemtime & ";dword Flags"
- Global Const $tageventlogrecord = "dword Length;dword Reserved;dword RecordNumber;dword TimeGenerated;dword TimeWritten;dword EventID;" & "word EventType;word NumStrings;word EventCategory;word ReservedFlags;dword ClosingRecordNumber;dword StringOffset;" & "dword UserSidLength;dword UserSidOffset;dword DataLength;dword DataOffset"
- Global Const $taggdipbitmapdata = "uint Width;uint Height;int Stride;int Format;ptr Scan0;uint_ptr Reserved"
- Global Const $taggdipencoderparam = "byte GUID[16];dword Count;dword Type;ptr Values"
- Global Const $taggdipencoderparams = "dword Count;byte Params[0]"
- Global Const $taggdiprectf = "float X;float Y;float Width;float Height"
- Global Const $taggdipstartupinput = "uint Version;ptr Callback;bool NoThread;bool NoCodecs"
- Global Const $taggdipstartupoutput = "ptr HookProc;ptr UnhookProc"
- Global Const $taggdipimagecodecinfo = "byte CLSID[16];byte FormatID[16];ptr CodecName;ptr DllName;ptr FormatDesc;ptr FileExt;" & "ptr MimeType;dword Flags;dword Version;dword SigCount;dword SigSize;ptr SigPattern;ptr SigMask"
- Global Const $taggdippencoderparams = "dword Count;byte Params[0]"
- Global Const $taghditem = "uint Mask;int XY;ptr Text;handle hBMP;int TextMax;int Fmt;lparam Param;int Image;int Order;uint Type;ptr pFilter;uint State"
- Global Const $tagnmhddispinfo = $tagnmhdr & ";int Item;uint Mask;ptr Text;int TextMax;int Image;lparam lParam"
- Global Const $tagnmhdfilterbtnclick = $tagnmhdr & ";int Item;" & $tagrect
- Global Const $tagnmheader = $tagnmhdr & ";int Item;int Button;ptr pItem"
- Global Const $taggetipaddress = "byte Field4;byte Field3;byte Field2;byte Field1"
- Global Const $tagnmipaddress = $tagnmhdr & ";int Field;int Value"
- Global Const $taglvfindinfo = "uint Flags;ptr Text;lparam Param;" & $tagpoint & ";uint Direction"
- Global Const $taglvhittestinfo = $tagpoint & ";uint Flags;int Item;int SubItem"
- Global Const $taglvitem = "uint Mask;int Item;int SubItem;uint State;uint StateMask;ptr Text;int TextMax;int Image;lparam Param;" & "int Indent;int GroupID;uint Columns;ptr pColumns"
- Global Const $tagnmlistview = $tagnmhdr & ";int Item;int SubItem;uint NewState;uint OldState;uint Changed;" & "long ActionX;long ActionY;lparam Param"
- Global Const $tagnmlvcustomdraw = $tagnmhdr & ";dword dwDrawStage;handle hdc;long Left;long Top;long Right;long Bottom;" & "dword_ptr dwItemSpec;uint uItemState;lparam lItemlParam" & ";dword clrText;dword clrTextBk;int iSubItem;dword dwItemType;dword clrFace;int iIconEffect;" & "int iIconPhase;int iPartId;int iStateId;long TextLeft;long TextTop;long TextRight;long TextBottom;uint uAlign"
- Global Const $tagnmlvdispinfo = $tagnmhdr & ";" & $taglvitem
- Global Const $tagnmlvfinditem = $tagnmhdr & ";" & $taglvfindinfo
- Global Const $tagnmlvgetinfotip = $tagnmhdr & ";dword Flags;ptr Text;int TextMax;int Item;int SubItem;lparam lParam"
- Global Const $tagnmitemactivate = $tagnmhdr & ";int Index;int SubItem;uint NewState;uint OldState;uint Changed;" & $tagpoint & ";lparam lParam;uint KeyFlags"
- Global Const $tagnmlvkeydown = $tagnmhdr & ";align 1;word VKey;uint Flags"
- Global Const $tagnmlvscroll = $tagnmhdr & ";int DX;int DY"
- Global Const $tagmchittestinfo = "uint Size;" & $tagpoint & ";uint Hit;" & $tagsystemtime
- Global Const $tagmcmonthrange = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;word MinSecond;" & "word MinMSeconds;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;word MaxMinute;word MaxSecond;" & "word MaxMSeconds;short Span"
- Global Const $tagmcrange = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;word MinSecond;" & "word MinMSeconds;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;word MaxMinute;word MaxSecond;" & "word MaxMSeconds;short MinSet;short MaxSet"
- Global Const $tagmcselrange = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;word MinSecond;" & "word MinMSeconds;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;word MaxMinute;word MaxSecond;" & "word MaxMSeconds"
- Global Const $tagnmdaystate = $tagnmhdr & ";" & $tagsystemtime & ";int DayState;ptr pDayState"
- Global Const $tagnmselchange = $tagnmhdr & ";word BegYear;word BegMonth;word BegDOW;word BegDay;" & "word BegHour;word BegMinute;word BegSecond;word BegMSeconds;word EndYear;word EndMonth;word EndDOW;" & "word EndDay;word EndHour;word EndMinute;word EndSecond;word EndMSeconds"
- Global Const $tagnmobjectnotify = $tagnmhdr & ";int Item;ptr piid;ptr pObject;long Result"
- Global Const $tagnmtckeydown = $tagnmhdr & ";word VKey;uint Flags"
- Global Const $tagtvitem = "uint Mask;handle hItem;uint State;uint StateMask;ptr Text;int TextMax;int Image;int SelectedImage;" & "int Children;lparam Param"
- Global Const $tagtvitemex = $tagtvitem & ";int Integral"
- Global Const $tagnmtreeview = $tagnmhdr & ";uint Action;uint OldMask;handle OldhItem;uint OldState;uint OldStateMask;" & "ptr OldText;int OldTextMax;int OldImage;int OldSelectedImage;int OldChildren;lparam OldParam;uint NewMask;handle NewhItem;" & "uint NewState;uint NewStateMask;ptr NewText;int NewTextMax;int NewImage;int NewSelectedImage;int NewChildren;" & "lparam NewParam;long PointX;long PointY"
- Global Const $tagnmtvcustomdraw = $tagnmhdr & ";dword DrawStage;handle HDC;long Left;long Top;long Right;long Bottom;" & "dword_ptr ItemSpec;uint ItemState;lparam ItemParam;dword ClrText;dword ClrTextBk;int Level"
- Global Const $tagnmtvdispinfo = $tagnmhdr & ";" & $tagtvitem
- Global Const $tagnmtvgetinfotip = $tagnmhdr & ";ptr Text;int TextMax;handle hItem;lparam lParam"
- Global Const $tagtvhittestinfo = $tagpoint & ";uint Flags;handle Item"
- Global Const $tagnmtvkeydown = $tagnmhdr & ";word VKey;uint Flags"
- Global Const $tagnmmouse = $tagnmhdr & ";dword_ptr ItemSpec;dword_ptr ItemData;" & $tagpoint & ";lparam HitInfo"
- Global Const $tagtoken_privileges = "dword Count;int64 LUID;dword Attributes"
- Global Const $tagimageinfo = "handle hBitmap;handle hMask;int Unused1;int Unused2;" & $tagrect
- Global Const $tagmenuinfo = "dword Size;INT Mask;dword Style;uint YMax;handle hBack;dword ContextHelpID;ulong_ptr MenuData"
- Global Const $tagmenuiteminfo = "uint Size;uint Mask;uint Type;uint State;uint ID;handle SubMenu;handle BmpChecked;handle BmpUnchecked;" & "ulong_ptr ItemData;ptr TypeData;uint CCH;handle BmpItem"
- Global Const $tagrebarbandinfo = "uint cbSize;uint fMask;uint fStyle;dword clrFore;dword clrBack;ptr lpText;uint cch;" & "int iImage;hwnd hwndChild;uint cxMinChild;uint cyMinChild;uint cx;handle hbmBack;uint wID;uint cyChild;uint cyMaxChild;" & "uint cyIntegral;uint cxIdeal;lparam lParam;uint cxHeader"
- Global Const $tagnmrebarautobreak = $tagnmhdr & ";uint uBand;uint wID;lparam lParam;uint uMsg;uint fStyleCurrent;bool fAutoBreak"
- Global Const $tagnmrbautosize = $tagnmhdr & ";bool fChanged;long TargetLeft;long TargetTop;long TargetRight;long TargetBottom;" & "long ActualLeft;long ActualTop;long ActualRight;long ActualBottom"
- Global Const $tagnmrebar = $tagnmhdr & ";dword dwMask;uint uBand;uint fStyle;uint wID;laram lParam"
- Global Const $tagnmrebarchevron = $tagnmhdr & ";uint uBand;uint wID;lparam lParam;" & $tagrect & ";lparam lParamNM"
- Global Const $tagnmrebarchildsize = $tagnmhdr & ";uint uBand;uint wID;long CLeft;long CTop;long CRight;long CBottom;" & "long BLeft;long BTop;long BRight;long BBottom"
- Global Const $tagcolorscheme = "dword Size;dword BtnHighlight;dword BtnShadow"
- Global Const $tagnmtoolbar = $tagnmhdr & ";int iItem;" & "int iBitmap;int idCommand;byte fsState;byte fsStyle;align;dword_ptr dwData;int_ptr iString" & ";int cchText;ptr pszText;" & $tagrect
- Global Const $tagnmtbhotitem = $tagnmhdr & ";int idOld;int idNew;dword dwFlags"
- Global Const $tagtbbutton = "int Bitmap;int Command;byte State;byte Style;align;dword_ptr Param;int_ptr String"
- Global Const $tagtbbuttoninfo = "uint Size;dword Mask;int Command;int Image;byte State;byte Style;word CX;dword_ptr Param;ptr Text;int TextMax"
- Global Const $tagnetresource = "dword Scope;dword Type;dword DisplayType;dword Usage;ptr LocalName;ptr RemoteName;ptr Comment;ptr Provider"
- Global Const $tagoverlapped = "ulong_ptr Internal;ulong_ptr InternalHigh;dword Offset;dword OffsetHigh;handle hEvent"
- Global Const $tagopenfilename = "dword StructSize;hwnd hwndOwner;handle hInstance;ptr lpstrFilter;ptr lpstrCustomFilter;" & "dword nMaxCustFilter;dword nFilterIndex;ptr lpstrFile;dword nMaxFile;ptr lpstrFileTitle;dword nMaxFileTitle;" & "ptr lpstrInitialDir;ptr lpstrTitle;dword Flags;word nFileOffset;word nFileExtension;ptr lpstrDefExt;lparam lCustData;" & "ptr lpfnHook;ptr lpTemplateName;ptr pvReserved;dword dwReserved;dword FlagsEx"
- Global Const $tagbitmapinfo = "dword Size;long Width;long Height;word Planes;word BitCount;dword Compression;dword SizeImage;" & "long XPelsPerMeter;long YPelsPerMeter;dword ClrUsed;dword ClrImportant;dword RGBQuad"
- Global Const $tagblendfunction = "byte Op;byte Flags;byte Alpha;byte Format"
- Global Const $tagguid = "dword Data1;word Data2;word Data3;byte Data4[8]"
- Global Const $tagwindowplacement = "uint length; uint flags;uint showCmd;long ptMinPosition[2];long ptMaxPosition[2];long rcNormalPosition[4]"
- Global Const $tagwindowpos = "hwnd hWnd;hwnd InsertAfter;int X;int Y;int CX;int CY;uint Flags"
- Global Const $tagscrollinfo = "uint cbSize;uint fMask;int nMin;int nMax;uint nPage;int nPos;int nTrackPos"
- Global Const $tagscrollbarinfo = "dword cbSize;" & $tagrect & ";int dxyLineButton;int xyThumbTop;" & "int xyThumbBottom;int reserved;dword rgstate[6]"
- Global Const $taglogfont = "long Height;long Width;long Escapement;long Orientation;long Weight;byte Italic;byte Underline;" & "byte Strikeout;byte CharSet;byte OutPrecision;byte ClipPrecision;byte Quality;byte PitchAndFamily;wchar FaceName[32]"
- Global Const $tagkbdllhookstruct = "dword vkCode;dword scanCode;dword flags;dword time;ulong_ptr dwExtraInfo"
- Global Const $tagprocess_information = "handle hProcess;handle hThread;dword ProcessID;dword ThreadID"
- Global Const $tagstartupinfo = "dword Size;ptr Reserved1;ptr Desktop;ptr Title;dword X;dword Y;dword XSize;dword YSize;dword XCountChars;" & "dword YCountChars;dword FillAttribute;dword Flags;word ShowWindow;word Reserved2;ptr Reserved3;handle StdInput;" & "handle StdOutput;handle StdError"
- Global Const $tagsecurity_attributes = "dword Length;ptr Descriptor;bool InheritHandle"
- Global Const $tagwin32_find_data = "dword dwFileAttributes; dword ftCreationTime[2]; dword ftLastAccessTime[2]; dword ftLastWriteTime[2]; dword nFileSizeHigh; dword nFileSizeLow; dword dwReserved0; dword dwReserved1; wchar cFileName[260]; wchar cAlternateFileName[14]"
- Func _winapi_getlasterror($curerr = @error, $curext = @extended)
- Local $aresult = DllCall("kernel32.dll", "dword", "GetLastError")
- Return SetError($curerr, $curext, $aresult[0])
- EndFunc
- Func _winapi_setlasterror($ierrcode, $curerr = @error, $curext = @extended)
- DllCall("kernel32.dll", "none", "SetLastError", "dword", $ierrcode)
- Return SetError($curerr, $curext)
- EndFunc
- Global Const $__miscconstant_cc_anycolor = 256
- Global Const $__miscconstant_cc_fullopen = 2
- Global Const $__miscconstant_cc_rgbinit = 1
- Global Const $tagchoosecolor = "dword Size;hwnd hWndOwnder;handle hInstance;dword rgbResult;ptr CustColors;dword Flags;lparam lCustData;" & "ptr lpfnHook;ptr lpTemplateName"
- Global Const $tagchoosefont = "dword Size;hwnd hWndOwner;handle hDC;ptr LogFont;int PointSize;dword Flags;dword rgbColors;lparam CustData;" & "ptr fnHook;ptr TemplateName;handle hInstance;ptr szStyle;word FontType;int SizeMin;int SizeMax"
- Func _choosecolor($ireturntype = 0, $icolorref = 0, $ireftype = 0, $hwndownder = 0)
- Local $custcolors = "dword[16]"
- Local $tchoose = DllStructCreate($tagchoosecolor)
- Local $tcc = DllStructCreate($custcolors)
- If $ireftype = 1 Then
- $icolorref = Int($icolorref)
- ElseIf $ireftype = 2 Then
- $icolorref = Hex(String($icolorref), 6)
- $icolorref = "0x" & StringMid($icolorref, 5, 2) & StringMid($icolorref, 3, 2) & StringMid($icolorref, 1, 2)
- EndIf
- DllStructSetData($tchoose, "Size", DllStructGetSize($tchoose))
- DllStructSetData($tchoose, "hWndOwnder", $hwndownder)
- DllStructSetData($tchoose, "rgbResult", $icolorref)
- DllStructSetData($tchoose, "CustColors", DllStructGetPtr($tcc))
- DllStructSetData($tchoose, "Flags", BitOR($__miscconstant_cc_anycolor, $__miscconstant_cc_fullopen, $__miscconstant_cc_rgbinit))
- Local $aresult = DllCall("comdlg32.dll", "bool", "ChooseColor", "ptr", DllStructGetPtr($tchoose))
- If @error Then Return SetError(@error, @extended, -1)
- If $aresult[0] = 0 Then Return SetError(-3, -3, -1)
- Local $color_picked = DllStructGetData($tchoose, "rgbResult")
- If $ireturntype = 1 Then
- Return "0x" & Hex(String($color_picked), 6)
- ElseIf $ireturntype = 2 Then
- $color_picked = Hex(String($color_picked), 6)
- Return "0x" & StringMid($color_picked, 5, 2) & StringMid($color_picked, 3, 2) & StringMid($color_picked, 1, 2)
- ElseIf $ireturntype = 0 Then
- Return $color_picked
- Else
- Return SetError(-4, -4, -1)
- EndIf
- EndFunc
- Func _choosefont($sfontname = "Courier New", $ipointsize = 10, $icolorref = 0, $ifontweight = 0, $iitalic = False, $iunderline = False, $istrikethru = False, $hwndowner = 0)
- Local $italic = 0, $underline = 0, $strikeout = 0
- Local $lngdc = __misc_getdc(0)
- Local $lfheight = Round(($ipointsize * __misc_getdevicecaps($lngdc, $logpixelsx)) / 72, 0)
- __misc_releasedc(0, $lngdc)
- Local $tchoosefont = DllStructCreate($tagchoosefont)
- Local $tlogfont = DllStructCreate($taglogfont)
- DllStructSetData($tchoosefont, "Size", DllStructGetSize($tchoosefont))
- DllStructSetData($tchoosefont, "hWndOwner", $hwndowner)
- DllStructSetData($tchoosefont, "LogFont", DllStructGetPtr($tlogfont))
- DllStructSetData($tchoosefont, "PointSize", $ipointsize)
- DllStructSetData($tchoosefont, "Flags", BitOR($cf_screenfonts, $cf_printerfonts, $cf_effects, $cf_inittologfontstruct, $cf_noscriptsel))
- DllStructSetData($tchoosefont, "rgbColors", $icolorref)
- DllStructSetData($tchoosefont, "FontType", 0)
- DllStructSetData($tlogfont, "Height", $lfheight)
- DllStructSetData($tlogfont, "Weight", $ifontweight)
- DllStructSetData($tlogfont, "Italic", $iitalic)
- DllStructSetData($tlogfont, "Underline", $iunderline)
- DllStructSetData($tlogfont, "Strikeout", $istrikethru)
- DllStructSetData($tlogfont, "FaceName", $sfontname)
- Local $aresult = DllCall("comdlg32.dll", "bool", "ChooseFontW", "ptr", DllStructGetPtr($tchoosefont))
- If @error Then Return SetError(@error, @extended, -1)
- If $aresult[0] = 0 Then Return SetError(-3, -3, -1)
- Local $fontname = DllStructGetData($tlogfont, "FaceName")
- If StringLen($fontname) = 0 AND StringLen($sfontname) > 0 Then $fontname = $sfontname
- If DllStructGetData($tlogfont, "Italic") Then $italic = 2
- If DllStructGetData($tlogfont, "Underline") Then $underline = 4
- If DllStructGetData($tlogfont, "Strikeout") Then $strikeout = 8
- Local $attributes = BitOR($italic, $underline, $strikeout)
- Local $size = DllStructGetData($tchoosefont, "PointSize") / 10
- Local $colorref = DllStructGetData($tchoosefont, "rgbColors")
- Local $weight = DllStructGetData($tlogfont, "Weight")
- Local $color_picked = Hex(String($colorref), 6)
- Return StringSplit($attributes & "," & $fontname & "," & $size & "," & $weight & "," & $colorref & "," & "0x" & $color_picked & "," & "0x" & StringMid($color_picked, 5, 2) & StringMid($color_picked, 3, 2) & StringMid($color_picked, 1, 2), ",")
- EndFunc
- Func _clipputfile($sfile, $sseparator = "|")
- Local Const $gmem_moveable = 2, $cf_hdrop = 15
- $sfile &= $sseparator & $sseparator
- Local $nglobmemsize = (StringLen($sfile) + 20)
- Local $aresult = DllCall("user32.dll", "bool", "OpenClipboard", "hwnd", 0)
- If @error OR $aresult[0] = 0 Then Return SetError(1, _winapi_getlasterror(), False)
- Local $ierror = 0, $ilasterror = 0
- $aresult = DllCall("user32.dll", "bool", "EmptyClipboard")
- If @error OR NOT $aresult[0] Then
- $ierror = 2
- $ilasterror = _winapi_getlasterror()
- Else
- $aresult = DllCall("kernel32.dll", "handle", "GlobalAlloc", "uint", $gmem_moveable, "ulong_ptr", $nglobmemsize)
- If @error OR NOT $aresult[0] Then
- $ierror = 3
- $ilasterror = _winapi_getlasterror()
- Else
- Local $hglobal = $aresult[0]
- $aresult = DllCall("kernel32.dll", "ptr", "GlobalLock", "handle", $hglobal)
- If @error OR NOT $aresult[0] Then
- $ierror = 4
- $ilasterror = _winapi_getlasterror()
- Else
- Local $hlock = $aresult[0]
- Local $dropfiles = DllStructCreate("dword;ptr;int;int;int;char[" & StringLen($sfile) + 1 & "]", $hlock)
- If @error Then Return SetError(5, 6, False)
- Local $tempstruct = DllStructCreate("dword;ptr;int;int;int")
- DllStructSetData($dropfiles, 1, DllStructGetSize($tempstruct))
- DllStructSetData($dropfiles, 2, 0)
- DllStructSetData($dropfiles, 3, 0)
- DllStructSetData($dropfiles, 4, 0)
- DllStructSetData($dropfiles, 5, 0)
- DllStructSetData($dropfiles, 6, $sfile)
- For $i = 1 To StringLen($sfile)
- If DllStructGetData($dropfiles, 6, $i) = $sseparator Then DllStructSetData($dropfiles, 6, Chr(0), $i)
- Next
- $aresult = DllCall("user32.dll", "handle", "SetClipboardData", "uint", $cf_hdrop, "handle", $hglobal)
- If @error OR NOT $aresult[0] Then
- $ierror = 6
- $ilasterror = _winapi_getlasterror()
- EndIf
- $aresult = DllCall("kernel32.dll", "bool", "GlobalUnlock", "handle", $hglobal)
- If (@error OR NOT $aresult[0]) AND NOT $ierror AND _winapi_getlasterror() Then
- $ierror = 8
- $ilasterror = _winapi_getlasterror()
- EndIf
- EndIf
- $aresult = DllCall("kernel32.dll", "ptr", "GlobalFree", "handle", $hglobal)
- If (@error OR NOT $aresult[0]) AND NOT $ierror Then
- $ierror = 9
- $ilasterror = _winapi_getlasterror()
- EndIf
- EndIf
- EndIf
- $aresult = DllCall("user32.dll", "bool", "CloseClipboard")
- If (@error OR NOT $aresult[0]) AND NOT $ierror Then Return SetError(7, _winapi_getlasterror(), False)
- If $ierror Then Return SetError($ierror, $ilasterror, False)
- Return True
- EndFunc
- Func _iif($ftest, $vtrueval, $vfalseval)
- If $ftest Then
- Return $vtrueval
- Else
- Return $vfalseval
- EndIf
- EndFunc
- Func _mousetrap($ileft = 0, $itop = 0, $iright = 0, $ibottom = 0)
- Local $aresult
- If @NumParams == 0 Then
- $aresult = DllCall("user32.dll", "bool", "ClipCursor", "ptr", 0)
- If @error OR NOT $aresult[0] Then Return SetError(1, _winapi_getlasterror(), False)
- Else
- If @NumParams == 2 Then
- $iright = $ileft + 1
- $ibottom = $itop + 1
- EndIf
- Local $trect = DllStructCreate($tagrect)
- DllStructSetData($trect, "Left", $ileft)
- DllStructSetData($trect, "Top", $itop)
- DllStructSetData($trect, "Right", $iright)
- DllStructSetData($trect, "Bottom", $ibottom)
- $aresult = DllCall("user32.dll", "bool", "ClipCursor", "ptr", DllStructGetPtr($trect))
- If @error OR NOT $aresult[0] Then Return SetError(2, _winapi_getlasterror(), False)
- EndIf
- Return True
- EndFunc
- Func _singleton($soccurencename, $iflag = 0)
- Local Const $error_already_exists = 183
- Local Const $security_descriptor_revision = 1
- Local $psecurityattributes = 0
- If BitAND($iflag, 2) Then
- Local $tsecuritydescriptor = DllStructCreate("dword[5]")
- Local $psecuritydescriptor = DllStructGetPtr($tsecuritydescriptor)
- Local $aret = DllCall("advapi32.dll", "bool", "InitializeSecurityDescriptor", "ptr", $psecuritydescriptor, "dword", $security_descriptor_revision)
- If @error Then Return SetError(@error, @extended, 0)
- If $aret[0] Then
- $aret = DllCall("advapi32.dll", "bool", "SetSecurityDescriptorDacl", "ptr", $psecuritydescriptor, "bool", 1, "ptr", 0, "bool", 0)
- If @error Then Return SetError(@error, @extended, 0)
- If $aret[0] Then
- Local $structsecurityattributes = DllStructCreate($tagsecurity_attributes)
- DllStructSetData($structsecurityattributes, 1, DllStructGetSize($structsecurityattributes))
- DllStructSetData($structsecurityattributes, 2, $psecuritydescriptor)
- DllStructSetData($structsecurityattributes, 3, 0)
- $psecurityattributes = DllStructGetPtr($structsecurityattributes)
- EndIf
- EndIf
- EndIf
- Local $handle = DllCall("kernel32.dll", "handle", "CreateMutexW", "ptr", $psecurityattributes, "bool", 1, "wstr", $soccurencename)
- If @error Then Return SetError(@error, @extended, 0)
- Local $lasterror = DllCall("kernel32.dll", "dword", "GetLastError")
- If @error Then Return SetError(@error, @extended, 0)
- If $lasterror[0] = $error_already_exists Then
- If BitAND($iflag, 1) Then
- Return SetError($lasterror[0], $lasterror[0], 0)
- Else
- Exit -1
- EndIf
- EndIf
- Return $handle[0]
- EndFunc
- Func _ispressed($shexkey, $vdll = "user32.dll")
- Local $a_r = DllCall($vdll, "short", "GetAsyncKeyState", "int", "0x" & $shexkey)
- If @error Then Return SetError(@error, @extended, False)
- Return BitAND($a_r[0], 32768) <> 0
- EndFunc
- Func _versioncompare($sversion1, $sversion2)
- If $sversion1 = $sversion2 Then Return 0
- Local $sep = "."
- If StringInStr($sversion1, $sep) = 0 Then $sep = ","
- Local $aversion1 = StringSplit($sversion1, $sep)
- Local $aversion2 = StringSplit($sversion2, $sep)
- If UBound($aversion1) <> UBound($aversion2) OR UBound($aversion1) = 0 Then
- SetExtended(1)
- If $sversion1 > $sversion2 Then
- Return 1
- ElseIf $sversion1 < $sversion2 Then
- Return -1
- EndIf
- Else
- For $i = 1 To UBound($aversion1) - 1
- If StringIsDigit($aversion1[$i]) AND StringIsDigit($aversion2[$i]) Then
- If Number($aversion1[$i]) > Number($aversion2[$i]) Then
- Return 1
- ElseIf Number($aversion1[$i]) < Number($aversion2[$i]) Then
- Return -1
- EndIf
- Else
- SetExtended(1)
- If $aversion1[$i] > $aversion2[$i] Then
- Return 1
- ElseIf $aversion1[$i] < $aversion2[$i] Then
- Return -1
- EndIf
- EndIf
- Next
- EndIf
- Return SetError(2, 0, 0)
- EndFunc
- Func __misc_getdc($hwnd)
- Local $aresult = DllCall("User32.dll", "handle", "GetDC", "hwnd", $hwnd)
- If @error OR NOT $aresult[0] Then Return SetError(1, _winapi_getlasterror(), 0)
- Return $aresult[0]
- EndFunc
- Func __misc_getdevicecaps($hdc, $iindex)
- Local $aresult = DllCall("GDI32.dll", "int", "GetDeviceCaps", "handle", $hdc, "int", $iindex)
- If @error Then Return SetError(@error, @extended, 0)
- Return $aresult[0]
- EndFunc
- Func __misc_releasedc($hwnd, $hdc)
- Local $aresult = DllCall("User32.dll", "int", "ReleaseDC", "hwnd", $hwnd, "handle", $hdc)
- If @error Then Return SetError(@error, @extended, False)
- Return $aresult[0] <> 0
- EndFunc
- Func _arrayadd(ByRef $avarray, $vvalue)
- If NOT IsArray($avarray) Then Return SetError(1, 0, -1)
- If UBound($avarray, 0) <> 1 Then Return SetError(2, 0, -1)
- Local $iubound = UBound($avarray)
- ReDim $avarray[$iubound + 1]
- $avarray[$iubound] = $vvalue
- Return $iubound
- EndFunc
- Func _arraybinarysearch(Const ByRef $avarray, $vvalue, $istart = 0, $iend = 0)
- If NOT IsArray($avarray) Then Return SetError(1, 0, -1)
- If UBound($avarray, 0) <> 1 Then Return SetError(5, 0, -1)
- Local $iubound = UBound($avarray) - 1
- If $iend < 1 OR $iend > $iubound Then $iend = $iubound
- If $istart < 0 Then $istart = 0
- If $istart > $iend Then Return SetError(4, 0, -1)
- Local $imid = Int(($iend + $istart) / 2)
- If $avarray[$istart] > $vvalue OR $avarray[$iend] < $vvalue Then Return SetError(2, 0, -1)
- While $istart <= $imid AND $vvalue <> $avarray[$imid]
- If $vvalue < $avarray[$imid] Then
- $iend = $imid - 1
- Else
- $istart = $imid + 1
- EndIf
- $imid = Int(($iend + $istart) / 2)
- WEnd
- If $istart > $iend Then Return SetError(3, 0, -1)
- Return $imid
- EndFunc
- Func _arraycombinations(ByRef $avarray, $iset, $sdelim = "")
- If NOT IsArray($avarray) Then Return SetError(1, 0, 0)
- If UBound($avarray, 0) <> 1 Then Return SetError(2, 0, 0)
- Local $in = UBound($avarray)
- Local $ir = $iset
- Local $aidx[$ir]
- For $i = 0 To $ir - 1
- $aidx[$i] = $i
- Next
- Local $itotal = __array_combinations($in, $ir)
- Local $ileft = $itotal
- Local $aresult[$itotal + 1]
- $aresult[0] = $itotal
- Local $icount = 1
- While $ileft > 0
- __array_getnext($in, $ir, $ileft, $itotal, $aidx)
- For $i = 0 To $iset - 1
- $aresult[$icount] &= $avarray[$aidx[$i]] & $sdelim
- Next
- If $sdelim <> "" Then $aresult[$icount] = StringTrimRight($aresult[$icount], 1)
- $icount += 1
- WEnd
- Return $aresult
- EndFunc
- Func _arrayconcatenate(ByRef $avarraytarget, Const ByRef $avarraysource, $istart = 0)
- If NOT IsArray($avarraytarget) Then Return SetError(1, 0, 0)
- If NOT IsArray($avarraysource) Then Return SetError(2, 0, 0)
- If UBound($avarraytarget, 0) <> 1 Then
- If UBound($avarraysource, 0) <> 1 Then Return SetError(5, 0, 0)
- Return SetError(3, 0, 0)
- EndIf
- If UBound($avarraysource, 0) <> 1 Then Return SetError(4, 0, 0)
- Local $iuboundtarget = UBound($avarraytarget) - $istart, $iuboundsource = UBound($avarraysource)
- ReDim $avarraytarget[$iuboundtarget + $iuboundsource]
- For $i = $istart To $iuboundsource - 1
- $avarraytarget[$iuboundtarget + $i] = $avarraysource[$i]
- Next
- Return $iuboundtarget + $iuboundsource
- EndFunc
- Func _arraycreate($v_0, $v_1 = 0, $v_2 = 0, $v_3 = 0, $v_4 = 0, $v_5 = 0, $v_6 = 0, $v_7 = 0, $v_8 = 0, $v_9 = 0, $v_10 = 0, $v_11 = 0, $v_12 = 0, $v_13 = 0, $v_14 = 0, $v_15 = 0, $v_16 = 0, $v_17 = 0, $v_18 = 0, $v_19 = 0, $v_20 = 0)
- Local $av_array[21] = [$v_0, $v_1, $v_2, $v_3, $v_4, $v_5, $v_6, $v_7, $v_8, $v_9, $v_10, $v_11, $v_12, $v_13, $v_14, $v_15, $v_16, $v_17, $v_18, $v_19, $v_20]
- ReDim $av_array[@NumParams]
- Return $av_array
- EndFunc
- Func _arraydelete(ByRef $avarray, $ielement)
- If NOT IsArray($avarray) Then Return SetError(1, 0, 0)
- Local $iubound = UBound($avarray, 1) - 1
- If NOT $iubound Then
- $avarray = ""
- Return 0
- EndIf
- If $ielement < 0 Then $ielement = 0
- If $ielement > $iubound Then $ielement = $iubound
- Switch UBound($avarray, 0)
- Case 1
- For $i = $ielement To $iubound - 1
- $avarray[$i] = $avarray[$i + 1]
- Next
- ReDim $avarray[$iubound]
- Case 2
- Local $isubmax = UBound($avarray, 2) - 1
- For $i = $ielement To $iubound - 1
- For $j = 0 To $isubmax
- $avarray[$i][$j] = $avarray[$i + 1][$j]
- Next
- Next
- ReDim $avarray[$iubound][$isubmax + 1]
- Case Else
- Return SetError(3, 0, 0)
- EndSwitch
- Return $iubound
- EndFunc
- Func _arraydisplay(Const ByRef $avarray, $stitle = "Array: ListView Display", $iitemlimit = -1, $itranspose = 0, $sseparator = "", $sreplace = "|", $sheader = "")
- If NOT IsArray($avarray) Then Return SetError(1, 0, 0)
- Local $idimension = UBound($avarray, 0), $iubound = UBound($avarray, 1) - 1, $isubmax = UBound($avarray, 2) - 1
- If $idimension > 2 Then Return SetError(2, 0, 0)
- If $sseparator = "" Then $sseparator = Chr(124)
- If _arraysearch($avarray, $sseparator, 0, 0, 0, 1) <> -1 Then
- For $x = 1 To 255
- If $x >= 32 AND $x <= 127 Then ContinueLoop
- Local $sfind = _arraysearch($avarray, Chr($x), 0, 0, 0, 1)
- If $sfind = -1 Then
- $sseparator = Chr($x)
- ExitLoop
- EndIf
- Next
- EndIf
- Local $vtmp, $ibuffer = 64
- Local $icollimit = 250
- Local $ioneventmode = Opt("GUIOnEventMode", 0), $sdataseparatorchar = Opt("GUIDataSeparatorChar", $sseparator)
- If $isubmax < 0 Then $isubmax = 0
- If $itranspose Then
- $vtmp = $iubound
- $iubound = $isubmax
- $isubmax = $vtmp
- EndIf
- If $isubmax > $icollimit Then $isubmax = $icollimit
- If $iitemlimit < 1 Then $iitemlimit = $iubound
- If $iubound > $iitemlimit Then $iubound = $iitemlimit
- If $sheader = "" Then
- $sheader = "Row "
- For $i = 0 To $isubmax
- $sheader &= $sseparator & "Col " & $i
- Next
- EndIf
- Local $avarraytext[$iubound + 1]
- For $i = 0 To $iubound
- $avarraytext[$i] = "[" & $i & "]"
- For $j = 0 To $isubmax
- If $idimension = 1 Then
- If $itranspose Then
- $vtmp = $avarray[$j]
- Else
- $vtmp = $avarray[$i]
- EndIf
- Else
- If $itranspose Then
- $vtmp = $avarray[$j][$i]
- Else
- $vtmp = $avarray[$i][$j]
- EndIf
- EndIf
- $vtmp = StringReplace($vtmp, $sseparator, $sreplace, 0, 1)
- $avarraytext[$i] &= $sseparator & $vtmp
- $vtmp = StringLen($vtmp)
- If $vtmp > $ibuffer Then $ibuffer = $vtmp
- Next
- Next
- $ibuffer += 1
- Local Const $_arrayconstant_gui_dockborders = 102
- Local Const $_arrayconstant_gui_dockbottom = 64
- Local Const $_arrayconstant_gui_dockheight = 512
- Local Const $_arrayconstant_gui_dockleft = 2
- Local Const $_arrayconstant_gui_dockright = 4
- Local Const $_arrayconstant_gui_event_close = -3
- Local Const $_arrayconstant_lvif_param = 4
- Local Const $_arrayconstant_lvif_text = 1
- Local Const $_arrayconstant_lvm_getcolumnwidth = (4096 + 29)
- Local Const $_arrayconstant_lvm_getitemcount = (4096 + 4)
- Local Const $_arrayconstant_lvm_getitemstate = (4096 + 44)
- Local Const $_arrayconstant_lvm_insertitemw = (4096 + 77)
- Local Const $_arrayconstant_lvm_setextendedlistviewstyle = (4096 + 54)
- Local Const $_arrayconstant_lvm_setitemw = (4096 + 76)
- Local Const $_arrayconstant_lvs_ex_fullrowselect = 32
- Local Const $_arrayconstant_lvs_ex_gridlines = 1
- Local Const $_arrayconstant_lvs_showselalways = 8
- Local Const $_arrayconstant_ws_ex_clientedge = 512
- Local Const $_arrayconstant_ws_maximizebox = 65536
- Local Const $_arrayconstant_ws_minimizebox = 131072
- Local Const $_arrayconstant_ws_sizebox = 262144
- Local Const $_arrayconstant_taglvitem = "int Mask;int Item;int SubItem;int State;int StateMask;ptr Text;int TextMax;int Image;int Param;int Indent;int GroupID;int Columns;ptr pColumns"
- Local $iaddmask = BitOR($_arrayconstant_lvif_text, $_arrayconstant_lvif_param)
- Local $tbuffer = DllStructCreate("wchar Text[" & $ibuffer & "]"), $pbuffer = DllStructGetPtr($tbuffer)
- Local $titem = DllStructCreate($_arrayconstant_taglvitem), $pitem = DllStructGetPtr($titem)
- DllStructSetData($titem, "Param", 0)
- DllStructSetData($titem, "Text", $pbuffer)
- DllStructSetData($titem, "TextMax", $ibuffer)
- Local $iwidth = 640, $iheight = 480
- Local $hgui = GUICreate($stitle, $iwidth, $iheight, Default, Default, BitOR($_arrayconstant_ws_sizebox, $_arrayconstant_ws_minimizebox, $_arrayconstant_ws_maximizebox))
- Local $aiguisize = WinGetClientSize($hgui)
- Local $hlistview = GUICtrlCreateListView($sheader, 0, 0, $aiguisize[0], $aiguisize[1] - 26, $_arrayconstant_lvs_showselalways)
- Local $hcopy = GUICtrlCreateButton("Copy Selected", 3, $aiguisize[1] - 23, $aiguisize[0] - 6, 20)
- GUICtrlSetResizing($hlistview, $_arrayconstant_gui_dockborders)
- GUICtrlSetResizing($hcopy, $_arrayconstant_gui_dockleft + $_arrayconstant_gui_dockright + $_arrayconstant_gui_dockbottom + $_arrayconstant_gui_dockheight)
- GUICtrlSendMsg($hlistview, $_arrayconstant_lvm_setextendedlistviewstyle, $_arrayconstant_lvs_ex_gridlines, $_arrayconstant_lvs_ex_gridlines)
- GUICtrlSendMsg($hlistview, $_arrayconstant_lvm_setextendedlistviewstyle, $_arrayconstant_lvs_ex_fullrowselect, $_arrayconstant_lvs_ex_fullrowselect)
- GUICtrlSendMsg($hlistview, $_arrayconstant_lvm_setextendedlistviewstyle, $_arrayconstant_ws_ex_clientedge, $_arrayconstant_ws_ex_clientedge)
- Local $aitem
- For $i = 0 To $iubound
- If GUICtrlCreateListViewItem($avarraytext[$i], $hlistview) = 0 Then
- $aitem = StringSplit($avarraytext[$i], $sseparator)
- DllStructSetData($tbuffer, "Text", $aitem[1])
- DllStructSetData($titem, "Item", $i)
- DllStructSetData($titem, "SubItem", 0)
- DllStructSetData($titem, "Mask", $iaddmask)
- GUICtrlSendMsg($hlistview, $_arrayconstant_lvm_insertitemw, 0, $pitem)
- DllStructSetData($titem, "Mask", $_arrayconstant_lvif_text)
- For $j = 2 To $aitem[0]
- DllStructSetData($tbuffer, "Text", $aitem[$j])
- DllStructSetData($titem, "SubItem", $j - 1)
- GUICtrlSendMsg($hlistview, $_arrayconstant_lvm_setitemw, 0, $pitem)
- Next
- EndIf
- Next
- $iwidth = 0
- For $i = 0 To $isubmax + 1
- $iwidth += GUICtrlSendMsg($hlistview, $_arrayconstant_lvm_getcolumnwidth, $i, 0)
- Next
- If $iwidth < 250 Then $iwidth = 230
- $iwidth += 20
- If $iwidth > @DesktopWidth Then $iwidth = @DesktopWidth - 100
- WinMove($hgui, "", (@DesktopWidth - $iwidth) / 2, Default, $iwidth)
- GUISetState(@SW_SHOW, $hgui)
- While 1
- Switch GUIGetMsg()
- Case $_arrayconstant_gui_event_close
- ExitLoop
- Case $hcopy
- Local $sclip = ""
- Local $aicuritems[1] = [0]
- For $i = 0 To GUICtrlSendMsg($hlistview, $_arrayconstant_lvm_getitemcount, 0, 0)
- If GUICtrlSendMsg($hlistview, $_arrayconstant_lvm_getitemstate, $i, 2) Then
- $aicuritems[0] += 1
- ReDim $aicuritems[$aicuritems[0] + 1]
- $aicuritems[$aicuritems[0]] = $i
- EndIf
- Next
- If NOT $aicuritems[0] Then
- For $sitem In $avarraytext
- $sclip &= $sitem & @CRLF
- Next
- Else
- For $i = 1 To UBound($aicuritems) - 1
- $sclip &= $avarraytext[$aicuritems[$i]] & @CRLF
- Next
- EndIf
- ClipPut($sclip)
- EndSwitch
- WEnd
- GUIDelete($hgui)
- Opt("GUIOnEventMode", $ioneventmode)
- Opt("GUIDataSeparatorChar", $sdataseparatorchar)
- Return 1
- EndFunc
- Func _arrayfindall(Const ByRef $avarray, $vvalue, $istart = 0, $iend = 0, $icase = 0, $ipartial = 0, $isubitem = 0)
- $istart = _arraysearch($avarray, $vvalue, $istart, $iend, $icase, $ipartial, 1, $isubitem)
- If @error Then Return SetError(@error, 0, -1)
- Local $iindex = 0, $avresult[UBound($avarray)]
- Do
- $avresult[$iindex] = $istart
- $iindex += 1
- $istart = _arraysearch($avarray, $vvalue, $istart + 1, $iend, $icase, $ipartial, 1, $isubitem)
- Until @error
- ReDim $avresult[$iindex]
- Return $avresult
- EndFunc
- Func _arrayinsert(ByRef $avarray, $ielement, $vvalue = "")
- If NOT IsArray($avarray) Then Return SetError(1, 0, 0)
- If UBound($avarray, 0) <> 1 Then Return SetError(2, 0, 0)
- Local $iubound = UBound($avarray) + 1
- ReDim $avarray[$iubound]
- For $i = $iubound - 1 To $ielement + 1 Step -1
- $avarray[$i] = $avarray[$i - 1]
- Next
- $avarray[$ielement] = $vvalue
- Return $iubound
- EndFunc
- Func _arraymax(Const ByRef $avarray, $icompnumeric = 0, $istart = 0, $iend = 0)
- Local $iresult = _arraymaxindex($avarray, $icompnumeric, $istart, $iend)
- If @error Then Return SetError(@error, 0, "")
- Return $avarray[$iresult]
- EndFunc
- Func _arraymaxindex(Const ByRef $avarray, $icompnumeric = 0, $istart = 0, $iend = 0)
- If NOT IsArray($avarray) OR UBound($avarray, 0) <> 1 Then Return SetError(1, 0, -1)
- If UBound($avarray, 0) <> 1 Then Return SetError(3, 0, -1)
- Local $iubound = UBound($avarray) - 1
- If $iend < 1 OR $iend > $iubound Then $iend = $iubound
- If $istart < 0 Then $istart = 0
- If $istart > $iend Then Return SetError(2, 0, -1)
- Local $imaxindex = $istart
- If $icompnumeric Then
- For $i = $istart To $iend
- If Number($avarray[$imaxindex]) < Number($avarray[$i]) Then $imaxindex = $i
- Next
- Else
- For $i = $istart To $iend
- If $avarray[$imaxindex] < $avarray[$i] Then $imaxindex = $i
- Next
- EndIf
- Return $imaxindex
- EndFunc
- Func _arraymin(Const ByRef $avarray, $icompnumeric = 0, $istart = 0, $iend = 0)
- Local $iresult = _arrayminindex($avarray, $icompnumeric, $istart, $iend)
- If @error Then Return SetError(@error, 0, "")
- Return $avarray[$iresult]
- EndFunc
- Func _arrayminindex(Const ByRef $avarray, $icompnumeric = 0, $istart = 0, $iend = 0)
- If NOT IsArray($avarray) Then Return SetError(1, 0, -1)
- If UBound($avarray, 0) <> 1 Then Return SetError(3, 0, -1)
- Local $iubound = UBound($avarray) - 1
- If $iend < 1 OR $iend > $iubound Then $iend = $iubound
- If $istart < 0 Then $istart = 0
- If $istart > $iend Then Return SetError(2, 0, -1)
- Local $iminindex = $istart
- If $icompnumeric Then
- For $i = $istart To $iend
- If Number($avarray[$iminindex]) > Number($avarray[$i]) Then $iminindex = $i
- Next
- Else
- For $i = $istart To $iend
- If $avarray[$iminindex] > $avarray[$i] Then $iminindex = $i
- Next
- EndIf
- Return $iminindex
- EndFunc
- Func _arraypermute(ByRef $avarray, $sdelim = "")
- If NOT IsArray($avarray) Then Return SetError(1, 0, 0)
- If UBound($avarray, 0) <> 1 Then Return SetError(2, 0, 0)
- Local $isize = UBound($avarray), $ifactorial = 1, $aidx[$isize], $aresult[1], $icount = 1
- For $i = 0 To $isize - 1
- $aidx[$i] = $i
- Next
- For $i = $isize To 1 Step -1
- $ifactorial *= $i
- Next
- ReDim $aresult[$ifactorial + 1]
- $aresult[0] = $ifactorial
- __array_exeterinternal($avarray, 0, $isize, $sdelim, $aidx, $aresult, $icount)
- Return $aresult
- EndFunc
- Func _arraypop(ByRef $avarray)
- If (NOT IsArray($avarray)) Then Return SetError(1, 0, "")
- If UBound($avarray, 0) <> 1 Then Return SetError(2, 0, "")
- Local $iubound = UBound($avarray) - 1, $slastval = $avarray[$iubound]
- If NOT $iubound Then
- $avarray = ""
- Else
- ReDim $avarray[$iubound]
- EndIf
- Return $slastval
- EndFunc
- Func _arraypush(ByRef $avarray, $vvalue, $idirection = 0)
- If (NOT IsArray($avarray)) Then Return SetError(1, 0, 0)
- If UBound($avarray, 0) <> 1 Then Return SetError(3, 0, 0)
- Local $iubound = UBound($avarray) - 1
- If IsArray($vvalue) Then
- Local $iubounds = UBound($vvalue)
- If ($iubounds - 1) > $iubound Then Return SetError(2, 0, 0)
- If $idirection Then
- For $i = $iubound To $iubounds Step -1
- $avarray[$i] = $avarray[$i - $iubounds]
- Next
- For $i = 0 To $iubounds - 1
- $avarray[$i] = $vvalue[$i]
- Next
- Else
- For $i = 0 To $iubound - $iubounds
- $avarray[$i] = $avarray[$i + $iubounds]
- Next
- For $i = 0 To $iubounds - 1
- $avarray[$i + $iubound - $iubounds + 1] = $vvalue[$i]
- Next
- EndIf
- Else
- If $idirection Then
- For $i = $iubound To 1 Step -1
- $avarray[$i] = $avarray[$i - 1]
- Next
- $avarray[0] = $vvalue
- Else
- For $i = 0 To $iubound - 1
- $avarray[$i] = $avarray[$i + 1]
- Next
- $avarray[$iubound] = $vvalue
- EndIf
- EndIf
- Return 1
- EndFunc
- Func _arrayreverse(ByRef $avarray, $istart = 0, $iend = 0)
- If NOT IsArray($avarray) Then Return SetError(1, 0, 0)
- If UBound($avarray, 0) <> 1 Then Return SetError(3, 0, 0)
- Local $vtmp, $iubound = UBound($avarray) - 1
- If $iend < 1 OR $iend > $iubound Then $iend = $iubound
- If $istart < 0 Then $istart = 0
- If $istart > $iend Then Return SetError(2, 0, 0)
- For $i = $istart To Int(($istart + $iend - 1) / 2)
- $vtmp = $avarray[$i]
- $avarray[$i] = $avarray[$iend]
- $avarray[$iend] = $vtmp
- $iend -= 1
- Next
- Return 1
- EndFunc
- Func _arraysearch(Const ByRef $avarray, $vvalue, $istart = 0, $iend = 0, $icase = 0, $ipartial = 0, $iforward = 1, $isubitem = -1)
- If NOT IsArray($avarray) Then Return SetError(1, 0, -1)
- If UBound($avarray, 0) > 2 OR UBound($avarray, 0) < 1 Then Return SetError(2, 0, -1)
- Local $iubound = UBound($avarray) - 1
- If $iend < 1 OR $iend > $iubound Then $iend = $iubound
- If $istart < 0 Then $istart = 0
- If $istart > $iend Then Return SetError(4, 0, -1)
- Local $istep = 1
- If NOT $iforward Then
- Local $itmp = $istart
- $istart = $iend
- $iend = $itmp
- $istep = -1
- EndIf
- Switch UBound($avarray, 0)
- Case 1
- If NOT $ipartial Then
- If NOT $icase Then
- For $i = $istart To $iend Step $istep
- If $avarray[$i] = $vvalue Then Return $i
- Next
- Else
- For $i = $istart To $iend Step $istep
- If $avarray[$i] == $vvalue Then Return $i
- Next
- EndIf
- Else
- For $i = $istart To $iend Step $istep
- If StringInStr($avarray[$i], $vvalue, $icase) > 0 Then Return $i
- Next
- EndIf
- Case 2
- Local $iuboundsub = UBound($avarray, 2) - 1
- If $isubitem > $iuboundsub Then $isubitem = $iuboundsub
- If $isubitem < 0 Then
- $isubitem = 0
- Else
- $iuboundsub = $isubitem
- EndIf
- For $j = $isubitem To $iuboundsub
- If NOT $ipartial Then
- If NOT $icase Then
- For $i = $istart To $iend Step $istep
- If $avarray[$i][$j] = $vvalue Then Return $i
- Next
- Else
- For $i = $istart To $iend Step $istep
- If $avarray[$i][$j] == $vvalue Then Return $i
- Next
- EndIf
- Else
- For $i = $istart To $iend Step $istep
- If StringInStr($avarray[$i][$j], $vvalue, $icase) > 0 Then Return $i
- Next
- EndIf
- Next
- Case Else
- Return SetError(7, 0, -1)
- EndSwitch
- Return SetError(6, 0, -1)
- EndFunc
- Func _arraysort(ByRef $avarray, $idescending = 0, $istart = 0, $iend = 0, $isubitem = 0)
- If NOT IsArray($avarray) Then Return SetError(1, 0, 0)
- Local $iubound = UBound($avarray) - 1
- If $iend < 1 OR $iend > $iubound Then $iend = $iubound
- If $istart < 0 Then $istart = 0
- If $istart > $iend Then Return SetError(2, 0, 0)
- Switch UBound($avarray, 0)
- Case 1
- __arrayquicksort1d($avarray, $istart, $iend)
- If $idescending Then _arrayreverse($avarray, $istart, $iend)
- Case 2
- Local $isubmax = UBound($avarray, 2) - 1
- If $isubitem > $isubmax Then Return SetError(3, 0, 0)
- If $idescending Then
- $idescending = -1
- Else
- $idescending = 1
- EndIf
- __arrayquicksort2d($avarray, $idescending, $istart, $iend, $isubitem, $isubmax)
- Case Else
- Return SetError(4, 0, 0)
- EndSwitch
- Return 1
- EndFunc
- Func __arrayquicksort1d(ByRef $avarray, ByRef $istart, ByRef $iend)
- If $iend <= $istart Then Return
- Local $vtmp
- If ($iend - $istart) < 15 Then
- Local $vcur
- For $i = $istart + 1 To $iend
- $vtmp = $avarray[$i]
- If IsNumber($vtmp) Then
- For $j = $i - 1 To $istart Step -1
- $vcur = $avarray[$j]
- If ($vtmp >= $vcur AND IsNumber($vcur)) OR (NOT IsNumber($vcur) AND StringCompare($vtmp, $vcur) >= 0) Then ExitLoop
- $avarray[$j + 1] = $vcur
- Next
- Else
- For $j = $i - 1 To $istart Step -1
- If (StringCompare($vtmp, $avarray[$j]) >= 0) Then ExitLoop
- $avarray[$j + 1] = $avarray[$j]
- Next
- EndIf
- $avarray[$j + 1] = $vtmp
- Next
- Return
- EndIf
- Local $l = $istart, $r = $iend, $vpivot = $avarray[Int(($istart + $iend) / 2)], $fnum = IsNumber($vpivot)
- Do
- If $fnum Then
- While ($avarray[$l] < $vpivot AND IsNumber($avarray[$l])) OR (NOT IsNumber($avarray[$l]) AND StringCompare($avarray[$l], $vpivot) < 0)
- $l += 1
- WEnd
- While ($avarray[$r] > $vpivot AND IsNumber($avarray[$r])) OR (NOT IsNumber($avarray[$r]) AND StringCompare($avarray[$r], $vpivot) > 0)
- $r -= 1
- WEnd
- Else
- While (StringCompare($avarray[$l], $vpivot) < 0)
- $l += 1
- WEnd
- While (StringCompare($avarray[$r], $vpivot) > 0)
- $r -= 1
- WEnd
- EndIf
- If $l <= $r Then
- $vtmp = $avarray[$l]
- $avarray[$l] = $avarray[$r]
- $avarray[$r] = $vtmp
- $l += 1
- $r -= 1
- EndIf
- Until $l > $r
- __arrayquicksort1d($avarray, $istart, $r)
- __arrayquicksort1d($avarray, $l, $iend)
- EndFunc
- Func __arrayquicksort2d(ByRef $avarray, ByRef $istep, ByRef $istart, ByRef $iend, ByRef $isubitem, ByRef $isubmax)
- If $iend <= $istart Then Return
- Local $vtmp, $l = $istart, $r = $iend, $vpivot = $avarray[Int(($istart + $iend) / 2)][$isubitem], $fnum = IsNumber($vpivot)
- Do
- If $fnum Then
- While ($istep * ($avarray[$l][$isubitem] - $vpivot) < 0 AND IsNumber($avarray[$l][$isubitem])) OR (NOT IsNumber($avarray[$l][$isubitem]) AND $istep * StringCompare($avarray[$l][$isubitem], $vpivot) < 0)
- $l += 1
- WEnd
- While ($istep * ($avarray[$r][$isubitem] - $vpivot) > 0 AND IsNumber($avarray[$r][$isubitem])) OR (NOT IsNumber($avarray[$r][$isubitem]) AND $istep * StringCompare($avarray[$r][$isubitem], $vpivot) > 0)
- $r -= 1
- WEnd
- Else
- While ($istep * StringCompare($avarray[$l][$isubitem], $vpivot) < 0)
- $l += 1
- WEnd
- While ($istep * StringCompare($avarray[$r][$isubitem], $vpivot) > 0)
- $r -= 1
- WEnd
- EndIf
- If $l <= $r Then
- For $i = 0 To $isubmax
- $vtmp = $avarray[$l][$i]
- $avarray[$l][$i] = $avarray[$r][$i]
- $avarray[$r][$i] = $vtmp
- Next
- $l += 1
- $r -= 1
- EndIf
- Until $l > $r
- __arrayquicksort2d($avarray, $istep, $istart, $r, $isubitem, $isubmax)
- __arrayquicksort2d($avarray, $istep, $l, $iend, $isubitem, $isubmax)
- EndFunc
- Func _arrayswap(ByRef $vitem1, ByRef $vitem2)
- Local $vtmp = $vitem1
- $vitem1 = $vitem2
- $vitem2 = $vtmp
- EndFunc
- Func _arraytoclip(Const ByRef $avarray, $istart = 0, $iend = 0)
- Local $sresult = _arraytostring($avarray, @CR, $istart, $iend)
- If @error Then Return SetError(@error, 0, 0)
- Return ClipPut($sresult)
- EndFunc
- Func _arraytostring(Const ByRef $avarray, $sdelim = "|", $istart = 0, $iend = 0)
- If NOT IsArray($avarray) Then Return SetError(1, 0, "")
- If UBound($avarray, 0) <> 1 Then Return SetError(3, 0, "")
- Local $sresult, $iubound = UBound($avarray) - 1
- If $iend < 1 OR $iend > $iubound Then $iend = $iubound
- If $istart < 0 Then $istart = 0
- If $istart > $iend Then Return SetError(2, 0, "")
- For $i = $istart To $iend
- $sresult &= $avarray[$i] & $sdelim
- Next
- Return StringTrimRight($sresult, StringLen($sdelim))
- EndFunc
- Func _arraytrim(ByRef $avarray, $itrimnum, $idirection = 0, $istart = 0, $iend = 0)
- If NOT IsArray($avarray) Then Return SetError(1, 0, 0)
- If UBound($avarray, 0) <> 1 Then Return SetError(2, 0, 0)
- Local $iubound = UBound($avarray) - 1
- If $iend < 1 OR $iend > $iubound Then $iend = $iubound
- If $istart < 0 Then $istart = 0
- If $istart > $iend Then Return SetError(5, 0, 0)
- If $idirection Then
- For $i = $istart To $iend
- $avarray[$i] = StringTrimRight($avarray[$i], $itrimnum)
- Next
- Else
- For $i = $istart To $iend
- $avarray[$i] = StringTrimLeft($avarray[$i], $itrimnum)
- Next
- EndIf
- Return 1
- EndFunc
- Func _arrayunique($aarray, $idimension = 1, $ibase = 0, $icase = 0, $vdelim = "|")
- Local $iubounddim
- If $vdelim = "|" Then $vdelim = Chr(1)
- If NOT IsArray($aarray) Then Return SetError(1, 0, 0)
- If NOT $idimension > 0 Then
- Return SetError(3, 0, 0)
- Else
- $iubounddim = UBound($aarray, 1)
- If @error Then Return SetError(3, 0, 0)
- If $idimension > 1 Then
- Local $aarraytmp[1]
- For $i = 0 To $iubounddim - 1
- _arrayadd($aarraytmp, $aarray[$i][$idimension - 1])
- Next
- _arraydelete($aarraytmp, 0)
- Else
- If UBound($aarray, 0) = 1 Then
- Dim $aarraytmp[1]
- For $i = 0 To $iubounddim - 1
- _arrayadd($aarraytmp, $aarray[$i])
- Next
- _arraydelete($aarraytmp, 0)
- Else
- Dim $aarraytmp[1]
- For $i = 0 To $iubounddim - 1
- _arrayadd($aarraytmp, $aarray[$i][$idimension - 1])
- Next
- _arraydelete($aarraytmp, 0)
- EndIf
- EndIf
- EndIf
- Local $shold
- For $icc = $ibase To UBound($aarraytmp) - 1
- If NOT StringInStr($vdelim & $shold, $vdelim & $aarraytmp[$icc] & $vdelim, $icase) Then $shold &= $aarraytmp[$icc] & $vdelim
- Next
- If $shold Then
- $aarraytmp = StringSplit(StringTrimRight($shold, StringLen($vdelim)), $vdelim, 1)
- Return $aarraytmp
- EndIf
- Return SetError(2, 0, 0)
- EndFunc
- Func __array_exeterinternal(ByRef $avarray, $istart, $isize, $sdelim, ByRef $aidx, ByRef $aresult, ByRef $icount)
- If $istart == $isize - 1 Then
- For $i = 0 To $isize - 1
- $aresult[$icount] &= $avarray[$aidx[$i]] & $sdelim
- Next
- If $sdelim <> "" Then $aresult[$icount] = StringTrimRight($aresult[$icount], 1)
- $icount += 1
- Else
- Local $itemp
- For $i = $istart To $isize - 1
- $itemp = $aidx[$i]
- $aidx[$i] = $aidx[$istart]
- $aidx[$istart] = $itemp
- __array_exeterinternal($avarray, $istart + 1, $isize, $sdelim, $aidx, $aresult, $icount)
- $aidx[$istart] = $aidx[$i]
- $aidx[$i] = $itemp
- Next
- EndIf
- EndFunc
- Func __array_combinations($in, $ir)
- Local $i_total = 1
- For $i = $ir To 1 Step -1
- $i_total *= ($in / $i)
- $in -= 1
- Next
- Return Round($i_total)
- EndFunc
- Func __array_getnext($in, $ir, ByRef $ileft, $itotal, ByRef $aidx)
- If $ileft == $itotal Then
- $ileft -= 1
- Return
- EndIf
- Local $i = $ir - 1
- While $aidx[$i] == $in - $ir + $i
- $i -= 1
- WEnd
- $aidx[$i] += 1
- For $j = $i + 1 To $ir - 1
- $aidx[$j] = $aidx[$i] + $j - $i
- Next
- $ileft -= 1
- EndFunc
- Func startdbedit()
- If GUICtrlRead($aofolder) = "" Then
- MsgBox(1, "Fail", "Select Your AO Folder First. Bottom Of The Program.")
- Else
- Global $file_path = GUICtrlRead($aofolder) & "\cd_image\data\db\Resourcedatabase.dat.001"
- If BitAND(GUICtrlRead($remblindcheck), $gui_checked) = $gui_checked Then
- blinds()
- EndIf
- If BitAND(GUICtrlRead($dofcheck), $gui_checked) = $gui_checked Then
- evades()
- EndIf
- If BitAND(GUICtrlRead($rrfecheck), $gui_checked) = $gui_checked Then
- rrfe()
- EndIf
- If BitAND(GUICtrlRead($amscheck), $gui_checked) = $gui_checked Then
- tms()
- EndIf
- If BitAND(GUICtrlRead($bccheck), $gui_checked) = $gui_checked Then
- coon()
- EndIf
- If BitAND(GUICtrlRead($swimexpcheck), $gui_checked) = $gui_checked Then
- swimex()
- EndIf
- If BitAND(GUICtrlRead($swimprofcheck), $gui_checked) = $gui_checked Then
- swimprof()
- EndIf
- If BitAND(GUICtrlRead($quicknesscheck), $gui_checked) = $gui_checked Then
- quickness()
- EndIf
- If BitAND(GUICtrlRead($adrencheck), $gui_checked) = $gui_checked Then
- adren()
- EndIf
- If BitAND(GUICtrlRead($swiftnesscheck), $gui_checked) = $gui_checked Then
- swiftness()
- EndIf
- GUICtrlSetData($dbstatus, "Done.")
- EndIf
- EndFunc
- Func evades()
- GUICtrlSetData($dbstatus, "Changing Dof/Limber")
- $bdata = StringToBinary("Dance of FoolsIn")
- Global $offset = _hexsearch($file_path, $bdata, 658837952)
- If "0x" & Hex($offset) <> "0xFFFFFFFF" Then
- $radw2 = "0xcfb7"
- $bdata = BinaryToString($radw2)
- $bdata2 = StringToBinary($bdata)
- _hexwrite($file_path, "0x" & Hex($offset - 72), $bdata2)
- $radw2 = "0xbca9"
- $bdata = BinaryToString($radw2)
- $bdata2 = StringToBinary($bdata)
- _hexwrite($file_path, "0x" & Hex($offset - 40), $bdata2)
- $radw2 = "0xbea9"
- $bdata = BinaryToString($radw2)
- $bdata2 = StringToBinary($bdata)
- _hexwrite($file_path, "0x" & Hex($offset - 490), $bdata2)
- EndIf
- EndFunc
- Func tms()
- $radw2 = "0x014175676d656e746564204d"
- $valuedata = BinaryToString($radw2)
- $bdata = StringToBinary($valuedata)
- $offset2 = 658837952
- $radw2 = "0x9fa8"
- $valuedata = BinaryToString($radw2)
- $valuedata2 = StringToBinary($valuedata)
- $ams5 = 0
- For $i = 1 To 5
- GUICtrlSetData($dbstatus, "Changing AMS #" & $i)
- Global $offset = _hexsearch($file_path, $bdata, $offset2)
- If "0x" & Hex($offset) <> "0xFFFFFFFF" AND $offset <> -1 Then
- $offset = "0x" & Hex($offset - 47)
- If _hexread($file_path, $offset, 2) <> $radw2 Then
- _hexwrite($file_path, $offset, $valuedata2)
- EndIf
- $offset2 = $offset + 100
- $ams5 = $ams5 + 1
- If $ams5 = 6 Then
- ExitLoop
- EndIf
- Else
- ExitLoop
- EndIf
- Next
- $radw = "0x01546f74616c204d6972726f7220536869656c64204d6b"
- $valuedata = BinaryToString($radw)
- $bdata = StringToBinary($valuedata)
- $offset2 = 658837952
- $radw2 = "0x9fa8"
- $valuedata = BinaryToString($radw2)
- $valuedata2 = StringToBinary($valuedata)
- $ams5 = 1
- For $i = 1 To 10
- GUICtrlSetData($dbstatus, "Changing TMS #" & $i)
- Global $offset = _hexsearch($file_path, $bdata, $offset2)
- If "0x" & Hex($offset) <> "0xFFFFFFFF" AND $offset <> -1 Then
- $offset = "0x" & Hex($offset - 47)
- If _hexread($file_path, $offset, 2) <> $radw2 Then
- _hexwrite($file_path, $offset, $valuedata2)
- EndIf
- $offset2 = $offset + 100
- $ams5 = $ams5 + 1
- If $ams5 = 12 Then
- ExitLoop
- EndIf
- Else
- ExitLoop
- EndIf
- Next
- EndFunc
- Func coon()
- $radw = "0x0042696f20436f636f6f6e50726f766964657320616e206162736f727074696f6e20736869656c64"
- $valuedata = BinaryToString($radw)
- $bdata = StringToBinary($valuedata)
- $offset2 = 658837952
- $radw2 = "0xcfa9"
- $valuedata = BinaryToString($radw2)
- $valuedata2 = StringToBinary($valuedata)
- $ams5 = 1
- For $i = 1 To 10
- Global $offset = _hexsearch($file_path, $bdata, $offset2)
- If "0x" & Hex($offset) <> "0xFFFFFFFF" AND $offset <> -1 Then
- GUICtrlSetData($dbstatus, "Changing Bio Cocoon #" & $i)
- $offset = "0x" & Hex($offset - 39)
- If _hexread($file_path, $offset, 2) <> $radw2 Then
- _hexwrite($file_path, $offset, $valuedata2)
- EndIf
- $offset2 = $offset + 100
- $ams5 = $ams5 + 1
- If $ams5 = 9 Then
- ExitLoop
- EndIf
- Else
- ExitLoop
- EndIf
- Next
- EndFunc
- Func rrfe()
- $radw = "0x005265616374697665205265666c656374697665204669656c642028457874656e6465642953"
- $valuedata = BinaryToString($radw)
- $bdata = StringToBinary($valuedata)
- $offset2 = 658837952
- $radw2 = "0x9ca9"
- $valuedata = BinaryToString($radw2)
- $valuedata2 = StringToBinary($valuedata)
- GUICtrlSetData($dbstatus, "Changing RRFE")
- Global $offset = _hexsearch($file_path, $bdata, $offset2)
- If "0x" & Hex($offset) <> "0xFFFFFFFF" AND $offset <> -1 Then
- $offset = "0x" & Hex($offset - 39)
- If _hexread($file_path, $offset, 2) <> $radw2 Then
- _hexwrite($file_path, $offset, $valuedata2)
- EndIf
- EndIf
- EndFunc
- Func blinds()
- $radw = "0x0900000084aa0000"
- $valuedata = BinaryToString($radw)
- $bdata = StringToBinary($valuedata)
- $offset2 = 658837952
- $radw2 = "0x0000"
- $valuedata = BinaryToString($radw2)
- $valuedata2 = StringToBinary($valuedata)
- For $i = 1 To 69
- Global $offset = _hexsearch($file_path, $bdata, $offset2)
- If "0x" & Hex($offset) <> "0xFFFFFFFF" AND $offset <> -1 Then
- GUICtrlSetData($dbstatus, "Changing Blind #" & $i)
- $offset = "0x" & Hex($offset + 6)
- If _hexread($file_path, $offset, 2) = "0x84AA" Then
- _hexwrite($file_path, $offset, $valuedata2)
- EndIf
- $offset2 = $offset + 10
- Else
- ExitLoop 1
- EndIf
- Next
- EndFunc
- Func swimex()
- If GUICtrlRead($swimexpinput) <> "" Then
- $offset2 = 658837952
- $bdata = StringToBinary("Swim ExpertiseIn")
- GUICtrlSetData($dbstatus, "Changing Swim Expertise")
- Global $offset = _hexsearch($file_path, $bdata, $offset2)
- If "0x" & Hex($offset) <> "0xFFFFFFFF" AND $offset <> -1 Then
- $offset = "0x" & Hex($offset + 170)
- $value = GUICtrlRead($swimexpinput)
- If $value > 65535 Then
- $hexvalue = Hex($value, 6)
- Else
- $hexvalue = Hex($value, 4)
- EndIf
- $hexleft = StringLeft($hexvalue, 2)
- $hexright = StringRight($hexvalue, 2)
- $hexvalue = StringTrimLeft($hexvalue, 2)
- $hexvalue = StringTrimRight($hexvalue, 2)
- $valuedata = BinaryToString("0x" & $hexright & $hexvalue & $hexleft)
- $write = StringToBinary($valuedata)
- _hexwrite($file_path, $offset, $write)
- EndIf
- Else
- MsgBox(1, "Swim Expertise", "Helps when you give a value")
- EndIf
- EndFunc
- Func quickness()
- If GUICtrlRead($quicknessinput) <> "" Then
- $offset2 = 658837952
- $bdata = StringToBinary("QuicknessIn")
- GUICtrlSetData($dbstatus, "Changing Quickness")
- Global $offset = _hexsearch($file_path, $bdata, $offset2)
- If "0x" & Hex($offset) <> "0xFFFFFFFF" AND $offset <> -1 Then
- $offset = "0x" & Hex($offset + 164)
- $value = GUICtrlRead($quicknessinput)
- If $value > 65535 Then
- $hexvalue = Hex($value, 6)
- Else
- $hexvalue = Hex($value, 4)
- EndIf
- $hexleft = StringLeft($hexvalue, 2)
- $hexright = StringRight($hexvalue, 2)
- $hexvalue = StringTrimLeft($hexvalue, 2)
- $hexvalue = StringTrimRight($hexvalue, 2)
- $valuedata = BinaryToString("0x" & $hexright & $hexvalue & $hexleft)
- $write = StringToBinary($valuedata)
- _hexwrite($file_path, $offset, $write)
- EndIf
- Else
- MsgBox(1, "Quickness", "Helps when you give a value")
- EndIf
- EndFunc
- Func adren()
- If GUICtrlRead($adreninput) <> "" Then
- $offset2 = 658837952
- $bdata = StringToBinary("Adrenaline PumpIn")
- GUICtrlSetData($dbstatus, "Changing Adren. Pump")
- Global $offset = _hexsearch($file_path, $bdata, $offset2)
- If "0x" & Hex($offset) <> "0xFFFFFFFF" AND $offset <> -1 Then
- $offset = "0x" & Hex($offset + 164)
- $value = GUICtrlRead($adreninput)
- If $value > 65535 Then
- $hexvalue = Hex($value, 6)
- Else
- $hexvalue = Hex($value, 4)
- EndIf
- $hexleft = StringLeft($hexvalue, 2)
- $hexright = StringRight($hexvalue, 2)
- $hexvalue = StringTrimLeft($hexvalue, 2)
- $hexvalue = StringTrimRight($hexvalue, 2)
- $valuedata = BinaryToString("0x" & $hexright & $hexvalue & $hexleft)
- $write = StringToBinary($valuedata)
- _hexwrite($file_path, $offset, $write)
- EndIf
- Else
- MsgBox(1, "Adrenaline Pump", "Helps when you give a value")
- EndIf
- EndFunc
- Func swiftness()
- If GUICtrlRead($swiftnessinput) <> "" Then
- $offset2 = 658837952
- $bdata = StringToBinary("SwiftnessIn")
- GUICtrlSetData($dbstatus, "Changing Swiftness")
- Global $offset = _hexsearch($file_path, $bdata, $offset2)
- If "0x" & Hex($offset) <> "0xFFFFFFFF" AND $offset <> -1 Then
- $offset = "0x" & Hex($offset + 164)
- $value = GUICtrlRead($swiftnessinput)
- If $value > 65535 Then
- $hexvalue = Hex($value, 6)
- Else
- $hexvalue = Hex($value, 4)
- EndIf
- $hexleft = StringLeft($hexvalue, 2)
- $hexright = StringRight($hexvalue, 2)
- $hexvalue = StringTrimLeft($hexvalue, 2)
- $hexvalue = StringTrimRight($hexvalue, 2)
- $valuedata = BinaryToString("0x" & $hexright & $hexvalue & $hexleft)
- $write = StringToBinary($valuedata)
- _hexwrite($file_path, $offset, $write)
- EndIf
- Else
- MsgBox(1, "Swiftness", "Helps when you give a value")
- EndIf
- EndFunc
- Func swimprof()
- If GUICtrlRead($swimprofinput) <> "" Then
- $offset2 = 658837952
- $bdata = StringToBinary("Swim ProficiencyIn")
- GUICtrlSetData($dbstatus, "Changing Swim Prof.")
- Global $offset = _hexsearch($file_path, $bdata, $offset2)
- If "0x" & Hex($offset) <> "0xFFFFFFFF" AND $offset <> -1 Then
- $offset = "0x" & Hex($offset + 172)
- $value = GUICtrlRead($swimprofinput)
- If $value > 65535 Then
- $hexvalue = Hex($value, 6)
- Else
- $hexvalue = Hex($value, 4)
- EndIf
- $hexleft = StringLeft($hexvalue, 2)
- $hexright = StringRight($hexvalue, 2)
- $hexvalue = StringTrimLeft($hexvalue, 2)
- $hexvalue = StringTrimRight($hexvalue, 2)
- $valuedata = BinaryToString("0x" & $hexright & $hexvalue & $hexleft)
- $write = StringToBinary($valuedata)
- _hexwrite($file_path, $offset, $write)
- EndIf
- Else
- MsgBox(1, "Swim Proficiency", "Helps when you give a value")
- EndIf
- EndFunc
- Func get_angle()
- $pi = 3.14159265358979
- $handle = _memoryopen($ipid)
- Return atan2(_memoryread($vectory, $handle, "Float"), _memoryread($vectorx, $handle, "Float")) * 180 / $pi
- _memoryclose($handle)
- EndFunc
- Func angle_to_vector($angle)
- Local $new_vector[2]
- $heading = $pi * $angle / 180
- $new_vector[0] = $inc2 * Sin($heading)
- $new_vector[1] = $inc2 * Cos($heading)
- Return $new_vector
- EndFunc
- Func atan2($x, $y)
- Local Const $pi = 3.14159265358979
- If $y < 0 Then
- Return -atan2($x, -$y)
- ElseIf $x < 0 Then
- Return $pi - ATan(-$y / $x)
- ElseIf $x > 0 Then
- Return ATan($y / $x)
- ElseIf $y <> 0 Then
- Return $pi / 2
- Else
- SetError(1)
- EndIf
- EndFunc
- Func updateguimemory()
- $x = _memoryread($addressx, $handle, "Float")
- $y = _memoryread($addressy, $handle, "Float")
- $z = _memoryread($addressz, $handle, "Float")
- $tx = _memoryread($targetcoordx, $handle, "Float")
- $ty = _memoryread($targetcoordy, $handle, "Float")
- $tz = _memoryread($targetcoordz, $handle, "Float")
- If IsFloat($x) AND $x <> $lastx Then
- $lastx = $x
- $x = StringSplit($x, ".")
- $xnew = StringLeft($x[2], 1)
- GUICtrlSetData($xcoord, "X: " & $x[1] & "." & $xnew)
- ElseIf $x <> $lastx Then
- GUICtrlSetData($xcoord, "X: " & $x)
- $lastx = $x
- EndIf
- If IsFloat($y) AND $y <> $lasty Then
- $lasty = $y
- $y = StringSplit($y, ".")
- $ynew = StringLeft($y[2], 1)
- GUICtrlSetData($ycoord, "Y: " & $y[1] & "." & $ynew)
- ElseIf $y <> $lasty Then
- GUICtrlSetData($ycoord, "Y: " & $y)
- $lasty = $y
- EndIf
- If IsFloat($z) AND $z <> $lastz Then
- $lastz = $z
- $z = StringSplit($z, ".")
- $znew = StringLeft($z[2], 1)
- GUICtrlSetData($zcoord, "Z: " & $z[1] & "." & $znew)
- ElseIf $z <> $lastz Then
- $lastz = $z
- GUICtrlSetData($zcoord, "Z: " & $z)
- EndIf
- If IsFloat($tx) AND $tx <> $lasttx Then
- $lasttx = $tx
- $tx = StringSplit($tx, ".")
- $txnew = StringLeft($tx[2], 1)
- GUICtrlSetData($targetxcoord, "X: " & $tx[1] & "." & $txnew)
- ElseIf $tx <> $lasttx Then
- $lasttx = $tx
- GUICtrlSetData($targetxcoord, "X: " & $tx)
- EndIf
- If IsFloat($ty) AND $ty <> $lastty Then
- $lastty = $ty
- $ty = StringSplit($ty, ".")
- $tynew = StringLeft($ty[2], 1)
- GUICtrlSetData($targetycoord, "Y: " & $ty[1] & "." & $tynew)
- ElseIf $ty <> $lastty Then
- $lastty = $ty
- GUICtrlSetData($targetycoord, "Y: " & $ty)
- EndIf
- If IsFloat($tz) AND $tz <> $lasttz Then
- $lasttz = $tz
- $tz = StringSplit($tz, ".")
- $tznew = StringLeft($tz[2], 1)
- GUICtrlSetData($targetzcoord, "Z: " & $tz[1] & "." & $tznew)
- ElseIf $tz <> $lasttz Then
- $lasttz = $tz
- If $tz = 0 Then
- GUICtrlSetData($targetzcoord, "Z: " & $tz)
- Else
- GUICtrlSetData($targetzcoord, "Z: " & $tz)
- EndIf
- EndIf
- EndFunc
- Func updatepointers()
- Global $ipid = getaoclients()
- If $ipid = 0 Then Return
- GUICtrlSetData($status, "Attached To Client.")
- Global $handle = _memoryopen($ipid)
- Global $mhandle = WinGetHandle("Anarchy Online")
- Global $ptr = _memorymodulegetbaseaddress($ipid, "n3.dll") + 378048
- Global $off1 = Dec("84")
- Global $off2 = Dec("50")
- Global $off3 = Dec("5C")
- $baseaddr = _memoryread($ptr, $handle)
- $lvl1 = "0x" & Hex($baseaddr + $off1)
- $baseaddr = _memoryread($lvl1, $handle)
- $lvl2 = "0x" & Hex($baseaddr + $off2)
- $baseaddr = _memoryread($lvl2, $handle)
- $lvl3 = "0x" & Hex($baseaddr + $off3)
- Global $off1 = Dec("84")
- Global $off2 = Dec("50")
- Global $off3 = Dec("180")
- Global $off4 = Dec("4")
- $baseaddr = _memoryread($ptr, $handle)
- $statelvl1 = "0x" & Hex($baseaddr + $off1)
- $baseaddr = _memoryread($statelvl1, $handle)
- $statelvl2 = "0x" & Hex($baseaddr + $off2)
- $baseaddr = _memoryread($statelvl2, $handle)
- $statelvl3 = "0x" & Hex($baseaddr + $off3)
- $baseaddr = _memoryread($statelvl3, $handle)
- $tp = leveluppointer($ptr, "0x7c")
- $tp2 = leveluppointer($tp, "0x50")
- $tp3 = leveluppointer($tp2, "0x17C")
- $targetcoordx = leveluppointer($tp3, "0x58")
- $targetcoordy = $targetcoordx + 8
- $targetcoordz = $targetcoordx + 4
- $mouse_world_pos_addr2 = leveluppointer($ptr, "0x7c")
- Global $mouseworldxoffsets[2] = [2562280, 164]
- Global $mouse_world_pos_addr = leveluppointer($mouse_world_pos_addr2, "0x180")
- Global $stateaddr = "0x" & Hex($baseaddr + $off4)
- Global $addressz = $lvl3
- Global $addressy = $addressz + 4
- Global $addressx = $addressz - 4
- Global $vectorx = $addressz + 100
- Global $vectory = $addressz + 108
- Global $jump = $addressz - 8
- Global $speed = "0x" & Hex($addressz - 32)
- Global $speedside = "0x" & Hex($addressz + 792)
- Global $accel = "0x" & Hex($lvl3 - 36)
- EndFunc
- Func hpupdate()
- Dim $baseaddr = _memorymodulegetbaseaddress($ipid, "GUI.dll") + 2627628
- Global $off1 = Dec("1c")
- $baseaddr2 = _memoryread($baseaddr, $handle)
- Global $targethp = "0x" & Hex($baseaddr2 + $off1)
- Global $targetmaxhp = $targethp + Dec("4")
- EndFunc
- Func walkonwater()
- If BitAND(GUICtrlRead($wowc), $gui_checked) = $gui_checked Then
- If _memoryread($stateaddr, $handle) = 4 Then
- _memorywrite($stateaddr, $handle, "3")
- If _ispressed("57") Then
- Send("{w Up}")
- Send("{w Down}")
- ElseIf _ispressed("26") Then
- Send("{up Up}")
- Send("{up Down}")
- Else
- Send("{Up}")
- EndIf
- EndIf
- EndIf
- EndFunc
- Func jump()
- If BitAND(GUICtrlRead($jumpc), $gui_checked) = $gui_checked Then
- $jumpv = _memoryread($jump, $handle, "Float")
- If $jumpv >= 0 Then HotKeySet("{Space}")
- If $jumpv = 0 Then
- $allow = True
- EndIf
- If BitAND(GUICtrlRead($jumpc), $gui_checked) = $gui_checked AND $allow = True AND $jumpv > 0 Then
- $sliderinfo = GUICtrlRead($jumps)
- _memorywrite($jump, $handle, $sliderinfo, "Float")
- $allow = False
- ElseIf BitAND(GUICtrlRead($jumpc), $gui_checked) = $gui_checked AND BitAND(GUICtrlRead($amjc), $gui_checked) AND $jumpv < 0 Then
- HotKeySet("{Space}", "EXTRAJUMP")
- EndIf
- EndIf
- EndFunc
- Func speed()
- If BitAND(GUICtrlRead($speedc), $gui_checked) = $gui_checked Then
- $sliderinfo = GUICtrlRead($speeds)
- _memorywrite($speed, $handle, $sliderinfo, "Float")
- _memorywrite($accel, $handle, "10000", "Float")
- $sidestep = _memoryread($speedside, $handle, "Float")
- If $sidestep > 0 Then
- _memorywrite($speedside, $handle, $sliderinfo / 2, "Float")
- EndIf
- If $sidestep < 0 Then
- _memorywrite($speedside, $handle, "-" & $sliderinfo / 2, "Float")
- EndIf
- EndIf
- EndFunc
- Func extrajump()
- $sliderinfo = GUICtrlRead($jumps)
- _memorywrite($jump, $handle, $sliderinfo, "Float")
- Send("{z}")
- EndFunc
- Func east()
- $vector = angle_to_vector(get_angle() + 90)
- _memorywrite($addressx, $handle, _memoryread($addressx, $handle, "Float") + $vector[0], "Float")
- _memorywrite($addressy, $handle, _memoryread($addressy, $handle, "Float") + $vector[1], "Float")
- EndFunc
- Func west()
- $vector = angle_to_vector(get_angle() - 90)
- _memorywrite($addressx, $handle, _memoryread($addressx, $handle, "Float") + $vector[0], "Float")
- _memorywrite($addressy, $handle, _memoryread($addressy, $handle, "Float") + $vector[1], "Float")
- EndFunc
- Func north()
- $vector = angle_to_vector(get_angle())
- _memorywrite($addressx, $handle, _memoryread($addressx, $handle, "Float") + $vector[0], "Float")
- _memorywrite($addressy, $handle, _memoryread($addressy, $handle, "Float") + $vector[1], "Float")
- EndFunc
- Func south()
- $vector = angle_to_vector(get_angle() + 180)
- _memorywrite($addressx, $handle, _memoryread($addressx, $handle, "Float") + $vector[0], "Float")
- _memorywrite($addressy, $handle, _memoryread($addressy, $handle, "Float") + $vector[1], "Float")
- EndFunc
- Func up()
- $z = _memoryread($addressz, $handle, "Float")
- $inc = $z + $inc2
- _memorywrite($addressz, $handle, $inc, "Float")
- EndFunc
- Func down()
- $z = _memoryread($addressz, $handle, "Float")
- $inc = $z - $inc2
- _memorywrite($addressz, $handle, $inc, "Float")
- EndFunc
- Func tele_to_mouse()
- $mouseworldx = get_pointer_target_from_dll("GUI.dll", $mouseworldxoffsets)
- $mouseworldy = $mouseworldx + 8
- $mouseworldz = $mouseworldx + 4
- $x = _memoryread($mouseworldx, $handle, "float")
- $y = _memoryread($mouseworldy, $handle, "float")
- $z = _memoryread($mouseworldz, $handle, "float")
- _memorywrite($addressx, $handle, $x, "Float")
- _memorywrite($addressy, $handle, $y, "Float")
- _memorywrite($addressz, $handle, $z, "Float")
- _sleep(500)
- EndFunc
- Func get_pointer_target_from_dll($dll_name, $offset_array)
- $address = _memorymodulegetbaseaddress($ipid, $dll_name) + $offset_array[0]
- For $i = 1 To UBound($offset_array) - 1
- $address = _memoryread($address, $handle) + $offset_array[$i]
- Next
- Return "0x" & Hex($address)
- EndFunc
- Func ontarget()
- $targetx = _memoryread($targetcoordx, $handle, "Float")
- $targety = _memoryread($targetcoordy, $handle, "Float")
- $targetz = _memoryread($targetcoordz, $handle, "Float")
- _memorywrite($addressx, $handle, $targetx, "Float")
- _memorywrite($addressy, $handle, $targety, "Float")
- _memorywrite($addressz, $handle, $targetz, "Float")
- EndFunc
- Func getaoclients()
- $lastselect = GUICtrlRead($charname)
- Global $clients[7]
- Global $clientname[7]
- $list = ProcessList("AnarchyOnline.exe")
- If $list[0][0] = 0 Then
- GUICtrlSetData($charname, "")
- GUICtrlSetData($status, "No Anarchy Clients Found.")
- Return 0
- EndIf
- For $p = 1 To $list[0][0]
- $clients[$p] = $list[$p][1]
- Next
- GUICtrlSetData($charname, "")
- For $c = 1 To $list[0][0]
- $handle2 = _memoryopen($clients[$c])
- Global $nameaddr = _memorymodulegetbaseaddress($clients[$c], "Interfaces.dll") + 203488
- Global $namecheck = _memoryread($nameaddr, $handle2, "Char[14]")
- If $namecheck <> "" Then
- GUICtrlSetData($charname, $namecheck)
- $clientname[$c] = $namecheck
- EndIf
- _memoryclose($handle2)
- Next
- If $list[0][0] = 1 Then
- $stext = ""
- _guictrlcomboboxex_getitemtext($charname, 0, $stext)
- _guictrlcombobox_selectstring($charname, $stext)
- Else
- _guictrlcombobox_selectstring($charname, $lastselect)
- EndIf
- For $h = 1 To UBound($clients) - 1
- If GUICtrlRead($charname) = $clientname[$h] Then
- $returnhandle = $clients[$h]
- Return $returnhandle
- EndIf
- Next
- EndFunc
- Func warp()
- $splitwarp = StringSplit(_guictrllistview_getitemtextstring($waypoints), "|")
- If $splitwarp[2] > 0 Then
- _memorywrite($addressx, $handle, $splitwarp[2], "Float")
- _memorywrite($addressy, $handle, $splitwarp[3], "Float")
- _memorywrite($addressz, $handle, $splitwarp[4], "Float")
- EndIf
- Send("{left}")
- EndFunc
- Func targetdata()
- updatetargetdata()
- $hp = _memoryread($targethp, $handle)
- $maxhp = _memoryread($targetmaxhp, $handle)
- $nano = _memoryread($targetnano, $handle)
- $percent = ($hp / $maxhp) * 100
- $cap = $maxhp * 0.3
- If IsFloat($percent) Then
- $percent = StringSplit($percent, ".")
- $percentnew = StringLeft($percent[2], 1)
- $percent = $percent[1] & "." & $percentnew
- EndIf
- If $hp = 0 AND $maxhp = 0 AND $nano = 0 Then
- $hp = "No Target"
- $maxhp = "No Target"
- $nano = "No Target"
- $percent = ""
- EndIf
- If $hp = 0 AND $maxhp > 0 Then
- $hp = "Dead"
- EndIf
- EndFunc
- Func updatetargetdata()
- hpupdate()
- $ptr = _memorymodulegetbaseaddress($ipid, "n3.dll") + 378048
- $off1 = Dec("7c")
- $off2 = Dec("50")
- $off3 = Dec("17C")
- $baseaddr = _memoryread($ptr, $handle)
- $lvl1 = "0x" & Hex($baseaddr + $off1)
- $baseaddr = _memoryread($lvl1, $handle)
- $lvl2 = "0x" & Hex($baseaddr + $off2)
- $baseaddr = _memoryread($lvl2, $handle)
- $entrypoint = "0x" & Hex($baseaddr + $off3)
- If "0x" & Hex(_memoryread($entrypoint, $handle)) <> $lasttarget Then
- $lvl1 = leveluppointer($ptr, "0x7c")
- $lvl2 = leveluppointer($lvl1, "0x50")
- $lvl3 = leveluppointer($lvl2, "0x17C")
- $lvl4 = leveluppointer($lvl3, "0x30")
- $lvl5 = leveluppointer($lvl4, "0x120")
- $lvl6 = leveluppointer($lvl5, "0x4")
- $lvl7 = leveluppointer($lvl6, "0x358")
- Global $targetnano = $lvl7
- Global $lasttarget = "0x" & Hex(_memoryread($lvl3, $handle))
- EndIf
- EndFunc
- Func leveluppointer($addr, $offset)
- $val = _memoryread($addr, $handle)
- Return "0x" & Hex($val + $offset)
- EndFunc
- Func _memoryopen($iv_pid, $iv_desiredaccess = 2035711, $iv_inherithandle = 1)
- If NOT ProcessExists($iv_pid) Then
- SetError(1)
- Return 0
- EndIf
- Local $ah_handle[2] = [DllOpen("kernel32.dll")]
- If @error Then
- SetError(2)
- Return 0
- EndIf
- Local $av_openprocess = DllCall($ah_handle[0], "int", "OpenProcess", "int", $iv_desiredaccess, "int", $iv_inherithandle, "int", $iv_pid)
- If @error Then
- DllClose($ah_handle[0])
- SetError(3)
- Return 0
- EndIf
- $ah_handle[1] = $av_openprocess[0]
- Return $ah_handle
- EndFunc
- Func _memoryread($iv_address, $ah_handle, $sv_type = "dword")
- If NOT IsArray($ah_handle) Then
- SetError(1)
- Return 0
- EndIf
- Local $v_buffer = DllStructCreate($sv_type)
- If @error Then
- SetError(@error + 1)
- Return 0
- EndIf
- DllCall($ah_handle[0], "int", "ReadProcessMemory", "int", $ah_handle[1], "int", $iv_address, "ptr", DllStructGetPtr($v_buffer), "int", DllStructGetSize($v_buffer), "int", "")
- If NOT @error Then
- Local $v_value = DllStructGetData($v_buffer, 1)
- Return $v_value
- Else
- SetError(6)
- Return 0
- EndIf
- EndFunc
- Func _memorywrite($iv_address, $ah_handle, $v_data, $sv_type = "dword")
- If NOT IsArray($ah_handle) Then
- SetError(1)
- Return 0
- EndIf
- Local $v_buffer = DllStructCreate($sv_type)
- If @error Then
- SetError(@error + 1)
- Return 0
- Else
- DllStructSetData($v_buffer, 1, $v_data)
- If @error Then
- SetError(6)
- Return 0
- EndIf
- EndIf
- DllCall($ah_handle[0], "int", "WriteProcessMemory", "int", $ah_handle[1], "int", $iv_address, "ptr", DllStructGetPtr($v_buffer), "int", DllStructGetSize($v_buffer), "int", "")
- If NOT @error Then
- Return 1
- Else
- SetError(7)
- Return 0
- EndIf
- EndFunc
- Func _memoryclose($ah_handle)
- If NOT IsArray($ah_handle) Then
- SetError(1)
- Return 0
- EndIf
- DllCall($ah_handle[0], "int", "CloseHandle", "int", $ah_handle[1])
- If NOT @error Then
- DllClose($ah_handle[0])
- Return 1
- Else
- DllClose($ah_handle[0])
- SetError(2)
- Return 0
- EndIf
- EndFunc
- Func setprivilege($privilege, $benable)
- Const $token_adjust_privileges = 32
- Const $token_query = 8
- Const $se_privilege_enabled = 2
- Local $htoken, $sp_auxret, $sp_ret, $hcurrprocess, $ntokens, $ntokenindex, $priv
- $ntokens = 1
- $luid = DllStructCreate("dword;int")
- If IsArray($privilege) Then $ntokens = UBound($privilege)
- $token_privileges = DllStructCreate("dword;dword[" & (3 * $ntokens) & "]")
- $newtoken_privileges = DllStructCreate("dword;dword[" & (3 * $ntokens) & "]")
- $hcurrprocess = DllCall("kernel32.dll", "hwnd", "GetCurrentProcess")
- $sp_auxret = DllCall("advapi32.dll", "int", "OpenProcessToken", "hwnd", $hcurrprocess[0], "int", BitOR($token_adjust_privileges, $token_query), "int_ptr", 0)
- If $sp_auxret[0] Then
- $htoken = $sp_auxret[3]
- DllStructSetData($token_privileges, 1, 1)
- $ntokenindex = 1
- While $ntokenindex <= $ntokens
- If IsArray($privilege) Then
- $priv = $privilege[$ntokenindex - 1]
- Else
- $priv = $privilege
- EndIf
- $ret = DllCall("advapi32.dll", "int", "LookupPrivilegeValue", "str", "", "str", $priv, "ptr", DllStructGetPtr($luid))
- If $ret[0] Then
- If $benable Then
- DllStructSetData($token_privileges, 2, $se_privilege_enabled, (3 * $ntokenindex))
- Else
- DllStructSetData($token_privileges, 2, 0, (3 * $ntokenindex))
- EndIf
- DllStructSetData($token_privileges, 2, DllStructGetData($luid, 1), (3 * ($ntokenindex - 1)) + 1)
- DllStructSetData($token_privileges, 2, DllStructGetData($luid, 2), (3 * ($ntokenindex - 1)) + 2)
- DllStructSetData($luid, 1, 0)
- DllStructSetData($luid, 2, 0)
- EndIf
- $ntokenindex += 1
- WEnd
- $ret = DllCall("advapi32.dll", "int", "AdjustTokenPrivileges", "hwnd", $htoken, "int", 0, "ptr", DllStructGetPtr($token_privileges), "int", DllStructGetSize($newtoken_privileges), "ptr", DllStructGetPtr($newtoken_privileges), "int_ptr", 0)
- $f = DllCall("kernel32.dll", "int", "GetLastError")
- EndIf
- $newtoken_privileges = 0
- $token_privileges = 0
- $luid = 0
- If $sp_auxret[0] = 0 Then Return 0
- $sp_auxret = DllCall("kernel32.dll", "int", "CloseHandle", "hwnd", $htoken)
- If NOT $ret[0] AND NOT $sp_auxret[0] Then Return 0
- Return $ret[0]
- EndFunc
- #EndRegion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement