Sign in to follow this  
Followers 0
sandin

control move troubles :(

8 posts in this topic




Does it really take 200KB of code to reproduce the symptoms?

How about a nice short demo script that reproduces your issue with minimum code?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

oks, the code is quite simple but it has alot of variables (I dunno which1 is giving me the prob, that's why this example is... big... :( ), this is a little bit shorter version, the problem occures when I click on the minimize button of the "macro" section first:

#include <GuiConstants.au3>

Global $addonsi = 0, $macroesi = 0, $skillsi = 0, $generali = 0, $instructionsi = 0
Opt("GUIOnEventMode", True)
$nazivbota = "blablabla"
GuiCreate( $nazivbota, 178, 743 , @DesktopWidth-184 , 0, -1, $WS_EX_APPWINDOW)

$macroesgroup = GuiCtrlCreateGroup("", 5,290,167,60)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$GrupaMacroi=GUICtrlCreateLabel("Macroes", 10, 290, 43, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$minimizemacroes = GUICtrlCreateButton("-", 150, 288, 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$macro7=GUICtrlCreateCheckbox( "", 30, 310, 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$macro77 = GUICtrlCreateLabel("7", 47, 310, 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$macro8=GUICtrlCreateCheckbox( "", 80, 310, 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$macro88 = GUICtrlCreateLabel("8", 97, 310, 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$macro9=GUICtrlCreateCheckbox( "9", 130, 310, 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$macro99 = GUICtrlCreateLabel("9", 147, 310, 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$startmacro1 = GUICtrlCreateLabel("Start = Num.Del", 50, 330, 100, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$jewelB=GUICtrlCreateButton("Jewel Sound ON/OFF", 10, 360, 160, 20)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$JewelI=GUICtrlCreateInput("", 10, 385, 160, 20, $ES_READONLY)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$instructionsgroup = GuiCtrlCreateGroup("", 5,410,167,165)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$GrupaUputstvo=GUICtrlCreateLabel("Instructions", 10, 410, 56, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$minimizeinstructions = GUICtrlCreateButton("-", 150, 408, 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u1=GUICtrlCreateLabel( "StartBot (+Buff)",15,430,100)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u11=GUICtrlCreateLabel( "= F11",110,430,30)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u2=GUICtrlCreateLabel( "StartSoloBuff",15,445,100)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u22=GUICtrlCreateLabel( "= F9",110,445,30)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u2a=GUICtrlCreateLabel( "StartEE Bot",15,460,100)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u22a=GUICtrlCreateLabel( "= F8",110,460,30)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u3=GUICtrlCreateLabel( "StopBot/Buff",15,475,100)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u33=GUICtrlCreateLabel( "= F10",110,475,30)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u4=GUICtrlCreateLabel( "AutoLeftClick",15,490,100)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u44=GUICtrlCreateLabel( "= Num1",110,490,50)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u5=GUICtrlCreateLabel( "AutoRightClick",15,505,100)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u55=GUICtrlCreateLabel( "= Num2",110,505,50)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u6=GUICtrlCreateLabel( "AutoSpace",15,520,100)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u66=GUICtrlCreateLabel( "= Num3",110,520, 50)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u7=GUICtrlCreateLabel( "StartMacro",15,535,100)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u77=GUICtrlCreateLabel( "= NumDel",110,535,50)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u8=GUICtrlCreateLabel( "ALL Off",15,550,120)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$u88=GUICtrlCreateLabel( "= Num0",110,550,50)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$addonsgroup = GuiCtrlCreateGroup("", 5,580,167,120)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$addons_label = GUICtrlCreateLabel("Latest AddOns", 10, 580, 72, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$minimizeaddons = GUICtrlCreateButton("-", 150, 578, 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$AParty=GUICtrlCreateCheckbox( "",10 , 595 , 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$aplabel = GUICtrlCreateLabel("AutoParty after", 25, 595, 80)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$APartyCombo = GUICtrlCreateCombo("" , 100, 595, 67, 15, $CBS_DROPDOWNLIST)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$DLhorse=GUICtrlCreateCheckbox("", 10, 615, 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$horselabel = GUICtrlCreateLabel("DL Horse each", 25, 615, 75, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$RDLhorse2 = GuiCtrlCreateInput("1", 100, 615, 67, 20, $ES_READONLY)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$horseupdown = GuiCtrlCreateUpDown($RDLhorse2)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$InfArrowCheckbox=GUICtrlCreateCheckbox("", 10, 635, 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$IASlabel = GUICtrlCreateLabel("I.A.S.", 25, 635, 35, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$manarecharge = GuiCtrlCreateInput("1", 80, 635, 87, 20, $ES_READONLY)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$IASupdown = GuiCtrlCreateUpDown($manarecharge)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$AutoRepair=GUICtrlCreateCheckbox("", 10, 655, 15, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$repairlabel = GUICtrlCreateLabel("AutoRepair every:", 25, 655, 87, 15)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$AutoRepairInput = GuiCtrlCreateInput("1", 115, 655, 52, 20, $ES_READONLY)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$repairupdown = GuiCtrlCreateUpDown($AutoRepairInput)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$StartTimer=GUICtrlCreateButton("XXX-TIMER", 10, 676, 80, 20)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$startmubutton=GUICtrlCreateButton("START MU", 10, 705, 160, 20)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)

$ja=GUICtrlCreateLabel( "----------  By SND  ----------",35,728,120)
GUICtrlSetResizing(-1,$GUI_DOCKTOP+$GUI_DOCKSIZE)
GUICtrlSetOnEvent($minimizeaddons, "minimizeaddons")
GUICtrlSetOnEvent($minimizeinstructions, "minimizeinstructions")
GUICtrlSetOnEvent($minimizemacroes, "minimizemacroes")
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
GUISetState()

func _exit ()
    Exit
EndFunc

func minimizeaddons ()
    if $addonsi = 0 Then
        GUICtrlSetData($minimizeaddons, "+")
        $macroesgrouppos = ControlGetPos($nazivbota, "", $macroesgroup)
        $GrupaMacroipos = ControlGetPos($nazivbota, "", $GrupaMacroi)
        $minimizemacroespos = ControlGetPos($nazivbota, "", $minimizemacroes)
        $macro7pos = ControlGetPos($nazivbota, "", $macro7)
        $macro77pos = ControlGetPos($nazivbota, "", $macro77)
        $macro8pos = ControlGetPos($nazivbota, "", $macro8)
        $macro88pos = ControlGetPos($nazivbota, "", $macro88)
        $macro9pos = ControlGetPos($nazivbota, "", $macro9)
        $macro99pos = ControlGetPos($nazivbota, "", $macro99)
        $startmacro1pos = ControlGetPos($nazivbota, "", $startmacro1)
        $jewelBpos = ControlGetPos($nazivbota, "", $jewelB)
        $JewelIpos = ControlGetPos($nazivbota, "", $JewelI)
        $instructionsgrouppos = ControlGetPos($nazivbota, "", $instructionsgroup)
        $GrupaUputstvopos = ControlGetPos($nazivbota, "", $GrupaUputstvo)
        $minimizeinstructionspos = ControlGetPos($nazivbota, "", $minimizeinstructions)
        $u1pos = ControlGetPos($nazivbota, "", $u1)
        $u11pos = ControlGetPos($nazivbota, "", $u11)
        $u2pos = ControlGetPos($nazivbota, "", $u2)
        $u22pos = ControlGetPos($nazivbota, "", $u22)
        $u2apos = ControlGetPos($nazivbota, "", $u2a)
        $u22apos = ControlGetPos($nazivbota, "", $u22a)
        $u3pos = ControlGetPos($nazivbota, "", $u3)
        $u33pos = ControlGetPos($nazivbota, "", $u33)
        $u4pos = ControlGetPos($nazivbota, "", $u4)
        $u44pos = ControlGetPos($nazivbota, "", $u44)
        $u5pos = ControlGetPos($nazivbota, "", $u5)
        $u55pos = ControlGetPos($nazivbota, "", $u55)
        $u6pos = ControlGetPos($nazivbota, "", $u6)
        $u66pos = ControlGetPos($nazivbota, "", $u66)
        $u7pos = ControlGetPos($nazivbota, "", $u7)
        $u77pos = ControlGetPos($nazivbota, "", $u77)
        $u8pos = ControlGetPos($nazivbota, "", $u8)
        $u88pos = ControlGetPos($nazivbota, "", $u88)
        $addonsgrouppos = ControlGetPos($nazivbota, "", $addonsgroup)
        $addons_labelpos = ControlGetPos($nazivbota, "", $addons_label)
        $minimizeaddonspos = ControlGetPos($nazivbota, "", $minimizeaddons)
        $APartypos = ControlGetPos($nazivbota, "", $AParty)
        $aplabelpos = ControlGetPos($nazivbota, "", $aplabel)
        $APartyCombopos = ControlGetPos($nazivbota, "", $APartyCombo)
        $DLhorsepos = ControlGetPos($nazivbota, "", $DLhorse)
        $horselabelpos = ControlGetPos($nazivbota, "", $horselabel)
        $RDLhorse2pos = ControlGetPos($nazivbota, "", $RDLhorse2)
        $horseupdownpos = ControlGetPos($nazivbota, "", $horseupdown)
        $InfArrowCheckboxpos = ControlGetPos($nazivbota, "", $InfArrowCheckbox)
        $IASlabelpos = ControlGetPos($nazivbota, "", $IASlabel)
        $manarechargepos = ControlGetPos($nazivbota, "", $manarecharge)
        $IASupdownpos = ControlGetPos($nazivbota, "", $IASupdown)
        $AutoRepairpos = ControlGetPos($nazivbota, "", $AutoRepair)
        $repairlabelpos = ControlGetPos($nazivbota, "", $repairlabel)
        $AutoRepairInputpos = ControlGetPos($nazivbota, "", $AutoRepairInput)
        $repairupdownpos = ControlGetPos($nazivbota, "", $repairupdown)
        $StartTimerpos = ControlGetPos($nazivbota, "", $StartTimer)
        $startmubuttonpos = ControlGetPos($nazivbota, "", $startmubutton)
        $japos = ControlGetPos($nazivbota, "", $ja)
        ;----- window ----------------------------------
        $SNDpos = WinGetPos($nazivbota)
        winmove($nazivbota, "", $SNDpos[0], $SNDpos[1], $SNDpos[2], $SNDpos[3]-100)
        ;-----------------------------------------------
        GUICtrlSetState($AParty, $GUI_HIDE)
        GUICtrlSetState($aplabel, $GUI_HIDE)
        GUICtrlSetState($APartyCombo, $GUI_HIDE)
        GUICtrlSetState($DLhorse, $GUI_HIDE)
        GUICtrlSetState($horselabel, $GUI_HIDE)
        GUICtrlSetState($RDLhorse2, $GUI_HIDE)
        GUICtrlSetState($horseupdown, $GUI_HIDE)
        GUICtrlSetState($InfArrowCheckbox, $GUI_HIDE)
        GUICtrlSetState($IASlabel, $GUI_HIDE)
        GUICtrlSetState($manarecharge, $GUI_HIDE)
        GUICtrlSetState($IASupdown, $GUI_HIDE)
        GUICtrlSetState($AutoRepair, $GUI_HIDE)
        GUICtrlSetState($repairlabel, $GUI_HIDE)
        GUICtrlSetState($AutoRepairInput, $GUI_HIDE)
        GUICtrlSetState($repairupdown, $GUI_HIDE)
        GUICtrlSetState($StartTimer, $GUI_HIDE)
        ControlMove($nazivbota, "", $macroesgroup, $macroesgrouppos[0], $macroesgrouppos[1], $macroesgrouppos[2], $macroesgrouppos[3])
        ControlMove($nazivbota, "", $GrupaMacroi, $GrupaMacroipos[0], $GrupaMacroipos[1], $GrupaMacroipos[2], $GrupaMacroipos[3])
        ControlMove($nazivbota, "", $minimizemacroes, $minimizemacroespos[0], $minimizemacroespos[1], $minimizemacroespos[2], $minimizemacroespos[3])
        ControlMove($nazivbota, "", $macro7, $macro7pos[0], $macro7pos[1], $macro7pos[2], $macro7pos[3])
        ControlMove($nazivbota, "", $macro77, $macro77pos[0], $macro77pos[1], $macro77pos[2], $macro77pos[3])
        ControlMove($nazivbota, "", $macro8, $macro8pos[0], $macro8pos[1], $macro8pos[2], $macro8pos[3])
        ControlMove($nazivbota, "", $macro88, $macro88pos[0], $macro88pos[1], $macro88pos[2], $macro88pos[3])
        ControlMove($nazivbota, "", $macro9, $macro9pos[0], $macro9pos[1], $macro9pos[2], $macro9pos[3])
        ControlMove($nazivbota, "", $macro99, $macro99pos[0], $macro99pos[1], $macro99pos[2], $macro99pos[3])
        ControlMove($nazivbota, "", $startmacro1, $startmacro1pos[0], $startmacro1pos[1], $startmacro1pos[2], $startmacro1pos[3])
        ControlMove($nazivbota, "", $jewelB, $jewelBpos[0], $jewelBpos[1], $jewelBpos[2], $jewelBpos[3])
        ControlMove($nazivbota, "", $JewelI, $JewelIpos[0], $JewelIpos[1], $JewelIpos[2], $JewelIpos[3])
        ControlMove($nazivbota, "", $instructionsgroup, $instructionsgrouppos[0], $instructionsgrouppos[1], $instructionsgrouppos[2], $instructionsgrouppos[3])
        ControlMove($nazivbota, "", $GrupaUputstvo, $GrupaUputstvopos[0], $GrupaUputstvopos[1], $GrupaUputstvopos[2], $GrupaUputstvopos[3])
        ControlMove($nazivbota, "", $minimizeinstructions, $minimizeinstructionspos[0], $minimizeinstructionspos[1], $minimizeinstructionspos[2], $minimizeinstructionspos[3])
        ControlMove($nazivbota, "", $u1, $u1pos[0], $u1pos[1], $u1pos[2], $u1pos[3])
        ControlMove($nazivbota, "", $u11, $u11pos[0], $u11pos[1], $u11pos[2], $u11pos[3])
        ControlMove($nazivbota, "", $u2, $u2pos[0], $u2pos[1], $u2pos[2], $u2pos[3])
        ControlMove($nazivbota, "", $u22, $u22pos[0], $u22pos[1], $u22pos[2], $u22pos[3])
        ControlMove($nazivbota, "", $u2a, $u2apos[0], $u2apos[1], $u2apos[2], $u2apos[3])
        ControlMove($nazivbota, "", $u22a, $u22apos[0], $u22apos[1], $u22apos[2], $u22apos[3])
        ControlMove($nazivbota, "", $u3, $u3pos[0], $u3pos[1], $u3pos[2], $u3pos[3])
        ControlMove($nazivbota, "", $u33, $u33pos[0], $u33pos[1], $u33pos[2], $u33pos[3])
        ControlMove($nazivbota, "", $u4, $u4pos[0], $u4pos[1], $u4pos[2], $u4pos[3])
        ControlMove($nazivbota, "", $u44, $u44pos[0], $u44pos[1], $u44pos[2], $u44pos[3])
        ControlMove($nazivbota, "", $u5, $u5pos[0], $u5pos[1], $u5pos[2], $u5pos[3])
        ControlMove($nazivbota, "", $u55, $u55pos[0], $u55pos[1], $u55pos[2], $u55pos[3])
        ControlMove($nazivbota, "", $u6, $u6pos[0], $u6pos[1], $u6pos[2], $u6pos[3])
        ControlMove($nazivbota, "", $u66, $u66pos[0], $u66pos[1], $u66pos[2], $u66pos[3])
        ControlMove($nazivbota, "", $u7, $u7pos[0], $u7pos[1], $u7pos[2], $u7pos[3])
        ControlMove($nazivbota, "", $u77, $u77pos[0], $u77pos[1], $u77pos[2], $u77pos[3])
        ControlMove($nazivbota, "", $u8, $u8pos[0], $u8pos[1], $u8pos[2], $u8pos[3])
        ControlMove($nazivbota, "", $u88, $u88pos[0], $u88pos[1], $u88pos[2], $u88pos[3])
        ControlMove($nazivbota, "", $addonsgroup, $addonsgrouppos[0], $addonsgrouppos[1], $addonsgrouppos[2], $addonsgrouppos[3]-100)
        ControlMove($nazivbota, "", $addons_label, $addons_labelpos[0], $addons_labelpos[1], $addons_labelpos[2], $addons_labelpos[3])
        ControlMove($nazivbota, "", $minimizeaddons, $minimizeaddonspos[0], $minimizeaddonspos[1], $minimizeaddonspos[2], $minimizeaddonspos[3])
        ControlMove($nazivbota, "", $AParty, $APartypos[0], $APartypos[1], $APartypos[2], $APartypos[3])
        ControlMove($nazivbota, "", $aplabel, $aplabelpos[0], $aplabelpos[1], $aplabelpos[2], $aplabelpos[3])
        ControlMove($nazivbota, "", $APartyCombo, $APartyCombopos[0], $APartyCombopos[1], $APartyCombopos[2], $APartyCombopos[3])
        ControlMove($nazivbota, "", $DLhorse, $DLhorsepos[0], $DLhorsepos[1], $DLhorsepos[2], $DLhorsepos[3])
        ControlMove($nazivbota, "", $horselabel, $horselabelpos[0], $horselabelpos[1], $horselabelpos[2], $horselabelpos[3])
        ControlMove($nazivbota, "", $RDLhorse2, $RDLhorse2pos[0], $RDLhorse2pos[1], $RDLhorse2pos[2], $RDLhorse2pos[3])
        ControlMove($nazivbota, "", $horseupdown, $horseupdownpos[0], $horseupdownpos[1], $horseupdownpos[2], $horseupdownpos[3])
        ControlMove($nazivbota, "", $InfArrowCheckbox, $InfArrowCheckboxpos[0], $InfArrowCheckboxpos[1], $InfArrowCheckboxpos[2], $InfArrowCheckboxpos[3])
        ControlMove($nazivbota, "", $IASlabel, $IASlabelpos[0], $IASlabelpos[1], $IASlabelpos[2], $IASlabelpos[3])
        ControlMove($nazivbota, "", $manarecharge, $manarechargepos[0], $manarechargepos[1], $manarechargepos[2], $manarechargepos[3])
        ControlMove($nazivbota, "", $IASupdown, $IASupdownpos[0], $IASupdownpos[1], $IASupdownpos[2], $IASupdownpos[3])
        ControlMove($nazivbota, "", $AutoRepair, $AutoRepairpos[0], $AutoRepairpos[1], $AutoRepairpos[2], $AutoRepairpos[3])
        ControlMove($nazivbota, "", $repairlabel, $repairlabelpos[0], $repairlabelpos[1], $repairlabelpos[2], $repairlabelpos[3])
        ControlMove($nazivbota, "", $AutoRepairInput, $AutoRepairInputpos[0], $AutoRepairInputpos[1], $AutoRepairInputpos[2], $AutoRepairInputpos[3])
        ControlMove($nazivbota, "", $repairupdown, $repairupdownpos[0], $repairupdownpos[1], $repairupdownpos[2], $repairupdownpos[3])
        ControlMove($nazivbota, "", $StartTimer, $StartTimerpos[0], $StartTimerpos[1], $StartTimerpos[2], $StartTimerpos[3])
        ControlMove($nazivbota, "", $startmubutton, $startmubuttonpos[0], $startmubuttonpos[1]-100, $startmubuttonpos[2], $startmubuttonpos[3])
        ControlMove($nazivbota, "", $ja, $japos[0], $japos[1]-100, $japos[2], $japos[3])
        $addonsi = 1
    Else
        GUICtrlSetData($minimizeaddons, "-")
        $macroesgrouppos = ControlGetPos($nazivbota, "", $macroesgroup)
        $GrupaMacroipos = ControlGetPos($nazivbota, "", $GrupaMacroi)
        $minimizemacroespos = ControlGetPos($nazivbota, "", $minimizemacroes)
        $macro7pos = ControlGetPos($nazivbota, "", $macro7)
        $macro77pos = ControlGetPos($nazivbota, "", $macro77)
        $macro8pos = ControlGetPos($nazivbota, "", $macro8)
        $macro88pos = ControlGetPos($nazivbota, "", $macro88)
        $macro9pos = ControlGetPos($nazivbota, "", $macro9)
        $macro99pos = ControlGetPos($nazivbota, "", $macro99)
        $startmacro1pos = ControlGetPos($nazivbota, "", $startmacro1)
        $jewelBpos = ControlGetPos($nazivbota, "", $jewelB)
        $JewelIpos = ControlGetPos($nazivbota, "", $JewelI)
        $instructionsgrouppos = ControlGetPos($nazivbota, "", $instructionsgroup)
        $GrupaUputstvopos = ControlGetPos($nazivbota, "", $GrupaUputstvo)
        $minimizeinstructionspos = ControlGetPos($nazivbota, "", $minimizeinstructions)
        $u1pos = ControlGetPos($nazivbota, "", $u1)
        $u11pos = ControlGetPos($nazivbota, "", $u11)
        $u2pos = ControlGetPos($nazivbota, "", $u2)
        $u22pos = ControlGetPos($nazivbota, "", $u22)
        $u2apos = ControlGetPos($nazivbota, "", $u2a)
        $u22apos = ControlGetPos($nazivbota, "", $u22a)
        $u3pos = ControlGetPos($nazivbota, "", $u3)
        $u33pos = ControlGetPos($nazivbota, "", $u33)
        $u4pos = ControlGetPos($nazivbota, "", $u4)
        $u44pos = ControlGetPos($nazivbota, "", $u44)
        $u5pos = ControlGetPos($nazivbota, "", $u5)
        $u55pos = ControlGetPos($nazivbota, "", $u55)
        $u6pos = ControlGetPos($nazivbota, "", $u6)
        $u66pos = ControlGetPos($nazivbota, "", $u66)
        $u7pos = ControlGetPos($nazivbota, "", $u7)
        $u77pos = ControlGetPos($nazivbota, "", $u77)
        $u8pos = ControlGetPos($nazivbota, "", $u8)
        $u88pos = ControlGetPos($nazivbota, "", $u88)
        $addonsgrouppos = ControlGetPos($nazivbota, "", $addonsgroup)
        $addons_labelpos = ControlGetPos($nazivbota, "", $addons_label)
        $minimizeaddonspos = ControlGetPos($nazivbota, "", $minimizeaddons)
        $APartypos = ControlGetPos($nazivbota, "", $AParty)
        $aplabelpos = ControlGetPos($nazivbota, "", $aplabel)
        $APartyCombopos = ControlGetPos($nazivbota, "", $APartyCombo)
        $DLhorsepos = ControlGetPos($nazivbota, "", $DLhorse)
        $horselabelpos = ControlGetPos($nazivbota, "", $horselabel)
        $RDLhorse2pos = ControlGetPos($nazivbota, "", $RDLhorse2)
        $horseupdownpos = ControlGetPos($nazivbota, "", $horseupdown)
        $InfArrowCheckboxpos = ControlGetPos($nazivbota, "", $InfArrowCheckbox)
        $IASlabelpos = ControlGetPos($nazivbota, "", $IASlabel)
        $manarechargepos = ControlGetPos($nazivbota, "", $manarecharge)
        $IASupdownpos = ControlGetPos($nazivbota, "", $IASupdown)
        $AutoRepairpos = ControlGetPos($nazivbota, "", $AutoRepair)
        $repairlabelpos = ControlGetPos($nazivbota, "", $repairlabel)
        $AutoRepairInputpos = ControlGetPos($nazivbota, "", $AutoRepairInput)
        $repairupdownpos = ControlGetPos($nazivbota, "", $repairupdown)
        $StartTimerpos = ControlGetPos($nazivbota, "", $StartTimer)
        $startmubuttonpos = ControlGetPos($nazivbota, "", $startmubutton)
        $japos = ControlGetPos($nazivbota, "", $ja)
        ;----- window ----------------------------------
        $SNDpos = WinGetPos($nazivbota)
        winmove($nazivbota, "", $SNDpos[0], $SNDpos[1], $SNDpos[2], $SNDpos[3]+100)
        ;-----------------------------------------------
        GUICtrlSetState($AParty, $GUI_SHOW)
        GUICtrlSetState($aplabel, $GUI_SHOW)
        GUICtrlSetState($APartyCombo, $GUI_SHOW)
        GUICtrlSetState($DLhorse, $GUI_SHOW)
        GUICtrlSetState($horselabel, $GUI_SHOW)
        GUICtrlSetState($RDLhorse2, $GUI_SHOW)
        GUICtrlSetState($horseupdown, $GUI_SHOW)
        GUICtrlSetState($InfArrowCheckbox, $GUI_SHOW)
        GUICtrlSetState($IASlabel, $GUI_SHOW)
        GUICtrlSetState($manarecharge, $GUI_SHOW)
        GUICtrlSetState($IASupdown, $GUI_SHOW)
        GUICtrlSetState($AutoRepair, $GUI_SHOW)
        GUICtrlSetState($repairlabel, $GUI_SHOW)
        GUICtrlSetState($AutoRepairInput, $GUI_SHOW)
        GUICtrlSetState($repairupdown, $GUI_SHOW)
        GUICtrlSetState($StartTimer, $GUI_SHOW)
        ControlMove($nazivbota, "", $macroesgroup, $macroesgrouppos[0], $macroesgrouppos[1], $macroesgrouppos[2], $macroesgrouppos[3])
        ControlMove($nazivbota, "", $GrupaMacroi, $GrupaMacroipos[0], $GrupaMacroipos[1], $GrupaMacroipos[2], $GrupaMacroipos[3])
        ControlMove($nazivbota, "", $minimizemacroes, $minimizemacroespos[0], $minimizemacroespos[1], $minimizemacroespos[2], $minimizemacroespos[3])
        ControlMove($nazivbota, "", $macro7, $macro7pos[0], $macro7pos[1], $macro7pos[2], $macro7pos[3])
        ControlMove($nazivbota, "", $macro77, $macro77pos[0], $macro77pos[1], $macro77pos[2], $macro77pos[3])
        ControlMove($nazivbota, "", $macro8, $macro8pos[0], $macro8pos[1], $macro8pos[2], $macro8pos[3])
        ControlMove($nazivbota, "", $macro88, $macro88pos[0], $macro88pos[1], $macro88pos[2], $macro88pos[3])
        ControlMove($nazivbota, "", $macro9, $macro9pos[0], $macro9pos[1], $macro9pos[2], $macro9pos[3])
        ControlMove($nazivbota, "", $macro99, $macro99pos[0], $macro99pos[1], $macro99pos[2], $macro99pos[3])
        ControlMove($nazivbota, "", $startmacro1, $startmacro1pos[0], $startmacro1pos[1], $startmacro1pos[2], $startmacro1pos[3])
        ControlMove($nazivbota, "", $jewelB, $jewelBpos[0], $jewelBpos[1], $jewelBpos[2], $jewelBpos[3])
        ControlMove($nazivbota, "", $JewelI, $JewelIpos[0], $JewelIpos[1], $JewelIpos[2], $JewelIpos[3])
        ControlMove($nazivbota, "", $instructionsgroup, $instructionsgrouppos[0], $instructionsgrouppos[1], $instructionsgrouppos[2], $instructionsgrouppos[3])
        ControlMove($nazivbota, "", $GrupaUputstvo, $GrupaUputstvopos[0], $GrupaUputstvopos[1], $GrupaUputstvopos[2], $GrupaUputstvopos[3])
        ControlMove($nazivbota, "", $minimizeinstructions, $minimizeinstructionspos[0], $minimizeinstructionspos[1], $minimizeinstructionspos[2], $minimizeinstructionspos[3])
        ControlMove($nazivbota, "", $u1, $u1pos[0], $u1pos[1], $u1pos[2], $u1pos[3])
        ControlMove($nazivbota, "", $u11, $u11pos[0], $u11pos[1], $u11pos[2], $u11pos[3])
        ControlMove($nazivbota, "", $u2, $u2pos[0], $u2pos[1], $u2pos[2], $u2pos[3])
        ControlMove($nazivbota, "", $u22, $u22pos[0], $u22pos[1], $u22pos[2], $u22pos[3])
        ControlMove($nazivbota, "", $u2a, $u2apos[0], $u2apos[1], $u2apos[2], $u2apos[3])
        ControlMove($nazivbota, "", $u22a, $u22apos[0], $u22apos[1], $u22apos[2], $u22apos[3])
        ControlMove($nazivbota, "", $u3, $u3pos[0], $u3pos[1], $u3pos[2], $u3pos[3])
        ControlMove($nazivbota, "", $u33, $u33pos[0], $u33pos[1], $u33pos[2], $u33pos[3])
        ControlMove($nazivbota, "", $u4, $u4pos[0], $u4pos[1], $u4pos[2], $u4pos[3])
        ControlMove($nazivbota, "", $u44, $u44pos[0], $u44pos[1], $u44pos[2], $u44pos[3])
        ControlMove($nazivbota, "", $u5, $u5pos[0], $u5pos[1], $u5pos[2], $u5pos[3])
        ControlMove($nazivbota, "", $u55, $u55pos[0], $u55pos[1], $u55pos[2], $u55pos[3])
        ControlMove($nazivbota, "", $u6, $u6pos[0], $u6pos[1], $u6pos[2], $u6pos[3])
        ControlMove($nazivbota, "", $u66, $u66pos[0], $u66pos[1], $u66pos[2], $u66pos[3])
        ControlMove($nazivbota, "", $u7, $u7pos[0], $u7pos[1], $u7pos[2], $u7pos[3])
        ControlMove($nazivbota, "", $u77, $u77pos[0], $u77pos[1], $u77pos[2], $u77pos[3])
        ControlMove($nazivbota, "", $u8, $u8pos[0], $u8pos[1], $u8pos[2], $u8pos[3])
        ControlMove($nazivbota, "", $u88, $u88pos[0], $u88pos[1], $u88pos[2], $u88pos[3])
        ControlMove($nazivbota, "", $addonsgroup, $addonsgrouppos[0], $addonsgrouppos[1], $addonsgrouppos[2], $addonsgrouppos[3]+100)
        ControlMove($nazivbota, "", $addons_label, $addons_labelpos[0], $addons_labelpos[1], $addons_labelpos[2], $addons_labelpos[3])
        ControlMove($nazivbota, "", $minimizeaddons, $minimizeaddonspos[0], $minimizeaddonspos[1], $minimizeaddonspos[2], $minimizeaddonspos[3])
        ControlMove($nazivbota, "", $AParty, $APartypos[0], $APartypos[1], $APartypos[2], $APartypos[3])
        ControlMove($nazivbota, "", $aplabel, $aplabelpos[0], $aplabelpos[1], $aplabelpos[2], $aplabelpos[3])
        ControlMove($nazivbota, "", $APartyCombo, $APartyCombopos[0], $APartyCombopos[1], $APartyCombopos[2], $APartyCombopos[3])
        ControlMove($nazivbota, "", $DLhorse, $DLhorsepos[0], $DLhorsepos[1], $DLhorsepos[2], $DLhorsepos[3])
        ControlMove($nazivbota, "", $horselabel, $horselabelpos[0], $horselabelpos[1], $horselabelpos[2], $horselabelpos[3])
        ControlMove($nazivbota, "", $RDLhorse2, $RDLhorse2pos[0], $RDLhorse2pos[1], $RDLhorse2pos[2], $RDLhorse2pos[3])
        ControlMove($nazivbota, "", $horseupdown, $horseupdownpos[0], $horseupdownpos[1], $horseupdownpos[2], $horseupdownpos[3])
        ControlMove($nazivbota, "", $InfArrowCheckbox, $InfArrowCheckboxpos[0], $InfArrowCheckboxpos[1], $InfArrowCheckboxpos[2], $InfArrowCheckboxpos[3])
        ControlMove($nazivbota, "", $IASlabel, $IASlabelpos[0], $IASlabelpos[1], $IASlabelpos[2], $IASlabelpos[3])
        ControlMove($nazivbota, "", $manarecharge, $manarechargepos[0], $manarechargepos[1], $manarechargepos[2], $manarechargepos[3])
        ControlMove($nazivbota, "", $IASupdown, $IASupdownpos[0], $IASupdownpos[1], $IASupdownpos[2], $IASupdownpos[3])
        ControlMove($nazivbota, "", $AutoRepair, $AutoRepairpos[0], $AutoRepairpos[1], $AutoRepairpos[2], $AutoRepairpos[3])
        ControlMove($nazivbota, "", $repairlabel, $repairlabelpos[0], $repairlabelpos[1], $repairlabelpos[2], $repairlabelpos[3])
        ControlMove($nazivbota, "", $AutoRepairInput, $AutoRepairInputpos[0], $AutoRepairInputpos[1], $AutoRepairInputpos[2], $AutoRepairInputpos[3])
        ControlMove($nazivbota, "", $repairupdown, $repairupdownpos[0], $repairupdownpos[1], $repairupdownpos[2], $repairupdownpos[3])
        ControlMove($nazivbota, "", $StartTimer, $StartTimerpos[0], $StartTimerpos[1], $StartTimerpos[2], $StartTimerpos[3])
        ControlMove($nazivbota, "", $startmubutton, $startmubuttonpos[0], $startmubuttonpos[1]+100, $startmubuttonpos[2], $startmubuttonpos[3])
        ControlMove($nazivbota, "", $ja, $japos[0], $japos[1]+100, $japos[2], $japos[3])
        $addonsi = 0
    EndIf
Return
EndFunc

func minimizeinstructions()
    if $instructionsi = 0 Then
        GUICtrlSetData($minimizeinstructions, "+")
        $macroesgrouppos = ControlGetPos($nazivbota, "", $macroesgroup)
        $GrupaMacroipos = ControlGetPos($nazivbota, "", $GrupaMacroi)
        $minimizemacroespos = ControlGetPos($nazivbota, "", $minimizemacroes)
        $macro7pos = ControlGetPos($nazivbota, "", $macro7)
        $macro77pos = ControlGetPos($nazivbota, "", $macro77)
        $macro8pos = ControlGetPos($nazivbota, "", $macro8)
        $macro88pos = ControlGetPos($nazivbota, "", $macro88)
        $macro9pos = ControlGetPos($nazivbota, "", $macro9)
        $macro99pos = ControlGetPos($nazivbota, "", $macro99)
        $startmacro1pos = ControlGetPos($nazivbota, "", $startmacro1)
        $jewelBpos = ControlGetPos($nazivbota, "", $jewelB)
        $JewelIpos = ControlGetPos($nazivbota, "", $JewelI)
        $instructionsgrouppos = ControlGetPos($nazivbota, "", $instructionsgroup)
        $GrupaUputstvopos = ControlGetPos($nazivbota, "", $GrupaUputstvo)
        $minimizeinstructionspos = ControlGetPos($nazivbota, "", $minimizeinstructions)
        $u1pos = ControlGetPos($nazivbota, "", $u1)
        $u11pos = ControlGetPos($nazivbota, "", $u11)
        $u2pos = ControlGetPos($nazivbota, "", $u2)
        $u22pos = ControlGetPos($nazivbota, "", $u22)
        $u2apos = ControlGetPos($nazivbota, "", $u2a)
        $u22apos = ControlGetPos($nazivbota, "", $u22a)
        $u3pos = ControlGetPos($nazivbota, "", $u3)
        $u33pos = ControlGetPos($nazivbota, "", $u33)
        $u4pos = ControlGetPos($nazivbota, "", $u4)
        $u44pos = ControlGetPos($nazivbota, "", $u44)
        $u5pos = ControlGetPos($nazivbota, "", $u5)
        $u55pos = ControlGetPos($nazivbota, "", $u55)
        $u6pos = ControlGetPos($nazivbota, "", $u6)
        $u66pos = ControlGetPos($nazivbota, "", $u66)
        $u7pos = ControlGetPos($nazivbota, "", $u7)
        $u77pos = ControlGetPos($nazivbota, "", $u77)
        $u8pos = ControlGetPos($nazivbota, "", $u8)
        $u88pos = ControlGetPos($nazivbota, "", $u88)
        $addonsgrouppos = ControlGetPos($nazivbota, "", $addonsgroup)
        $addons_labelpos = ControlGetPos($nazivbota, "", $addons_label)
        $minimizeaddonspos = ControlGetPos($nazivbota, "", $minimizeaddons)
        $APartypos = ControlGetPos($nazivbota, "", $AParty)
        $aplabelpos = ControlGetPos($nazivbota, "", $aplabel)
        $APartyCombopos = ControlGetPos($nazivbota, "", $APartyCombo)
        $DLhorsepos = ControlGetPos($nazivbota, "", $DLhorse)
        $horselabelpos = ControlGetPos($nazivbota, "", $horselabel)
        $RDLhorse2pos = ControlGetPos($nazivbota, "", $RDLhorse2)
        $horseupdownpos = ControlGetPos($nazivbota, "", $horseupdown)
        $InfArrowCheckboxpos = ControlGetPos($nazivbota, "", $InfArrowCheckbox)
        $IASlabelpos = ControlGetPos($nazivbota, "", $IASlabel)
        $manarechargepos = ControlGetPos($nazivbota, "", $manarecharge)
        $IASupdownpos = ControlGetPos($nazivbota, "", $IASupdown)
        $AutoRepairpos = ControlGetPos($nazivbota, "", $AutoRepair)
        $repairlabelpos = ControlGetPos($nazivbota, "", $repairlabel)
        $AutoRepairInputpos = ControlGetPos($nazivbota, "", $AutoRepairInput)
        $repairupdownpos = ControlGetPos($nazivbota, "", $repairupdown)
        $StartTimerpos = ControlGetPos($nazivbota, "", $StartTimer)
        $startmubuttonpos = ControlGetPos($nazivbota, "", $startmubutton)
        $japos = ControlGetPos($nazivbota, "", $ja)
        ;----- window ----------------------------------
        $SNDpos = WinGetPos($nazivbota)
        winmove($nazivbota, "", $SNDpos[0], $SNDpos[1], $SNDpos[2], $SNDpos[3]-145)
        ;-----------------------------------------------
        GUICtrlSetState($u1, $GUI_HIDE)
        GUICtrlSetState($u11, $GUI_HIDE)
        GUICtrlSetState($u2, $GUI_HIDE)
        GUICtrlSetState($u22, $GUI_HIDE)
        GUICtrlSetState($u2a, $GUI_HIDE)
        GUICtrlSetState($u22a, $GUI_HIDE)
        GUICtrlSetState($u3, $GUI_HIDE)
        GUICtrlSetState($u33, $GUI_HIDE)
        GUICtrlSetState($u4, $GUI_HIDE)
        GUICtrlSetState($u44, $GUI_HIDE)
        GUICtrlSetState($u5, $GUI_HIDE)
        GUICtrlSetState($u55, $GUI_HIDE)
        GUICtrlSetState($u6, $GUI_HIDE)
        GUICtrlSetState($u66, $GUI_HIDE)
        GUICtrlSetState($u7, $GUI_HIDE)
        GUICtrlSetState($u77, $GUI_HIDE)
        GUICtrlSetState($u8, $GUI_HIDE)
        GUICtrlSetState($u88, $GUI_HIDE)
        ControlMove($nazivbota, "", $macroesgroup, $macroesgrouppos[0], $macroesgrouppos[1], $macroesgrouppos[2], $macroesgrouppos[3])
        ControlMove($nazivbota, "", $GrupaMacroi, $GrupaMacroipos[0], $GrupaMacroipos[1], $GrupaMacroipos[2], $GrupaMacroipos[3])
        ControlMove($nazivbota, "", $minimizemacroes, $minimizemacroespos[0], $minimizemacroespos[1], $minimizemacroespos[2], $minimizemacroespos[3])
        ControlMove($nazivbota, "", $macro7, $macro7pos[0], $macro7pos[1], $macro7pos[2], $macro7pos[3])
        ControlMove($nazivbota, "", $macro77, $macro77pos[0], $macro77pos[1], $macro77pos[2], $macro77pos[3])
        ControlMove($nazivbota, "", $macro8, $macro8pos[0], $macro8pos[1], $macro8pos[2], $macro8pos[3])
        ControlMove($nazivbota, "", $macro88, $macro88pos[0], $macro88pos[1], $macro88pos[2], $macro88pos[3])
        ControlMove($nazivbota, "", $macro9, $macro9pos[0], $macro9pos[1], $macro9pos[2], $macro9pos[3])
        ControlMove($nazivbota, "", $macro99, $macro99pos[0], $macro99pos[1], $macro99pos[2], $macro99pos[3])
        ControlMove($nazivbota, "", $startmacro1, $startmacro1pos[0], $startmacro1pos[1], $startmacro1pos[2], $startmacro1pos[3])
        ControlMove($nazivbota, "", $jewelB, $jewelBpos[0], $jewelBpos[1], $jewelBpos[2], $jewelBpos[3])
        ControlMove($nazivbota, "", $JewelI, $JewelIpos[0], $JewelIpos[1], $JewelIpos[2], $JewelIpos[3])
        ControlMove($nazivbota, "", $instructionsgroup, $instructionsgrouppos[0], $instructionsgrouppos[1], $instructionsgrouppos[2], $instructionsgrouppos[3]-145)
        ControlMove($nazivbota, "", $GrupaUputstvo, $GrupaUputstvopos[0], $GrupaUputstvopos[1], $GrupaUputstvopos[2], $GrupaUputstvopos[3])
        ControlMove($nazivbota, "", $minimizeinstructions, $minimizeinstructionspos[0], $minimizeinstructionspos[1], $minimizeinstructionspos[2], $minimizeinstructionspos[3])
        ControlMove($nazivbota, "", $u1, $u1pos[0], $u1pos[1], $u1pos[2], $u1pos[3])
        ControlMove($nazivbota, "", $u11, $u11pos[0], $u11pos[1], $u11pos[2], $u11pos[3])
        ControlMove($nazivbota, "", $u2, $u2pos[0], $u2pos[1], $u2pos[2], $u2pos[3])
        ControlMove($nazivbota, "", $u22, $u22pos[0], $u22pos[1], $u22pos[2], $u22pos[3])
        ControlMove($nazivbota, "", $u2a, $u2apos[0], $u2apos[1], $u2apos[2], $u2apos[3])
        ControlMove($nazivbota, "", $u22a, $u22apos[0], $u22apos[1], $u22apos[2], $u22apos[3])
        ControlMove($nazivbota, "", $u3, $u3pos[0], $u3pos[1], $u3pos[2], $u3pos[3])
        ControlMove($nazivbota, "", $u33, $u33pos[0], $u33pos[1], $u33pos[2], $u33pos[3])
        ControlMove($nazivbota, "", $u4, $u4pos[0], $u4pos[1], $u4pos[2], $u4pos[3])
        ControlMove($nazivbota, "", $u44, $u44pos[0], $u44pos[1], $u44pos[2], $u44pos[3])
        ControlMove($nazivbota, "", $u5, $u5pos[0], $u5pos[1], $u5pos[2], $u5pos[3])
        ControlMove($nazivbota, "", $u55, $u55pos[0], $u55pos[1], $u55pos[2], $u55pos[3])
        ControlMove($nazivbota, "", $u6, $u6pos[0], $u6pos[1], $u6pos[2], $u6pos[3])
        ControlMove($nazivbota, "", $u66, $u66pos[0], $u66pos[1], $u66pos[2], $u66pos[3])
        ControlMove($nazivbota, "", $u7, $u7pos[0], $u7pos[1], $u7pos[2], $u7pos[3])
        ControlMove($nazivbota, "", $u77, $u77pos[0], $u77pos[1], $u77pos[2], $u77pos[3])
        ControlMove($nazivbota, "", $u8, $u8pos[0], $u8pos[1], $u8pos[2], $u8pos[3])
        ControlMove($nazivbota, "", $u88, $u88pos[0], $u88pos[1], $u88pos[2], $u88pos[3])
        ControlMove($nazivbota, "", $addonsgroup, $addonsgrouppos[0], $addonsgrouppos[1]-145, $addonsgrouppos[2], $addonsgrouppos[3])
        ControlMove($nazivbota, "", $addons_label, $addons_labelpos[0], $addons_labelpos[1]-145, $addons_labelpos[2], $addons_labelpos[3])
        ControlMove($nazivbota, "", $minimizeaddons, $minimizeaddonspos[0], $minimizeaddonspos[1]-145, $minimizeaddonspos[2], $minimizeaddonspos[3])
        ControlMove($nazivbota, "", $AParty, $APartypos[0], $APartypos[1]-145, $APartypos[2], $APartypos[3])
        ControlMove($nazivbota, "", $aplabel, $aplabelpos[0], $aplabelpos[1]-145, $aplabelpos[2], $aplabelpos[3])
        ControlMove($nazivbota, "", $APartyCombo, $APartyCombopos[0], $APartyCombopos[1]-145, $APartyCombopos[2], $APartyCombopos[3])
        ControlMove($nazivbota, "", $DLhorse, $DLhorsepos[0], $DLhorsepos[1]-145, $DLhorsepos[2], $DLhorsepos[3])
        ControlMove($nazivbota, "", $horselabel, $horselabelpos[0], $horselabelpos[1]-145, $horselabelpos[2], $horselabelpos[3])
        ControlMove($nazivbota, "", $RDLhorse2, $RDLhorse2pos[0], $RDLhorse2pos[1]-145, $RDLhorse2pos[2], $RDLhorse2pos[3])
        ControlMove($nazivbota, "", $horseupdown, $horseupdownpos[0], $horseupdownpos[1]-145, $horseupdownpos[2], $horseupdownpos[3])
        ControlMove($nazivbota, "", $InfArrowCheckbox, $InfArrowCheckboxpos[0], $InfArrowCheckboxpos[1]-145, $InfArrowCheckboxpos[2], $InfArrowCheckboxpos[3])
        ControlMove($nazivbota, "", $IASlabel, $IASlabelpos[0], $IASlabelpos[1]-145, $IASlabelpos[2], $IASlabelpos[3])
        ControlMove($nazivbota, "", $manarecharge, $manarechargepos[0], $manarechargepos[1]-145, $manarechargepos[2], $manarechargepos[3])
        ControlMove($nazivbota, "", $IASupdown, $IASupdownpos[0], $IASupdownpos[1]-145, $IASupdownpos[2], $IASupdownpos[3])
        ControlMove($nazivbota, "", $AutoRepair, $AutoRepairpos[0], $AutoRepairpos[1]-145, $AutoRepairpos[2], $AutoRepairpos[3])
        ControlMove($nazivbota, "", $repairlabel, $repairlabelpos[0], $repairlabelpos[1]-145, $repairlabelpos[2], $repairlabelpos[3])
        ControlMove($nazivbota, "", $AutoRepairInput, $AutoRepairInputpos[0], $AutoRepairInputpos[1]-145, $AutoRepairInputpos[2], $AutoRepairInputpos[3])
        ControlMove($nazivbota, "", $repairupdown, $repairupdownpos[0], $repairupdownpos[1]-145, $repairupdownpos[2], $repairupdownpos[3])
        ControlMove($nazivbota, "", $StartTimer, $StartTimerpos[0], $StartTimerpos[1]-145, $StartTimerpos[2], $StartTimerpos[3])
        ControlMove($nazivbota, "", $startmubutton, $startmubuttonpos[0], $startmubuttonpos[1]-145, $startmubuttonpos[2], $startmubuttonpos[3])
        ControlMove($nazivbota, "", $ja, $japos[0], $japos[1]-145, $japos[2], $japos[3])
        $instructionsi = 1
    Else
        GUICtrlSetData($minimizeinstructions, "-")
        $macroesgrouppos = ControlGetPos($nazivbota, "", $macroesgroup)
        $GrupaMacroipos = ControlGetPos($nazivbota, "", $GrupaMacroi)
        $minimizemacroespos = ControlGetPos($nazivbota, "", $minimizemacroes)
        $macro7pos = ControlGetPos($nazivbota, "", $macro7)
        $macro77pos = ControlGetPos($nazivbota, "", $macro77)
        $macro8pos = ControlGetPos($nazivbota, "", $macro8)
        $macro88pos = ControlGetPos($nazivbota, "", $macro88)
        $macro9pos = ControlGetPos($nazivbota, "", $macro9)
        $macro99pos = ControlGetPos($nazivbota, "", $macro99)
        $startmacro1pos = ControlGetPos($nazivbota, "", $startmacro1)
        $jewelBpos = ControlGetPos($nazivbota, "", $jewelB)
        $JewelIpos = ControlGetPos($nazivbota, "", $JewelI)
        $instructionsgrouppos = ControlGetPos($nazivbota, "", $instructionsgroup)
        $GrupaUputstvopos = ControlGetPos($nazivbota, "", $GrupaUputstvo)
        $minimizeinstructionspos = ControlGetPos($nazivbota, "", $minimizeinstructions)
        $u1pos = ControlGetPos($nazivbota, "", $u1)
        $u11pos = ControlGetPos($nazivbota, "", $u11)
        $u2pos = ControlGetPos($nazivbota, "", $u2)
        $u22pos = ControlGetPos($nazivbota, "", $u22)
        $u2apos = ControlGetPos($nazivbota, "", $u2a)
        $u22apos = ControlGetPos($nazivbota, "", $u22a)
        $u3pos = ControlGetPos($nazivbota, "", $u3)
        $u33pos = ControlGetPos($nazivbota, "", $u33)
        $u4pos = ControlGetPos($nazivbota, "", $u4)
        $u44pos = ControlGetPos($nazivbota, "", $u44)
        $u5pos = ControlGetPos($nazivbota, "", $u5)
        $u55pos = ControlGetPos($nazivbota, "", $u55)
        $u6pos = ControlGetPos($nazivbota, "", $u6)
        $u66pos = ControlGetPos($nazivbota, "", $u66)
        $u7pos = ControlGetPos($nazivbota, "", $u7)
        $u77pos = ControlGetPos($nazivbota, "", $u77)
        $u8pos = ControlGetPos($nazivbota, "", $u8)
        $u88pos = ControlGetPos($nazivbota, "", $u88)
        $addonsgrouppos = ControlGetPos($nazivbota, "", $addonsgroup)
        $addons_labelpos = ControlGetPos($nazivbota, "", $addons_label)
        $minimizeaddonspos = ControlGetPos($nazivbota, "", $minimizeaddons)
        $APartypos = ControlGetPos($nazivbota, "", $AParty)
        $aplabelpos = ControlGetPos($nazivbota, "", $aplabel)
        $APartyCombopos = ControlGetPos($nazivbota, "", $APartyCombo)
        $DLhorsepos = ControlGetPos($nazivbota, "", $DLhorse)
        $horselabelpos = ControlGetPos($nazivbota, "", $horselabel)
        $RDLhorse2pos = ControlGetPos($nazivbota, "", $RDLhorse2)
        $horseupdownpos = ControlGetPos($nazivbota, "", $horseupdown)
        $InfArrowCheckboxpos = ControlGetPos($nazivbota, "", $InfArrowCheckbox)
        $IASlabelpos = ControlGetPos($nazivbota, "", $IASlabel)
        $manarechargepos = ControlGetPos($nazivbota, "", $manarecharge)
        $IASupdownpos = ControlGetPos($nazivbota, "", $IASupdown)
        $AutoRepairpos = ControlGetPos($nazivbota, "", $AutoRepair)
        $repairlabelpos = ControlGetPos($nazivbota, "", $repairlabel)
        $AutoRepairInputpos = ControlGetPos($nazivbota, "", $AutoRepairInput)
        $repairupdownpos = ControlGetPos($nazivbota, "", $repairupdown)
        $StartTimerpos = ControlGetPos($nazivbota, "", $StartTimer)
        $startmubuttonpos = ControlGetPos($nazivbota, "", $startmubutton)
        $japos = ControlGetPos($nazivbota, "", $ja)
        ;----- window ----------------------------------
        $SNDpos = WinGetPos($nazivbota)
        winmove($nazivbota, "", $SNDpos[0], $SNDpos[1], $SNDpos[2], $SNDpos[3]+145)
        ;-----------------------------------------------
        GUICtrlSetState($u1, $GUI_SHOW)
        GUICtrlSetState($u11, $GUI_SHOW)
        GUICtrlSetState($u2, $GUI_SHOW)
        GUICtrlSetState($u22, $GUI_SHOW)
        GUICtrlSetState($u2a, $GUI_SHOW)
        GUICtrlSetState($u22a, $GUI_SHOW)
        GUICtrlSetState($u3, $GUI_SHOW)
        GUICtrlSetState($u33, $GUI_SHOW)
        GUICtrlSetState($u4, $GUI_SHOW)
        GUICtrlSetState($u44, $GUI_SHOW)
        GUICtrlSetState($u5, $GUI_SHOW)
        GUICtrlSetState($u55, $GUI_SHOW)
        GUICtrlSetState($u6, $GUI_SHOW)
        GUICtrlSetState($u66, $GUI_SHOW)
        GUICtrlSetState($u7, $GUI_SHOW)
        GUICtrlSetState($u77, $GUI_SHOW)
        GUICtrlSetState($u8, $GUI_SHOW)
        GUICtrlSetState($u88, $GUI_SHOW)
        ControlMove($nazivbota, "", $macroesgroup, $macroesgrouppos[0], $macroesgrouppos[1], $macroesgrouppos[2], $macroesgrouppos[3])
        ControlMove($nazivbota, "", $GrupaMacroi, $GrupaMacroipos[0], $GrupaMacroipos[1], $GrupaMacroipos[2], $GrupaMacroipos[3])
        ControlMove($nazivbota, "", $minimizemacroes, $minimizemacroespos[0], $minimizemacroespos[1], $minimizemacroespos[2], $minimizemacroespos[3])
        ControlMove($nazivbota, "", $macro7, $macro7pos[0], $macro7pos[1], $macro7pos[2], $macro7pos[3])
        ControlMove($nazivbota, "", $macro77, $macro77pos[0], $macro77pos[1], $macro77pos[2], $macro77pos[3])
        ControlMove($nazivbota, "", $macro8, $macro8pos[0], $macro8pos[1], $macro8pos[2], $macro8pos[3])
        ControlMove($nazivbota, "", $macro88, $macro88pos[0], $macro88pos[1], $macro88pos[2], $macro88pos[3])
        ControlMove($nazivbota, "", $macro9, $macro9pos[0], $macro9pos[1], $macro9pos[2], $macro9pos[3])
        ControlMove($nazivbota, "", $macro99, $macro99pos[0], $macro99pos[1], $macro99pos[2], $macro99pos[3])
        ControlMove($nazivbota, "", $startmacro1, $startmacro1pos[0], $startmacro1pos[1], $startmacro1pos[2], $startmacro1pos[3])
        ControlMove($nazivbota, "", $jewelB, $jewelBpos[0], $jewelBpos[1], $jewelBpos[2], $jewelBpos[3])
        ControlMove($nazivbota, "", $JewelI, $JewelIpos[0], $JewelIpos[1], $JewelIpos[2], $JewelIpos[3])
        ControlMove($nazivbota, "", $instructionsgroup, $instructionsgrouppos[0], $instructionsgrouppos[1], $instructionsgrouppos[2], $instructionsgrouppos[3]+145)
        ControlMove($nazivbota, "", $GrupaUputstvo, $GrupaUputstvopos[0], $GrupaUputstvopos[1], $GrupaUputstvopos[2], $GrupaUputstvopos[3])
        ControlMove($nazivbota, "", $minimizeinstructions, $minimizeinstructionspos[0], $minimizeinstructionspos[1], $minimizeinstructionspos[2], $minimizeinstructionspos[3])
        ControlMove($nazivbota, "", $u1, $u1pos[0], $u1pos[1], $u1pos[2], $u1pos[3])
        ControlMove($nazivbota, "", $u11, $u11pos[0], $u11pos[1], $u11pos[2], $u11pos[3])
        ControlMove($nazivbota, "", $u2, $u2pos[0], $u2pos[1], $u2pos[2], $u2pos[3])
        ControlMove($nazivbota, "", $u22, $u22pos[0], $u22pos[1], $u22pos[2], $u22pos[3])
        ControlMove($nazivbota, "", $u2a, $u2apos[0], $u2apos[1], $u2apos[2], $u2apos[3])
        ControlMove($nazivbota, "", $u22a, $u22apos[0], $u22apos[1], $u22apos[2], $u22apos[3])
        ControlMove($nazivbota, "", $u3, $u3pos[0], $u3pos[1], $u3pos[2], $u3pos[3])
        ControlMove($nazivbota, "", $u33, $u33pos[0], $u33pos[1], $u33pos[2], $u33pos[3])
        ControlMove($nazivbota, "", $u4, $u4pos[0], $u4pos[1], $u4pos[2], $u4pos[3])
        ControlMove($nazivbota, "", $u44, $u44pos[0], $u44pos[1], $u44pos[2], $u44pos[3])
        ControlMove($nazivbota, "", $u5, $u5pos[0], $u5pos[1], $u5pos[2], $u5pos[3])
        ControlMove($nazivbota, "", $u55, $u55pos[0], $u55pos[1], $u55pos[2], $u55pos[3])
        ControlMove($nazivbota, "", $u6, $u6pos[0], $u6pos[1], $u6pos[2], $u6pos[3])
        ControlMove($nazivbota, "", $u66, $u66pos[0], $u66pos[1], $u66pos[2], $u66pos[3])
        ControlMove($nazivbota, "", $u7, $u7pos[0], $u7pos[1], $u7pos[2], $u7pos[3])
        ControlMove($nazivbota, "", $u77, $u77pos[0], $u77pos[1], $u77pos[2], $u77pos[3])
        ControlMove($nazivbota, "", $u8, $u8pos[0], $u8pos[1], $u8pos[2], $u8pos[3])
        ControlMove($nazivbota, "", $u88, $u88pos[0], $u88pos[1], $u88pos[2], $u88pos[3])
        ControlMove($nazivbota, "", $addonsgroup, $addonsgrouppos[0], $addonsgrouppos[1]+145, $addonsgrouppos[2], $addonsgrouppos[3])
        ControlMove($nazivbota, "", $addons_label, $addons_labelpos[0], $addons_labelpos[1]+145, $addons_labelpos[2], $addons_labelpos[3])
        ControlMove($nazivbota, "", $minimizeaddons, $minimizeaddonspos[0], $minimizeaddonspos[1]+145, $minimizeaddonspos[2], $minimizeaddonspos[3])
        ControlMove($nazivbota, "", $AParty, $APartypos[0], $APartypos[1]+145, $APartypos[2], $APartypos[3])
        ControlMove($nazivbota, "", $aplabel, $aplabelpos[0], $aplabelpos[1]+145, $aplabelpos[2], $aplabelpos[3])
        ControlMove($nazivbota, "", $APartyCombo, $APartyCombopos[0], $APartyCombopos[1]+145, $APartyCombopos[2], $APartyCombopos[3])
        ControlMove($nazivbota, "", $DLhorse, $DLhorsepos[0], $DLhorsepos[1]+145, $DLhorsepos[2], $DLhorsepos[3])
        ControlMove($nazivbota, "", $horselabel, $horselabelpos[0], $horselabelpos[1]+145, $horselabelpos[2], $horselabelpos[3])
        ControlMove($nazivbota, "", $RDLhorse2, $RDLhorse2pos[0], $RDLhorse2pos[1]+145, $RDLhorse2pos[2], $RDLhorse2pos[3])
        ControlMove($nazivbota, "", $horseupdown, $horseupdownpos[0], $horseupdownpos[1]+145, $horseupdownpos[2], $horseupdownpos[3])
        ControlMove($nazivbota, "", $InfArrowCheckbox, $InfArrowCheckboxpos[0], $InfArrowCheckboxpos[1]+145, $InfArrowCheckboxpos[2], $InfArrowCheckboxpos[3])
        ControlMove($nazivbota, "", $IASlabel, $IASlabelpos[0], $IASlabelpos[1]+145, $IASlabelpos[2], $IASlabelpos[3])
        ControlMove($nazivbota, "", $manarecharge, $manarechargepos[0], $manarechargepos[1]+145, $manarechargepos[2], $manarechargepos[3])
        ControlMove($nazivbota, "", $IASupdown, $IASupdownpos[0], $IASupdownpos[1]+145, $IASupdownpos[2], $IASupdownpos[3])
        ControlMove($nazivbota, "", $AutoRepair, $AutoRepairpos[0], $AutoRepairpos[1]+145, $AutoRepairpos[2], $AutoRepairpos[3])
        ControlMove($nazivbota, "", $repairlabel, $repairlabelpos[0], $repairlabelpos[1]+145, $repairlabelpos[2], $repairlabelpos[3])
        ControlMove($nazivbota, "", $AutoRepairInput, $AutoRepairInputpos[0], $AutoRepairInputpos[1]+145, $AutoRepairInputpos[2], $AutoRepairInputpos[3])
        ControlMove($nazivbota, "", $repairupdown, $repairupdownpos[0], $repairupdownpos[1]+145, $repairupdownpos[2], $repairupdownpos[3])
        ControlMove($nazivbota, "", $StartTimer, $StartTimerpos[0], $StartTimerpos[1]+145, $StartTimerpos[2], $StartTimerpos[3])
        ControlMove($nazivbota, "", $startmubutton, $startmubuttonpos[0], $startmubuttonpos[1]+145, $startmubuttonpos[2], $startmubuttonpos[3])
        ControlMove($nazivbota, "", $ja, $japos[0], $japos[1]+145, $japos[2], $japos[3])
        $instructionsi = 0
    EndIf
Return
EndFunc

func minimizemacroes ()
    if $macroesi = 0 Then
        GUICtrlSetData($minimizemacroes, "+")
        $macroesgrouppos = ControlGetPos($nazivbota, "", $macroesgroup)
        $GrupaMacroipos = ControlGetPos($nazivbota, "", $GrupaMacroi)
        $minimizemacroespos = ControlGetPos($nazivbota, "", $minimizemacroes)
        $macro7pos = ControlGetPos($nazivbota, "", $macro7)
        $macro77pos = ControlGetPos($nazivbota, "", $macro77)
        $macro8pos = ControlGetPos($nazivbota, "", $macro8)
        $macro88pos = ControlGetPos($nazivbota, "", $macro88)
        $macro9pos = ControlGetPos($nazivbota, "", $macro9)
        $macro99pos = ControlGetPos($nazivbota, "", $macro99)
        $startmacro1pos = ControlGetPos($nazivbota, "", $startmacro1)
        $jewelBpos = ControlGetPos($nazivbota, "", $jewelB)
        $JewelIpos = ControlGetPos($nazivbota, "", $JewelI)
        $instructionsgrouppos = ControlGetPos($nazivbota, "", $instructionsgroup)
        $GrupaUputstvopos = ControlGetPos($nazivbota, "", $GrupaUputstvo)
        $minimizeinstructionspos = ControlGetPos($nazivbota, "", $minimizeinstructions)
        $u1pos = ControlGetPos($nazivbota, "", $u1)
        $u11pos = ControlGetPos($nazivbota, "", $u11)
        $u2pos = ControlGetPos($nazivbota, "", $u2)
        $u22pos = ControlGetPos($nazivbota, "", $u22)
        $u2apos = ControlGetPos($nazivbota, "", $u2a)
        $u22apos = ControlGetPos($nazivbota, "", $u22a)
        $u3pos = ControlGetPos($nazivbota, "", $u3)
        $u33pos = ControlGetPos($nazivbota, "", $u33)
        $u4pos = ControlGetPos($nazivbota, "", $u4)
        $u44pos = ControlGetPos($nazivbota, "", $u44)
        $u5pos = ControlGetPos($nazivbota, "", $u5)
        $u55pos = ControlGetPos($nazivbota, "", $u55)
        $u6pos = ControlGetPos($nazivbota, "", $u6)
        $u66pos = ControlGetPos($nazivbota, "", $u66)
        $u7pos = ControlGetPos($nazivbota, "", $u7)
        $u77pos = ControlGetPos($nazivbota, "", $u77)
        $u8pos = ControlGetPos($nazivbota, "", $u8)
        $u88pos = ControlGetPos($nazivbota, "", $u88)
        $addonsgrouppos = ControlGetPos($nazivbota, "", $addonsgroup)
        $addons_labelpos = ControlGetPos($nazivbota, "", $addons_label)
        $minimizeaddonspos = ControlGetPos($nazivbota, "", $minimizeaddons)
        $APartypos = ControlGetPos($nazivbota, "", $AParty)
        $aplabelpos = ControlGetPos($nazivbota, "", $aplabel)
        $APartyCombopos = ControlGetPos($nazivbota, "", $APartyCombo)
        $DLhorsepos = ControlGetPos($nazivbota, "", $DLhorse)
        $horselabelpos = ControlGetPos($nazivbota, "", $horselabel)
        $RDLhorse2pos = ControlGetPos($nazivbota, "", $RDLhorse2)
        $horseupdownpos = ControlGetPos($nazivbota, "", $horseupdown)
        $InfArrowCheckboxpos = ControlGetPos($nazivbota, "", $InfArrowCheckbox)
        $IASlabelpos = ControlGetPos($nazivbota, "", $IASlabel)
        $manarechargepos = ControlGetPos($nazivbota, "", $manarecharge)
        $IASupdownpos = ControlGetPos($nazivbota, "", $IASupdown)
        $AutoRepairpos = ControlGetPos($nazivbota, "", $AutoRepair)
        $repairlabelpos = ControlGetPos($nazivbota, "", $repairlabel)
        $AutoRepairInputpos = ControlGetPos($nazivbota, "", $AutoRepairInput)
        $repairupdownpos = ControlGetPos($nazivbota, "", $repairupdown)
        $StartTimerpos = ControlGetPos($nazivbota, "", $StartTimer)
        $startmubuttonpos = ControlGetPos($nazivbota, "", $startmubutton)
        $japos = ControlGetPos($nazivbota, "", $ja)
        ;----- window ----------------------------------
        $SNDpos = WinGetPos($nazivbota)
        winmove($nazivbota, "", $SNDpos[0], $SNDpos[1], $SNDpos[2], $SNDpos[3]-40)
        ;-----------------------------------------------
        GUICtrlSetState($macro7, $GUI_HIDE)
        GUICtrlSetState($macro77, $GUI_HIDE)
        GUICtrlSetState($macro8, $GUI_HIDE)
        GUICtrlSetState($macro88, $GUI_HIDE)
        GUICtrlSetState($macro9, $GUI_HIDE)
        GUICtrlSetState($macro99, $GUI_HIDE)
        GUICtrlSetState($startmacro1, $GUI_HIDE)
        ControlMove($nazivbota, "", $macroesgroup, $macroesgrouppos[0], $macroesgrouppos[1], $macroesgrouppos[2], $macroesgrouppos[3]-40)
        ControlMove($nazivbota, "", $GrupaMacroi, $GrupaMacroipos[0], $GrupaMacroipos[1], $GrupaMacroipos[2], $GrupaMacroipos[3])
        ControlMove($nazivbota, "", $minimizemacroes, $minimizemacroespos[0], $minimizemacroespos[1], $minimizemacroespos[2], $minimizemacroespos[3])
        ControlMove($nazivbota, "", $macro7, $macro7pos[0], $macro7pos[1], $macro7pos[2], $macro7pos[3])
        ControlMove($nazivbota, "", $macro77, $macro77pos[0], $macro77pos[1], $macro77pos[2], $macro77pos[3])
        ControlMove($nazivbota, "", $macro8, $macro8pos[0], $macro8pos[1], $macro8pos[2], $macro8pos[3])
        ControlMove($nazivbota, "", $macro88, $macro88pos[0], $macro88pos[1], $macro88pos[2], $macro88pos[3])
        ControlMove($nazivbota, "", $macro9, $macro9pos[0], $macro9pos[1], $macro9pos[2], $macro9pos[3])
        ControlMove($nazivbota, "", $macro99, $macro99pos[0], $macro99pos[1], $macro99pos[2], $macro99pos[3])
        ControlMove($nazivbota, "", $startmacro1, $startmacro1pos[0], $startmacro1pos[1], $startmacro1pos[2], $startmacro1pos[3])
        ControlMove($nazivbota, "", $jewelB, $jewelBpos[0], $jewelBpos[1]-40, $jewelBpos[2], $jewelBpos[3])
        ControlMove($nazivbota, "", $JewelI, $JewelIpos[0], $JewelIpos[1]-40, $JewelIpos[2], $JewelIpos[3])
        ControlMove($nazivbota, "", $instructionsgroup, $instructionsgrouppos[0], $instructionsgrouppos[1]-40, $instructionsgrouppos[2], $instructionsgrouppos[3])
        ControlMove($nazivbota, "", $GrupaUputstvo, $GrupaUputstvopos[0], $GrupaUputstvopos[1]-40, $GrupaUputstvopos[2], $GrupaUputstvopos[3])
        ControlMove($nazivbota, "", $minimizeinstructions, $minimizeinstructionspos[0], $minimizeinstructionspos[1]-40, $minimizeinstructionspos[2], $minimizeinstructionspos[3])
        ControlMove($nazivbota, "", $u1, $u1pos[0], $u1pos[1]-40, $u1pos[2], $u1pos[3])
        ControlMove($nazivbota, "", $u11, $u11pos[0], $u11pos[1]-40, $u11pos[2], $u11pos[3])
        ControlMove($nazivbota, "", $u2, $u2pos[0], $u2pos[1]-40, $u2pos[2], $u2pos[3])
        ControlMove($nazivbota, "", $u22, $u22pos[0], $u22pos[1]-40, $u22pos[2], $u22pos[3])
        ControlMove($nazivbota, "", $u2a, $u2apos[0], $u2apos[1]-40, $u2apos[2], $u2apos[3])
        ControlMove($nazivbota, "", $u22a, $u22apos[0], $u22apos[1]-40, $u22apos[2], $u22apos[3])
        ControlMove($nazivbota, "", $u3, $u3pos[0], $u3pos[1]-40, $u3pos[2], $u3pos[3])
        ControlMove($nazivbota, "", $u33, $u33pos[0], $u33pos[1]-40, $u33pos[2], $u33pos[3])
        ControlMove($nazivbota, "", $u4, $u4pos[0], $u4pos[1]-40, $u4pos[2], $u4pos[3])
        ControlMove($nazivbota, "", $u44, $u44pos[0], $u44pos[1]-40, $u44pos[2], $u44pos[3])
        ControlMove($nazivbota, "", $u5, $u5pos[0], $u5pos[1]-40, $u5pos[2], $u5pos[3])
        ControlMove($nazivbota, "", $u55, $u55pos[0], $u55pos[1]-40, $u55pos[2], $u55pos[3])
        ControlMove($nazivbota, "", $u6, $u6pos[0], $u6pos[1]-40, $u6pos[2], $u6pos[3])
        ControlMove($nazivbota, "", $u66, $u66pos[0], $u66pos[1]-40, $u66pos[2], $u66pos[3])
        ControlMove($nazivbota, "", $u7, $u7pos[0], $u7pos[1]-40, $u7pos[2], $u7pos[3])
        ControlMove($nazivbota, "", $u77, $u77pos[0], $u77pos[1]-40, $u77pos[2], $u77pos[3])
        ControlMove($nazivbota, "", $u8, $u8pos[0], $u8pos[1]-40, $u8pos[2], $u8pos[3])
        ControlMove($nazivbota, "", $u88, $u88pos[0], $u88pos[1]-40, $u88pos[2], $u88pos[3])
        ControlMove($nazivbota, "", $addonsgroup, $addonsgrouppos[0], $addonsgrouppos[1]-40, $addonsgrouppos[2], $addonsgrouppos[3])
        ControlMove($nazivbota, "", $addons_label, $addons_labelpos[0], $addons_labelpos[1]-40, $addons_labelpos[2], $addons_labelpos[3])
        ControlMove($nazivbota, "", $minimizeaddons, $minimizeaddonspos[0], $minimizeaddonspos[1]-40, $minimizeaddonspos[2], $minimizeaddonspos[3])
        ControlMove($nazivbota, "", $AParty, $APartypos[0], $APartypos[1]-40, $APartypos[2], $APartypos[3])
        ControlMove($nazivbota, "", $aplabel, $aplabelpos[0], $aplabelpos[1]-40, $aplabelpos[2], $aplabelpos[3])
        ControlMove($nazivbota, "", $APartyCombo, $APartyCombopos[0], $APartyCombopos[1]-40, $APartyCombopos[2], $APartyCombopos[3])
        ControlMove($nazivbota, "", $DLhorse, $DLhorsepos[0], $DLhorsepos[1]-40, $DLhorsepos[2], $DLhorsepos[3])
        ControlMove($nazivbota, "", $horselabel, $horselabelpos[0], $horselabelpos[1]-40, $horselabelpos[2], $horselabelpos[3])
        ControlMove($nazivbota, "", $RDLhorse2, $RDLhorse2pos[0], $RDLhorse2pos[1]-40, $RDLhorse2pos[2], $RDLhorse2pos[3])
        ControlMove($nazivbota, "", $horseupdown, $horseupdownpos[0], $horseupdownpos[1]-40, $horseupdownpos[2], $horseupdownpos[3])
        ControlMove($nazivbota, "", $InfArrowCheckbox, $InfArrowCheckboxpos[0], $InfArrowCheckboxpos[1]-40, $InfArrowCheckboxpos[2], $InfArrowCheckboxpos[3])
        ControlMove($nazivbota, "", $IASlabel, $IASlabelpos[0], $IASlabelpos[1]-40, $IASlabelpos[2], $IASlabelpos[3])
        ControlMove($nazivbota, "", $manarecharge, $manarechargepos[0], $manarechargepos[1]-40, $manarechargepos[2], $manarechargepos[3])
        ControlMove($nazivbota, "", $IASupdown, $IASupdownpos[0], $IASupdownpos[1]-40, $IASupdownpos[2], $IASupdownpos[3])
        ControlMove($nazivbota, "", $AutoRepair, $AutoRepairpos[0], $AutoRepairpos[1]-40, $AutoRepairpos[2], $AutoRepairpos[3])
        ControlMove($nazivbota, "", $repairlabel, $repairlabelpos[0], $repairlabelpos[1]-40, $repairlabelpos[2], $repairlabelpos[3])
        ControlMove($nazivbota, "", $AutoRepairInput, $AutoRepairInputpos[0], $AutoRepairInputpos[1]-40, $AutoRepairInputpos[2], $AutoRepairInputpos[3])
        ControlMove($nazivbota, "", $repairupdown, $repairupdownpos[0], $repairupdownpos[1]-40, $repairupdownpos[2], $repairupdownpos[3])
        ControlMove($nazivbota, "", $StartTimer, $StartTimerpos[0], $StartTimerpos[1]-40, $StartTimerpos[2], $StartTimerpos[3])
        ControlMove($nazivbota, "", $startmubutton, $startmubuttonpos[0], $startmubuttonpos[1]-40, $startmubuttonpos[2], $startmubuttonpos[3])
        ControlMove($nazivbota, "", $ja, $japos[0], $japos[1]-40, $japos[2], $japos[3])
        $macroesi = 1
    Else
        GUICtrlSetData($minimizemacroes, "-")
        $macroesgrouppos = ControlGetPos($nazivbota, "", $macroesgroup)
        $GrupaMacroipos = ControlGetPos($nazivbota, "", $GrupaMacroi)
        $minimizemacroespos = ControlGetPos($nazivbota, "", $minimizemacroes)
        $macro7pos = ControlGetPos($nazivbota, "", $macro7)
        $macro77pos = ControlGetPos($nazivbota, "", $macro77)
        $macro8pos = ControlGetPos($nazivbota, "", $macro8)
        $macro88pos = ControlGetPos($nazivbota, "", $macro88)
        $macro9pos = ControlGetPos($nazivbota, "", $macro9)
        $macro99pos = ControlGetPos($nazivbota, "", $macro99)
        $startmacro1pos = ControlGetPos($nazivbota, "", $startmacro1)
        $jewelBpos = ControlGetPos($nazivbota, "", $jewelB)
        $JewelIpos = ControlGetPos($nazivbota, "", $JewelI)
        $instructionsgrouppos = ControlGetPos($nazivbota, "", $instructionsgroup)
        $GrupaUputstvopos = ControlGetPos($nazivbota, "", $GrupaUputstvo)
        $minimizeinstructionspos = ControlGetPos($nazivbota, "", $minimizeinstructions)
        $u1pos = ControlGetPos($nazivbota, "", $u1)
        $u11pos = ControlGetPos($nazivbota, "", $u11)
        $u2pos = ControlGetPos($nazivbota, "", $u2)
        $u22pos = ControlGetPos($nazivbota, "", $u22)
        $u2apos = ControlGetPos($nazivbota, "", $u2a)
        $u22apos = ControlGetPos($nazivbota, "", $u22a)
        $u3pos = ControlGetPos($nazivbota, "", $u3)
        $u33pos = ControlGetPos($nazivbota, "", $u33)
        $u4pos = ControlGetPos($nazivbota, "", $u4)
        $u44pos = ControlGetPos($nazivbota, "", $u44)
        $u5pos = ControlGetPos($nazivbota, "", $u5)
        $u55pos = ControlGetPos($nazivbota, "", $u55)
        $u6pos = ControlGetPos($nazivbota, "", $u6)
        $u66pos = ControlGetPos($nazivbota, "", $u66)
        $u7pos = ControlGetPos($nazivbota, "", $u7)
        $u77pos = ControlGetPos($nazivbota, "", $u77)
        $u8pos = ControlGetPos($nazivbota, "", $u8)
        $u88pos = ControlGetPos($nazivbota, "", $u88)
        $addonsgrouppos = ControlGetPos($nazivbota, "", $addonsgroup)
        $addons_labelpos = ControlGetPos($nazivbota, "", $addons_label)
        $minimizeaddonspos = ControlGetPos($nazivbota, "", $minimizeaddons)
        $APartypos = ControlGetPos($nazivbota, "", $AParty)
        $aplabelpos = ControlGetPos($nazivbota, "", $aplabel)
        $APartyCombopos = ControlGetPos($nazivbota, "", $APartyCombo)
        $DLhorsepos = ControlGetPos($nazivbota, "", $DLhorse)
        $horselabelpos = ControlGetPos($nazivbota, "", $horselabel)
        $RDLhorse2pos = ControlGetPos($nazivbota, "", $RDLhorse2)
        $horseupdownpos = ControlGetPos($nazivbota, "", $horseupdown)
        $InfArrowCheckboxpos = ControlGetPos($nazivbota, "", $InfArrowCheckbox)
        $IASlabelpos = ControlGetPos($nazivbota, "", $IASlabel)
        $manarechargepos = ControlGetPos($nazivbota, "", $manarecharge)
        $IASupdownpos = ControlGetPos($nazivbota, "", $IASupdown)
        $AutoRepairpos = ControlGetPos($nazivbota, "", $AutoRepair)
        $repairlabelpos = ControlGetPos($nazivbota, "", $repairlabel)
        $AutoRepairInputpos = ControlGetPos($nazivbota, "", $AutoRepairInput)
        $repairupdownpos = ControlGetPos($nazivbota, "", $repairupdown)
        $StartTimerpos = ControlGetPos($nazivbota, "", $StartTimer)
        $startmubuttonpos = ControlGetPos($nazivbota, "", $startmubutton)
        $japos = ControlGetPos($nazivbota, "", $ja)
        ;----- window ----------------------------------
        $SNDpos = WinGetPos($nazivbota)
        winmove($nazivbota, "", $SNDpos[0], $SNDpos[1], $SNDpos[2], $SNDpos[3]+40)
        ;-----------------------------------------------
        GUICtrlSetState($macro7, $GUI_SHOW)
        GUICtrlSetState($macro77, $GUI_SHOW)
        GUICtrlSetState($macro8, $GUI_SHOW)
        GUICtrlSetState($macro88, $GUI_SHOW)
        GUICtrlSetState($macro9, $GUI_SHOW)
        GUICtrlSetState($macro99, $GUI_SHOW)
        GUICtrlSetState($startmacro1, $GUI_SHOW)
        ControlMove($nazivbota, "", $macroesgroup, $macroesgrouppos[0], $macroesgrouppos[1], $macroesgrouppos[2], $macroesgrouppos[3]+40)
        ControlMove($nazivbota, "", $GrupaMacroi, $GrupaMacroipos[0], $GrupaMacroipos[1], $GrupaMacroipos[2], $GrupaMacroipos[3])
        ControlMove($nazivbota, "", $minimizemacroes, $minimizemacroespos[0], $minimizemacroespos[1], $minimizemacroespos[2], $minimizemacroespos[3])
        ControlMove($nazivbota, "", $macro7, $macro7pos[0], $macro7pos[1], $macro7pos[2], $macro7pos[3])
        ControlMove($nazivbota, "", $macro77, $macro77pos[0], $macro77pos[1], $macro77pos[2], $macro77pos[3])
        ControlMove($nazivbota, "", $macro8, $macro8pos[0], $macro8pos[1], $macro8pos[2], $macro8pos[3])
        ControlMove($nazivbota, "", $macro88, $macro88pos[0], $macro88pos[1], $macro88pos[2], $macro88pos[3])
        ControlMove($nazivbota, "", $macro9, $macro9pos[0], $macro9pos[1], $macro9pos[2], $macro9pos[3])
        ControlMove($nazivbota, "", $macro99, $macro99pos[0], $macro99pos[1], $macro99pos[2], $macro99pos[3])
        ControlMove($nazivbota, "", $startmacro1, $startmacro1pos[0], $startmacro1pos[1], $startmacro1pos[2], $startmacro1pos[3])
        ControlMove($nazivbota, "", $jewelB, $jewelBpos[0], $jewelBpos[1]+40, $jewelBpos[2], $jewelBpos[3])
        ControlMove($nazivbota, "", $JewelI, $JewelIpos[0], $JewelIpos[1]+40, $JewelIpos[2], $JewelIpos[3])
        ControlMove($nazivbota, "", $instructionsgroup, $instructionsgrouppos[0], $instructionsgrouppos[1]+40, $instructionsgrouppos[2], $instructionsgrouppos[3])
        ControlMove($nazivbota, "", $GrupaUputstvo, $GrupaUputstvopos[0], $GrupaUputstvopos[1]+40, $GrupaUputstvopos[2], $GrupaUputstvopos[3])
        ControlMove($nazivbota, "", $minimizeinstructions, $minimizeinstructionspos[0], $minimizeinstructionspos[1]+40, $minimizeinstructionspos[2], $minimizeinstructionspos[3])
        ControlMove($nazivbota, "", $u1, $u1pos[0], $u1pos[1]+40, $u1pos[2], $u1pos[3])
        ControlMove($nazivbota, "", $u11, $u11pos[0], $u11pos[1]+40, $u11pos[2], $u11pos[3])
        ControlMove($nazivbota, "", $u2, $u2pos[0], $u2pos[1]+40, $u2pos[2], $u2pos[3])
        ControlMove($nazivbota, "", $u22, $u22pos[0], $u22pos[1]+40, $u22pos[2], $u22pos[3])
        ControlMove($nazivbota, "", $u2a, $u2apos[0], $u2apos[1]+40, $u2apos[2], $u2apos[3])
        ControlMove($nazivbota, "", $u22a, $u22apos[0], $u22apos[1]+40, $u22apos[2], $u22apos[3])
        ControlMove($nazivbota, "", $u3, $u3pos[0], $u3pos[1]+40, $u3pos[2], $u3pos[3])
        ControlMove($nazivbota, "", $u33, $u33pos[0], $u33pos[1]+40, $u33pos[2], $u33pos[3])
        ControlMove($nazivbota, "", $u4, $u4pos[0], $u4pos[1]+40, $u4pos[2], $u4pos[3])
        ControlMove($nazivbota, "", $u44, $u44pos[0], $u44pos[1]+40, $u44pos[2], $u44pos[3])
        ControlMove($nazivbota, "", $u5, $u5pos[0], $u5pos[1]+40, $u5pos[2], $u5pos[3])
        ControlMove($nazivbota, "", $u55, $u55pos[0], $u55pos[1]+40, $u55pos[2], $u55pos[3])
        ControlMove($nazivbota, "", $u6, $u6pos[0], $u6pos[1]+40, $u6pos[2], $u6pos[3])
        ControlMove($nazivbota, "", $u66, $u66pos[0], $u66pos[1]+40, $u66pos[2], $u66pos[3])
        ControlMove($nazivbota, "", $u7, $u7pos[0], $u7pos[1]+40, $u7pos[2], $u7pos[3])
        ControlMove($nazivbota, "", $u77, $u77pos[0], $u77pos[1]+40, $u77pos[2], $u77pos[3])
        ControlMove($nazivbota, "", $u8, $u8pos[0], $u8pos[1]+40, $u8pos[2], $u8pos[3])
        ControlMove($nazivbota, "", $u88, $u88pos[0], $u88pos[1]+40, $u88pos[2], $u88pos[3])
        ControlMove($nazivbota, "", $addonsgroup, $addonsgrouppos[0], $addonsgrouppos[1]+40, $addonsgrouppos[2], $addonsgrouppos[3])
        ControlMove($nazivbota, "", $addons_label, $addons_labelpos[0], $addons_labelpos[1]+40, $addons_labelpos[2], $addons_labelpos[3])
        ControlMove($nazivbota, "", $minimizeaddons, $minimizeaddonspos[0], $minimizeaddonspos[1]+40, $minimizeaddonspos[2], $minimizeaddonspos[3])
        ControlMove($nazivbota, "", $AParty, $APartypos[0], $APartypos[1]+40, $APartypos[2], $APartypos[3])
        ControlMove($nazivbota, "", $aplabel, $aplabelpos[0], $aplabelpos[1]+40, $aplabelpos[2], $aplabelpos[3])
        ControlMove($nazivbota, "", $APartyCombo, $APartyCombopos[0], $APartyCombopos[1]+40, $APartyCombopos[2], $APartyCombopos[3])
        ControlMove($nazivbota, "", $DLhorse, $DLhorsepos[0], $DLhorsepos[1]+40, $DLhorsepos[2], $DLhorsepos[3])
        ControlMove($nazivbota, "", $horselabel, $horselabelpos[0], $horselabelpos[1]+40, $horselabelpos[2], $horselabelpos[3])
        ControlMove($nazivbota, "", $RDLhorse2, $RDLhorse2pos[0], $RDLhorse2pos[1]+40, $RDLhorse2pos[2], $RDLhorse2pos[3])
        ControlMove($nazivbota, "", $horseupdown, $horseupdownpos[0], $horseupdownpos[1]+40, $horseupdownpos[2], $horseupdownpos[3])
        ControlMove($nazivbota, "", $InfArrowCheckbox, $InfArrowCheckboxpos[0], $InfArrowCheckboxpos[1]+40, $InfArrowCheckboxpos[2], $InfArrowCheckboxpos[3])
        ControlMove($nazivbota, "", $IASlabel, $IASlabelpos[0], $IASlabelpos[1]+40, $IASlabelpos[2], $IASlabelpos[3])
        ControlMove($nazivbota, "", $manarecharge, $manarechargepos[0], $manarechargepos[1]+40, $manarechargepos[2], $manarechargepos[3])
        ControlMove($nazivbota, "", $IASupdown, $IASupdownpos[0], $IASupdownpos[1]+40, $IASupdownpos[2], $IASupdownpos[3])
        ControlMove($nazivbota, "", $AutoRepair, $AutoRepairpos[0], $AutoRepairpos[1]+40, $AutoRepairpos[2], $AutoRepairpos[3])
        ControlMove($nazivbota, "", $repairlabel, $repairlabelpos[0], $repairlabelpos[1]+40, $repairlabelpos[2], $repairlabelpos[3])
        ControlMove($nazivbota, "", $AutoRepairInput, $AutoRepairInputpos[0], $AutoRepairInputpos[1]+40, $AutoRepairInputpos[2], $AutoRepairInputpos[3])
        ControlMove($nazivbota, "", $repairupdown, $repairupdownpos[0], $repairupdownpos[1]+40, $repairupdownpos[2], $repairupdownpos[3])
        ControlMove($nazivbota, "", $StartTimer, $StartTimerpos[0], $StartTimerpos[1]+40, $StartTimerpos[2], $StartTimerpos[3])
        ControlMove($nazivbota, "", $startmubutton, $startmubuttonpos[0], $startmubuttonpos[1]+40, $startmubuttonpos[2], $startmubuttonpos[3])
        ControlMove($nazivbota, "", $ja, $japos[0], $japos[1]+40, $japos[2], $japos[3])
        $macroesi = 0
    EndIf
Return
EndFunc

WHILE 1
    Sleep(10)
WEnd

Share this post


Link to post
Share on other sites

no Jesus here. your water stays water - crazy - ~Jap

Share this post


Link to post
Share on other sites

You know... when it comes to that large of a file... a lot of people honestly are just too... um... lazy... to read it and figure out what's going on. Try to condense it down to apx. 100 lines or 200 lines, and then you may recieve some support, but when we have to read 700 lines of text and we have no idea what your application does, or what it interfaces with, or how it works... we really don't want to help.

By the way, #include is VERY nice when it comes to documents over 500 lines, especially if you repeat sections. Create a second file and just include it whenever you need it.

Share this post


Link to post
Share on other sites

Don't use $GUI_DOCKSIZE for your controls.


"be smart, drink your wine"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0