[OpenSource] Simple Instalocker

    Publicités

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

[Aomine

V.I.P
V
Jun 12, 2014
1,576
15
774
Va savoir
wVw2d.png

Vous êtes fatigué de ne pas être le premier à écrire ADC, mid, top .... Ce programme est le bon choix pour vous.
C'est un Autopicker simple, ce n'est pas bien écrit mais il fais son travail parfaitement.


Fonctions:

-Détecte automatiquement la sélection des Champions
-Poste un texte personnalisé pour votre Team
-Choisi instantanément votre champion
-Instalock optionnel
-Optimisez-le à la vitesse de votre PC

Note : N'utilisez pas auto-accept c'est bugé.

Si ça ne marche pas, Ouvrez-le en tant qu'Administrateur et réessayer.


P.S : Un Merci sera le bienvenu


PHP:
#include <ButtonConstants.au3> 
#include <ComboConstants.au3> 
#include <EditConstants.au3> 
#include <GUIConstantsEx.au3> 
#include <WindowsConstants.au3> 
#include <Array.au3> 

Opt("TrayMenuMode", 1+2) 
Global $aboutitem = TrayCreateItem("About") 
Global $prefsitem = TrayCreateItem("Settings") 
TrayCreateItem("") 
Global $exititem = TrayCreateItem("Exit") 

Global $searchbox_X, $searchbox_Y, $submitbox_X, $submitbox_Y, $champbox_X, $champbox_Y, $checkbox_X, $Checkbox_Y, $textbox_X, $textbox_Y, $Acceptbox_X, $Acceptbox_Y, $Accept_checkbox_X, $Accept_checkbox_Y, $Clip_type, $Clip_champ 
Global $Speed = 1, $multiplier = 0.75, $Title_main = "Para's Instapicker", $version = 0.48 


$combo_data = "Ahri|Akali|Alistar|Amumu|Anivia|Annie|Ashe|Azir|Blitzcrank|Brand|Braum|Caitlyn|Cassiopeia|Cho'Gath|Corki|Darius|Diana|Dr. Mundo|" 
$combo_data &= "Draven|Elise|Evelynn|Ezreal|Fiddlesticks|Fiora|Fizz|Galio|Gangplank|Garen|Gnar|Gragas|Graves|Hecarim|Heimerdinger|Irelia|Janna|Jarvan IV|" 
$combo_data &= "Jax|Jayce|Jinx|Kalista|Karma|Karthus|Kassadin|Katarina|Kayle|Kennen|Kha'Zix|Kog'Maw|LeBlanc|Lee Sin|Leona|Lissandra|Lucian|Lulu|Lux|Malphite|Malzahar|Maokai|Master Yi|" 
$combo_data &= "Miss Fortune|Modekaiser|Morgana|Nami|Nasus|Nautilus|Nidalee|Nocturne|Nunu|Olaf|Orianna|Pantheon|Poppy|Quinn|Rammus|Rek'Sai|Renekton|Rengar|Riven|Rumble|Ryze|Sejuani|Shaco|Shen|" 
$combo_data &= "Shyvana|Singed|Sion|Sivir|Skarner|Sona|Soraka|Swain|Syndra|Talon|Taric|Teemo|Thresh|Tristana|Trundle|Tryndamere|Twisted Fate|Twitch|Udyr|Urgot|Varus|Vayne|Veigar|Vel'Koz|Vi|" 
$combo_data &= "Viktor|Vladimir|Volibear|Warwick|Wukong|Xerath|Xin Zhao|Yasuo|Yorick|Zac|Zed|Ziggs|Zilean|Zyra" 

$GUI = GUICreate($Title_main, 202, 67, 602, 468) 
$Input = GUICtrlCreateInput("", 0, 0, 201, 21) 
$Combo = GUICtrlCreateCombo("Aatrox", 0, 24, 201, 25, BitOR($GUI_SS_DEFAULT_COMBO,$CBS_DROPDOWN,$CBS_AUTOHSCROLL)) 
GUICtrlSetData(-1, $combo_data ) 
$CBox = GUICtrlCreateCheckbox("Instalock",4,48,65,17) 
GUICtrlSetState(-1,$GUI_CHECKED) 
$CBox2 = GUICtrlCreateCheckbox("Auto-Accept",73,48,80,17) 
GUICtrlSetState(-1,$GUI_UNCHECKED) 
GUICtrlSetState(-1,$GUI_DISABLE) 
$BTN = GUICtrlCreateButton("OK", 156, 48, 43, 17) 
GUISetState(@SW_SHOW) 

While 1 
_WinMSG() 
_TrayCheck() 
WEnd 



Func _WaitforAcceptGame();experimental 
    $refresh_calc_timer = TimerInit() 
    _calc_pos() 
    _calc_delay() 
    Do 
        sleep(10) 
        $refresh_calc_timer_dif = TimerDiff($refresh_calc_timer) 
        If $refresh_calc_timer_dif > 500 Then 
            _calc_pos() 
            $refresh_calc_timer = TimerInit() 
        EndIf 
        _WinMSG() 
        _TrayCheck() 
        ToolTip(Hex(PixelGetColor($Accept_checkbox_X, $Accept_checkbox_Y),6),0,0) 
        Local $temp_p = PixelGetColor($Accept_checkbox_X, $Accept_checkbox_Y) 
    Until $temp_p <> 0xC16213 And $temp_p <> 0xC06213 And $temp_p <> 0xC26313 And $temp_p <> 0xC36313 And $temp_p <> 0xC46414 And $temp_p <> 0xC56514 And $temp_p <> 0xC46514 And $temp_p <> 0xC56614 And $temp_p <> 0xC36414 And $temp_p <> 0xC66614 And $temp_p <> 0xC46313 And $temp_p <> 0xC16313 And $temp_p <> 0xC36213 And $temp_p <> 0xC26213 And $temp_p <> 0xC06113 And $temp_p <> 0xC56414 And WinActive("PVP.net Client") 
    Sleep(750 * $multiplier) 
    MouseClick("LEFT",$Acceptbox_X,$Acceptbox_Y,2,1) 
EndFunc 


Func _WaitforChampselection() 
    $refresh_calc_timer = TimerInit() 
    _calc_pos() 
    _calc_delay() 
    Do 
        sleep(10) 
        $refresh_calc_timer_dif = TimerDiff($refresh_calc_timer) 
        If $refresh_calc_timer_dif > 500 Then 
            _calc_pos() 
            $refresh_calc_timer = TimerInit() 
        EndIf 
        _WinMSG() 
        _TrayCheck() 
    Until PixelGetColor($checkbox_X, $Checkbox_Y) = 0xF08B2C 
    Sleep(330 * $multiplier) 
    _calc_pos() 
    MouseClick("LEFT",$textbox_X,$textbox_Y,2,1) 
    Sleep(240 * $multiplier) 
    $temp_clip = ClipGet() 
    ClipPut($Clip_type) 
    Send("^v") 
    Sleep(200 * $multiplier) 
    Send("{enter}") 
    Sleep(240 * $multiplier) 
    MouseClick("LEFT",$searchbox_X,$searchbox_Y,2,1) 
    Sleep(290 * $multiplier) 
    ClipPut($Clip_champ) 
    Send("^v") 
    Sleep(480 * $multiplier) 
    MouseClick("LEFT",$champbox_X,$champbox_Y,2,1) 
    sleep(290 * $multiplier) 
    If GUICtrlRead($CBox) = 1 Then 
        MouseClick("LEFT",$submitbox_X,$submitbox_Y,2,1) 
    EndIf 
    ClipPut($temp_clip) 
EndFunc 

Func _calc_delay() 
    If $Speed = 0 Then 
        $multiplier = 2.00 
    ElseIf $Speed = 1 Then 
        $multiplier = 1.50 
    ElseIf $Speed = 2 then 
        $multiplier = 1 
    EndIf 
EndFunc 

Func _calc_pos() 
    $wintitle = WinGetTitle("[CLASS:ApolloRuntimeContentWindow]") 
    $p = WinGetPos($wintitle) 
    If @error Then 
        MsgBox(16,"League of Legends not found","Errorcode: 13",3) 
        Exit 
    EndIf 
    $textbox_X = $p[2] / 3.961904761904762 
    $textbox_X += $p[0] 
    $textbox_Y = $p[3] / 1.084462982273201 
    $textbox_Y += $p[1] 

    $searchbox_X = $p[2] / 1.460930640913082 
    $searchbox_X += $p[0] 
    $searchbox_Y = $p[3] / 6.303030303030303 
    $searchbox_Y += $p[1] 

    $champbox_X = $p[2] / 3.961904761904762 
    $champbox_X += $p[0] 
    $champbox_Y = $p[3] / 3.924528301886792 
    $champbox_Y += $p[1] 

    $submitbox_X = $p[2] / 1.484388938447814 
    $submitbox_X += $p[0] 
    $submitbox_Y = $p[3] / 1.60741885625966 
    $submitbox_Y += $p[1] 

    $checkbox_X = $p[2] / 3.328 
    $checkbox_X += $p[0] 
    $Checkbox_Y = $p[3] / 6.419753086419753 
    $Checkbox_Y += $p[1] 

    $Acceptbox_X = $p[2] / 2.220563847429519 
    $Acceptbox_X += $p[0] 
    $Acceptbox_Y = $p[3] / 1.803879310344828 
    $Acceptbox_Y += $p[1] 

    $Accept_checkbox_X = $p[2] / 1.510438413361169 
    $Accept_checkbox_X += $p[0] 
    $Accept_checkbox_Y = $p[3] / 13.90769230769231 
    $Accept_checkbox_Y += $p[1] 
EndFunc 

Func _WinMSG() 
    $nMsg = GUIGetMsg() 
    Switch $nMsg 
        Case $GUI_EVENT_CLOSE 
            Exit 
        Case $BTN 
            $Clip_type = GUICtrlRead($Input) 
            $Clip_champ = GUICtrlRead($Combo) 
            GUICtrlSetState($BTN,$GUI_DISABLE) 
            If GUICtrlRead($CBox2) = 1 Then 
                _WaitforAcceptGame() 
            EndIf 
            _WaitforChampselection() 
            GUICtrlSetState($BTN,$GUI_ENABLE) 
            TrayTip("successfully","Mission completed :>",3) 
    EndSwitch 
EndFunc 

Func _TrayCheck() 
Local $msg = TrayGetMsg() 
    Select 
        Case $msg = $aboutitem 
            MsgBox(64,"About:","Version: " & $version &  @CRLF & "Author: Paraly" & @CRLF & "- Done for Elitepvpers -") 
        Case $msg = $prefsitem 
            GUISetState(@SW_HIDE, $GUI) 
            _Settings(0) 
            $GUI2 = GUICreate("Settings", 156, 32, 650, 511) 
            $LBL = GUICtrlCreateLabel("Your PC-Speed:", 2,1,100,14) 
            $BTN2 = GUICtrlCreateButton("Low", 0, 16, 51, 17) 
            If $Speed = 0 Then 
                GUICtrlSetState(-1,$GUI_DISABLE) 
            EndIf 
            $BTN3 = GUICtrlCreateButton("Medium", 52, 16, 51, 17) 
            If $Speed = 1 Then 
                GUICtrlSetState(-1,$GUI_DISABLE) 
            EndIf 
            $BTN4 = GUICtrlCreateButton("High", 104, 16, 51, 17) 
            If $Speed = 2 Then 
                GUICtrlSetState(-1,$GUI_DISABLE) 
            EndIf 
            GUISetState(@SW_SHOW) 

            While 1 
                $nMsg = GUIGetMsg() 
                Switch $nMsg 
                    Case $GUI_EVENT_CLOSE 
                        _Settings(1) 
                        GUISetState(@SW_HIDE, $GUI2) 
                        GUISetState(@SW_SHOW, $GUI) 
                        WinActivate($Title_main) 
                        ExitLoop 
                    Case $BTN2 
                        GUICtrlSetState($BTN2,$GUI_DISABLE) 
                        GUICtrlSetState($BTN3,$GUI_ENABLE) 
                        GUICtrlSetState($BTN4,$GUI_ENABLE) 
                        $Speed = 0 
                    Case $BTN3 
                        GUICtrlSetState($BTN2,$GUI_ENABLE) 
                        GUICtrlSetState($BTN3,$GUI_DISABLE) 
                        GUICtrlSetState($BTN4,$GUI_ENABLE) 
                        $Speed = 1 
                    Case $BTN4 
                        GUICtrlSetState($BTN2,$GUI_ENABLE) 
                        GUICtrlSetState($BTN3,$GUI_ENABLE) 
                        GUICtrlSetState($BTN4,$GUI_DISABLE) 
                        $Speed = 2 
                EndSwitch 
            WEnd 
        Case $msg = $exititem 
            Exit 
    EndSelect 
EndFunc 

Func _Settings($mode) 
    If $mode = 0 Then;Load 
        If FileExists(@TempDir & "\Instapicker\Instapicker.cfg") Then 
            $f_settings = FileOpen(@TempDir & "\Instapicker\Instapicker.cfg",0) 
            $CFG_data = FileRead($f_settings) 
            FileClose($f_settings) 
            $CFG_Speed = StringRegExp($CFG_data,"CFG_Speed=(.*?);",3) 
            If IsArray($CFG_Speed) Then 
                $Speed = $CFG_Speed[0] 
            Else 
                MsgBox(0,"ERROR","Errorcode: 33",3) 
                Exit 
            EndIf 
        Else 
            _Settings(1) 
        EndIf 
    ElseIf $mode = 1 Then;Save 
        $f_settings = FileOpen(@TempDir & "\Instapicker\Instapicker.cfg",2+8) 
        FileWrite($f_settings,"CFG_Speed=" & $Speed & ";" & @CRLF) 
        FileClose($f_settings) 
    Else 
        MsgBox(16,"ERROR","Errorcode: 31",3) 
        Exit 
    EndIf 
EndFunc
 

Attachments

  • Para's InstaLock 0.48.zip
    531.4 KB · Views: 111
Last edited:

Sp3ctr0

Nouveau membre
Jul 18, 2011
1
0
301
31
Hum je sais pas trop, j'ai lancé une game, j'ai été deuxième à dire ma position avec le prog, et l'instalock n'a pas fonctionné, ça a copié mon dernier C/C (Qui a été fait avant de configurer ton prog) au lieu du nom du champion.

Je retesterais, j'edit si jamais. ;)

EDIT : Finalement c'est bon, j'ai rien dit, j'ai du bouger ma souris pendant le processus, tout est bon. Merci à toi. :)
 
Last edited:

LckdModz

Membre
Aug 21, 2014
6
0
66
Moi ca ne marche pas :/ on peut m'expliquer comment on fait ? ^^
Edit : Finalement réussi mas pas encore réussi pour écrire Top,Bot,Mid...
 
Last edited:
Jul 2, 2013
2,748
1
604
Www.FakeCompany.CoM
Merci du partage :noel: et espérons qu'il marchera toujours quand j'aurais retrouvé Le goût des jeux ^^

ps : perso ... t'aurais du le posté plus tôt genre avant les vac tu m'aurais sauvé :'(
 

†Death†

Membre actif
Aug 14, 2013
435
0
141
27
Ahlala je suis sec mdr.
Changelog version 0.44 :
-> Added Gnar
DAT UPDATE PLS.
Sinon pour les gens a qui ça ne marche pas enlever la fonction autoplay et recompiler vouala voualou.
 

MrShadowok

Membre
Jul 21, 2014
9
0
61
25
Fonctinne parfaitement, merci beaucoup.
Juste je préviens les gens. Ne bougez pas la souris après avoir cliqué sur valider pour accepter la game car le logiciel prend le controle de la souris le temps d'écrir top/mid/bot/jungle et de pick en champ pour instalock, je ferais une vidéo pour les plus faignant si l'auteur le veut bien? :)
+1
 

