Labels

January 17, 2016

Reading a File and placing each line in One Tab in reverse order

Like, you wanna make some customised 'Tab' window where you can add or delete one or more tabs as per the requirement, You need to save a list of all the tabs in a file and then read it each time you launch your script:

Loop, Read, settings.ini                                      
{
    mainTabNames= %A_LoopReadLine%  | %mainTabNames% 

Gui,font,S12 cGreen,Calibri
Gui, Add, Tab,x%mainTabX% y%mainTabY% w%mainTabWidth% h%mainTabHeight%, %mainTabNames%
Gui,Show

Note: the tabs will be added in reverse order of the index of lines in the file.

No comments: