This is my new script:
Code:
IniRead, var1, store.ini, Saves, kvar1
IniRead, var2, store.ini, Saves, kvar2
IniRead, var3, store.ini, Saves, kvar3
IniRead, var4, store.ini, Saves, kvar4
IniRead, var5, store.ini, Saves, kvar5
IniRead, var6, store.ini, Saves, kvar6
IniRead, var7, store.ini, Saves, kvar7
IniRead, var8, store.ini, Saves, kvar8
IniRead, var9, store.ini, Saves, kvar9
gui, -caption
Gui, Add, ListBox, vStand x6 y7 w130 h130, Slot1|Slot2|Slot3|Slot4|Slot5|Slot6|Slot7|Slot8|Slot9|
Gui, Add, Button, x146 y7 w100 h30, Show
Gui, Add, Button, x146 y47 w100 h30, Save
Gui, Add, Button, x146 y87 w100 h30, Restore
Gui, Add, Button, x146 y147 w100 h30, Close
Gui, Add, Picture, x16 y147 w110 h90, clipboardmanager.gif
refresh:
Gui, Add, Text, vMyText x146 y187 w100 h50,
Gui, Show, x270 y110 h252 w252,
SetTimer, UpdateContent, 1
return
UpdateContent:
GuiControlGet, Stand
If Stand = Slot1
{
Content = %var1%
}
If Stand = Slot2
{
Content = %var2%
}
If Stand = Slot3
{
Content = %var3%
}
If Stand = Slot4
{
Content = %var4%
}
If Stand = Slot5
{
Content = %var5%
}
If Stand = Slot6
{
Content = %var6%
}
If Stand = Slot7
{
Content = %var7%
}
If Stand = Slot8
{
Content = %var8%
}
If Stand = Slot9
{
Content = %var9%
}
GuiControl,,MyText,%content%
return
ButtonShow:
GuiControlGet, Stand
If Stand = Slot1
{
MsgBox, %var1%
}
If Stand = Slot2
{
MsgBox, %var2%
}
If Stand = Slot3
{
MsgBox, %var3%
}
If Stand = Slot4
{
MsgBox, %var4%
}
If Stand = Slot5
{
MsgBox, %var5%
}
If Stand = Slot6
{
MsgBox, %var6%
}
If Stand = Slot7
{
MsgBox, %var7%
}
If Stand = Slot8
{
MsgBox, %var8%
}
If Stand = Slot9
{
MsgBox, %var9%
}
return
;saves The content
ButtonSave:
GuiControlGet, Stand
If Stand = Slot1
{
var1=%clipboard%
}
If Stand = Slot2
{
var2=%clipboard%
}
If Stand = Slot3
{
var3=%clipboard%
}
If Stand = Slot4
{
var4=%clipboard%
}
If Stand = Slot5
{
var5=%clipboard%
}
If Stand = Slot6
{
var6=%clipboard%
}
If Stand = Slot7
{
var7=%clipboard%
}
If Stand = Slot8
{
var8=%clipboard%
}
If Stand = Slot9
{
var9=%clipboard%
}
return
;restores the content
ButtonRestore:
GuiControlGet, Stand
If Stand = Slot1
{
clipboard=%var1%
}
If Stand = Slot2
{
clipboard=%var2%
}
If Stand = Slot3
{
clipboard=%var3%
}
If Stand = Slot4
{
clipboard=%var4%
}
If Stand = Slot5
{
clipboard=%var5%
}
If Stand = Slot6
{
clipboard=%var6%
}
If Stand = Slot7
{
clipboard=%var7%
}
If Stand = Slot8
{
clipboard=%var8%
}
If Stand = Slot9
{
clipboard=%var9%
}
return
ButtonClose:
IniWrite, %var1%, store.ini, Saves, kvar1
IniWrite, %var2%, store.ini, Saves, kvar2
IniWrite, %var3%, store.ini, Saves, kvar3
IniWrite, %var4%, store.ini, Saves, kvar4
IniWrite, %var5%, store.ini, Saves, kvar5
IniWrite, %var6%, store.ini, Saves, kvar6
IniWrite, %var7%, store.ini, Saves, kvar7
IniWrite, %var8%, store.ini, Saves, kvar8
IniWrite, %var9%, store.ini, Saves, kvar9
ExitApp
return
This is a clipboard manager you can save things from your clipboard to the slots and restore them.(Works only with text)