Hertzok

Membre
Feb 27, 2013
6
0
206
33
Hum .... pour le texte il marche ... mais la je sélectionne nasus et le logiciel me prend viktor ... au top c'est pas top (sans mauvais jeu de mots :non:
 

Mhaw

Roi des Chats
V
Oct 23, 2013
2,665
7
944
29
Alsace
Pourquoi devoir passé par toi pour les sources ?
Tu pourrais l'ajouté en piece jointe :/
Sinon merci du partage !

Fonctinne parfaitement, merci beaucoup.
Juste je préviens les gens. Ne bougez pas la souris après avoir cliqué sur valider pour accepter la game car le logiciel prend le controle de la souris le temps d'écrir top/mid/bot/jungle et de pick en champ pour instalock, je ferais une vidéo pour les plus faignant si l'auteur le veut bien? :)
+1



L'auteur n'est pas sur le forum, a toi de voir si tu veux faire cette vidéo ^^
 

Stanislav

▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪ ▪▪▪▪▪
V
May 18, 2011
2,033
12
944
54.90990461556954, 99.00165446794215
Fonctinne parfaitement, merci beaucoup.
Juste je préviens les gens. Ne bougez pas la souris après avoir cliqué sur valider pour accepter la game car le logiciel prend le controle de la souris le temps d'écrir top/mid/bot/jungle et de pick en champ pour instalock, je ferais une vidéo pour les plus faignant si l'auteur le veut bien? :)
+1

je ne comprend pas trop pourquoi le mec qui a crée se bot instalock a mis l'utilisation de la souris .... moi sur mon bot la souris n'est pas utiliser mais le Click est simulé a la zone demandée :x mais il reste qu'il est assez pratique :3

Donc voila je l'ai décompiler ^^"

Cadeau

#Region
#AutoIt3Wrapper_Icon=..\..\Bilder\league_of_legends_icon_by_theman4556-d6wic5y.ico
#AutoIt3Wrapper_OutFile=Para's InstaLock.exe
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_UseX64=n
#EndRegion
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 $__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 $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_clientedge = 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_queryendsession = 17
Global Const $wm_quit = 18
Global Const $wm_erasebkgnd = 20
Global Const $wm_queryopen = 19
Global Const $wm_syscolorchange = 21
Global Const $wm_endsession = 22
Global Const $wm_showwindow = 24
Global Const $wm_settingchange = 26
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_ime_startcomposition = 269
Global Const $wm_ime_endcomposition = 270
Global Const $wm_ime_composition = 271
Global Const $wm_ime_keylast = 271
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_parentnotify = 528
Global Const $wm_entermenuloop = 529
Global Const $wm_exitmenuloop = 530
Global Const $wm_nextmenu = 531
Global Const $wm_capturechanged = 533
Global Const $wm_moving = 534
Global Const $wm_powerbroadcast = 536
Global Const $wm_devicechange = 537
Global Const $wm_mdicreate = 544
Global Const $wm_mdidestroy = 545
Global Const $wm_mdiactivate = 546
Global Const $wm_mdirestore = 547
Global Const $wm_mdinext = 548
Global Const $wm_mdimaximize = 549
Global Const $wm_mditile = 550
Global Const $wm_mdicascade = 551
Global Const $wm_mdiiconarrange = 552
Global Const $wm_mdigetactive = 553
Global Const $wm_mdisetmenu = 560
Global Const $wm_entersizemove = 561
Global Const $wm_exitsizemove = 562
Global Const $wm_dropfiles = 563
Global Const $wm_mdirefreshmenu = 564
Global Const $wm_ime_setcontext = 641
Global Const $wm_ime_notify = 642
Global Const $wm_ime_control = 643
Global Const $wm_ime_compositionfull = 644
Global Const $wm_ime_select = 645
Global Const $wm_ime_char = 646
Global Const $wm_ime_request = 648
Global Const $wm_ime_keydown = 656
Global Const $wm_ime_keyup = 657
Global Const $wm_ncmousehover = 672
Global Const $wm_mousehover = 673
Global Const $wm_ncmouseleave = 674
Global Const $wm_mouseleave = 675
Global Const $wm_wtssession_change = 689
Global Const $wm_tablet_first = 704
Global Const $wm_tablet_last = 735
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_paletteischanging = 784
Global Const $wm_hotkey = 786
Global Const $wm_palettechanged = 785
Global Const $wm_print = 791
Global Const $wm_printclient = 792
Global Const $wm_appcommand = 793
Global Const $wm_querynewpalette = 783
Global Const $wm_themechanged = 794
Global Const $wm_handheldfirst = 856
Global Const $wm_handheldlast = 863
Global Const $wm_afxfirst = 864
Global Const $wm_afxlast = 895
Global Const $wm_penwinfirst = 896
Global Const $wm_penwinlast = 911
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_ncxbuttondown = 171
Global Const $wm_ncxbuttonup = 172
Global Const $wm_ncxbuttondblclk = 173
Global Const $wm_keydown = 256
Global Const $wm_keyfirst = 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_keylast = 265
Global Const $wm_unichar = 265
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 $wm_app = 32768
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_mousefirst = 512
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_rbuttondblclk = 518
Global Const $wm_mbuttondown = 519
Global Const $wm_mbuttonup = 520
Global Const $wm_mbuttondblclk = 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)

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 = 4094
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)
If StringLen($vtmp) > $ibuffer Then $vtmp = StringLeft($vtmp, $ibuffer)
$avarraytext[$i] &= $sseparator & $vtmp
Next
Next
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_lvm_getcolumnwidth = (4096 + 29)
Local Const $_arrayconstant_lvm_getitemcount = (4096 + 4)
Local Const $_arrayconstant_lvm_getitemstate = (4096 + 44)
Local Const $_arrayconstant_lvm_setextendedlistviewstyle = (4096 + 54)
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 $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)
For $i = 0 To $iubound
GUICtrlCreateListViewItem($avarraytext[$i], $hlistview)
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, $icompare = 0, $isubitem = 0)
$istart = _arraysearch($avarray, $vvalue, $istart, $iend, $icase, $icompare, 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, $icompare, 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, $icompare = 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
Local $icomptype = False
If $icompare = 2 Then
$icompare = 0
$icomptype = True
EndIf
Switch UBound($avarray, 0)
Case 1
If NOT $icompare Then
If NOT $icase Then
For $i = $istart To $iend Step $istep
If $icomptype AND VarGetType($avarray[$i]) <> VarGetType($vvalue) Then ContinueLoop
If $avarray[$i] = $vvalue Then Return $i
Next
Else
For $i = $istart To $iend Step $istep
If $icomptype AND VarGetType($avarray[$i]) <> VarGetType($vvalue) Then ContinueLoop
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 $icompare Then
If NOT $icase Then
For $i = $istart To $iend Step $istep
If $icomptype AND VarGetType($avarray[$i][$j]) <> VarGetType($vvalue) Then ContinueLoop
If $avarray[$i][$j] = $vvalue Then Return $i
Next
Else
For $i = $istart To $iend Step $istep
If $icomptype AND VarGetType($avarray[$i][$j]) <> VarGetType($vvalue) Then ContinueLoop
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

Opt("TrayMenuMode", 1 + 2)
Global $aboutitem = TrayCreateItem("About")
Global $prefsitem = TrayCreateItem("Settings")
TrayCreateItem("")
Global $exititem = TrayCreateItem("Exit")
Global $searchbox_x, $searchbox_y, $submitbox_x, $submitbox_y, $champbox_x, $champbox_y, $checkbox_x, $checkbox_y, $textbox_x, $textbox_y, $acceptbox_x, $acceptbox_y, $accept_checkbox_x, $accept_checkbox_y, $clip_type, $clip_champ
Global $speed = 1, $multiplier = 0.75, $title_main = "Para's Instapicker", $version = 0.44
$combo_data = "Ahri|Akali|Alistar|Amumu|Anivia|Annie|Ashe|Blitzcrank|Brand|Braum|Caitlyn|Cassiopeia|Cho'Gath|Corki|Darius|Diana|Dr. Mundo|"
$combo_data &= "Draven|Elise|Evelynn|Ezreal|Fiddlesticks|Fiora|Fizz|Galio|Gangplank|Garen|Gnar|Gragas|Graves|Hecarim|Heimerdinger|Irelia|Janna|Jarvan IV|"
$combo_data &= "Jax|Jayce|Jinx|Karma|Karthus|Kassadin|Katarina|Kayle|Kennen|Kha'Zix|Kog'Maw|LeBlanc|Lee Sin|Leona|Lissandra|Lucian|Lulu|Lux|Malphite|Malzahar|Maokai|Master Yi|"
$combo_data &= "Miss Fortune|Modekaiser|Morgana|Nami|Nasus|Nautilus|Nidalee|Nocturne|Nunu|Olaf|Orianna|Pantheon|Poppy|Quinn|Rammus|Renekton|Rengar|Riven|Rumble|Ryze|Sejuani|Shaco|Shen|"
$combo_data &= "Shyvana|Singed|Sion|Sivir|Skarner|Sona|Soraka|Swain|Syndra|Talon|Taric|Teemo|Thresh|Tristana|Trundle|Tryndamere|Twisted Fate|Twitch|Udyr|Urgot|Varus|Vayne|Veigar|Vel'Koz|Vi|"
$combo_data &= "Viktor|Vladimir|Volibear|Warwick|Wukong|Xerath|Xin Zhao|Yasuo|Yorick|Zac|Zed|Ziggs|Zilean|Zyra"
$gui = GUICreate($title_main, 202, 67, 602, 468)
$input = GUICtrlCreateInput("", 0, 0, 201, 21)
$combo = GUICtrlCreateCombo("Aatrox", 0, 24, 201, 25, BitOR($gui_ss_default_combo, $cbs_dropdown, $cbs_autohscroll))
GUICtrlSetData(-1, $combo_data)
$cbox = GUICtrlCreateCheckbox("Instalock", 4, 48, 65, 17)
GUICtrlSetState(-1, $gui_checked)
$cbox2 = GUICtrlCreateCheckbox("Auto-Accept", 73, 48, 80, 17)
GUICtrlSetState(-1, $gui_unchecked)
GUICtrlSetState(-1, $gui_disable)
$btn = GUICtrlCreateButton("OK", 156, 48, 43, 17)
GUISetState(@SW_SHOW)
While 1
_winmsg()
_traycheck()
WEnd

Func _waitforacceptgame()
$refresh_calc_timer = TimerInit()
_calc_pos()
_calc_delay()
Do
Sleep(10)
$refresh_calc_timer_dif = TimerDiff($refresh_calc_timer)
If $refresh_calc_timer_dif > 500 Then
_calc_pos()
$refresh_calc_timer = TimerInit()
EndIf
_winmsg()
_traycheck()
ToolTip(Hex(PixelGetColor($accept_checkbox_x, $accept_checkbox_y), 6), 0, 0)
Local $temp_p = PixelGetColor($accept_checkbox_x, $accept_checkbox_y)
Until $temp_p <> 12673555 AND $temp_p <> 12608019 AND $temp_p <> 12739347 AND $temp_p <> 12804883 AND $temp_p <> 12870676 AND $temp_p <> 12936468 AND $temp_p <> 12870932 AND $temp_p <> 12936724 AND $temp_p <> 12805140 AND $temp_p <> 13002260 AND $temp_p <> 12870419 AND $temp_p <> 12673811 AND $temp_p <> 12804627 AND $temp_p <> 12739091 AND $temp_p <> 12607763 AND $temp_p <> 12936212 AND WinActive("PVP.net Client")
Sleep(750 * $multiplier)
MouseClick("LEFT", $acceptbox_x, $acceptbox_y, 2, 1)
EndFunc

Func _waitforchampselection()
$refresh_calc_timer = TimerInit()
_calc_pos()
_calc_delay()
Do
Sleep(10)
$refresh_calc_timer_dif = TimerDiff($refresh_calc_timer)
If $refresh_calc_timer_dif > 500 Then
_calc_pos()
$refresh_calc_timer = TimerInit()
EndIf
_winmsg()
_traycheck()
Until PixelGetColor($checkbox_x, $checkbox_y) = 15764268
Sleep(330 * $multiplier)
_calc_pos()
MouseClick("LEFT", $textbox_x, $textbox_y, 2, 1)
Sleep(240 * $multiplier)
$temp_clip = ClipGet()
ClipPut($clip_type)
Send("^v")
Sleep(200 * $multiplier)
Send("{enter}")
Sleep(240 * $multiplier)
MouseClick("LEFT", $searchbox_x, $searchbox_y, 2, 1)
Sleep(290 * $multiplier)
ClipPut($clip_champ)
Send("^v")
Sleep(480 * $multiplier)
MouseClick("LEFT", $champbox_x, $champbox_y, 2, 1)
Sleep(290 * $multiplier)
If GUICtrlRead($cbox) = 1 Then
MouseClick("LEFT", $submitbox_x, $submitbox_y, 2, 1)
EndIf
ClipPut($temp_clip)
EndFunc

Func _calc_delay()
If $speed = 0 Then
$multiplier = 1.25
ElseIf $speed = 1 Then
$multiplier = 0.8
ElseIf $speed = 2 Then
$multiplier = 0.6
EndIf
EndFunc

Func _calc_pos()
$wintitle = WinGetTitle("[CLASS:ApolloRuntimeContentWindow]")
$p = WinGetPos($wintitle)
If @error Then
MsgBox(16, "League of Legends not found", "Errorcode: 13", 3)
Exit
EndIf
$textbox_x = $p[2] / 3.96190476190476
$textbox_x += $p[0]
$textbox_y = $p[3] / 1.0844629822732
$textbox_y += $p[1]
$searchbox_x = $p[2] / 1.46093064091308
$searchbox_x += $p[0]
$searchbox_y = $p[3] / 6.3030303030303
$searchbox_y += $p[1]
$champbox_x = $p[2] / 3.96190476190476
$champbox_x += $p[0]
$champbox_y = $p[3] / 3.92452830188679
$champbox_y += $p[1]
$submitbox_x = $p[2] / 1.48438893844781
$submitbox_x += $p[0]
$submitbox_y = $p[3] / 1.60741885625966
$submitbox_y += $p[1]
$checkbox_x = $p[2] / 3.328
$checkbox_x += $p[0]
$checkbox_y = $p[3] / 6.41975308641975
$checkbox_y += $p[1]
$acceptbox_x = $p[2] / 2.22056384742952
$acceptbox_x += $p[0]
$acceptbox_y = $p[3] / 1.80387931034483
$acceptbox_y += $p[1]
$accept_checkbox_x = $p[2] / 1.51043841336117
$accept_checkbox_x += $p[0]
$accept_checkbox_y = $p[3] / 13.9076923076923
$accept_checkbox_y += $p[1]
EndFunc

Func _winmsg()
$nmsg = GUIGetMsg()
Switch $nmsg
Case $gui_event_close
Exit
Case $btn
$clip_type = GUICtrlRead($input)
$clip_champ = GUICtrlRead($combo)
GUICtrlSetState($btn, $gui_disable)
If GUICtrlRead($cbox2) = 1 Then
_waitforacceptgame()
EndIf
_waitforchampselection()
GUICtrlSetState($btn, $gui_enable)
TrayTip("successfully", "Mission completed :>", 3)
EndSwitch
EndFunc

Func _traycheck()
Local $msg = TrayGetMsg()
Select
Case $msg = $aboutitem
MsgBox(64, "About:", "Version: " & $version & @CRLF & "Author: Paraly" & @CRLF & "- Done for Elitepvpers -")
Case $msg = $prefsitem
GUISetState(@SW_HIDE, $gui)
_settings(0)
$gui2 = GUICreate("Settings", 156, 32, 650, 511)
$lbl = GUICtrlCreateLabel("Your PC-Speed:", 2, 1, 100, 14)
$btn2 = GUICtrlCreateButton("Low", 0, 16, 51, 17)
If $speed = 0 Then
GUICtrlSetState(-1, $gui_disable)
EndIf
$btn3 = GUICtrlCreateButton("Medium", 52, 16, 51, 17)
If $speed = 1 Then
GUICtrlSetState(-1, $gui_disable)
EndIf
$btn4 = GUICtrlCreateButton("High", 104, 16, 51, 17)
If $speed = 2 Then
GUICtrlSetState(-1, $gui_disable)
EndIf
GUISetState(@SW_SHOW)
While 1
$nmsg = GUIGetMsg()
Switch $nmsg
Case $gui_event_close
_settings(1)
GUISetState(@SW_HIDE, $gui2)
GUISetState(@SW_SHOW, $gui)
WinActivate($title_main)
ExitLoop
Case $btn2
GUICtrlSetState($btn2, $gui_disable)
GUICtrlSetState($btn3, $gui_enable)
GUICtrlSetState($btn4, $gui_enable)
$speed = 0
Case $btn3
GUICtrlSetState($btn2, $gui_enable)
GUICtrlSetState($btn3, $gui_disable)
GUICtrlSetState($btn4, $gui_enable)
$speed = 1
Case $btn4
GUICtrlSetState($btn2, $gui_enable)
GUICtrlSetState($btn3, $gui_enable)
GUICtrlSetState($btn4, $gui_disable)
$speed = 2
EndSwitch
WEnd
Case $msg = $exititem
Exit
EndSelect
EndFunc

Func _settings($mode)
If $mode = 0 Then
If FileExists(@TempDir & "\Instapicker\Instapicker.cfg") Then
$f_settings = FileOpen(@TempDir & "\Instapicker\Instapicker.cfg", 0)
$cfg_data = FileRead($f_settings)
FileClose($f_settings)
$cfg_speed = StringRegExp($cfg_data, "CFG_Speed=(.*?);", 3)
If IsArray($cfg_speed) Then
$speed = $cfg_speed[0]
Else
MsgBox(0, "ERROR", "Errorcode: 33", 3)
Exit
EndIf
Else
_settings(1)
EndIf
ElseIf $mode = 1 Then
$f_settings = FileOpen(@TempDir & "\Instapicker\Instapicker.cfg", 2 + 8)
FileWrite($f_settings, "CFG_Speed=" & $speed & ";" & @CRLF)
FileClose($f_settings)
Else
MsgBox(16, "ERROR", "Errorcode: 31", 3)
Exit
EndIf
EndFunc
 
Last edited:

[S]hin

V
Jan 18, 2014
1,595
0
161
Tahia Dz.
Merci du partage, mais évitez de gratter les merci, les gens les mettent quand il en ont envie ^^

---------- Message ajouté à 19h08 ---------- Le message précédent était à 16h31 ----------

Tutoriel? même pour ce genre de truc c'est utile ;)