I created a script in which 1 Gui activates 5 others.
The first Gui is at the upper left corner, and when clicking on it,
the other 5 appear right beneath it.
Instead of using buttons, I used 6 pictures (and added some text - I removed it here).
(Each Gui has a different function, like opening Paint, Calculator etc.)
The pictures where originally 1 big image, which I just cropped.
I expected that it would like 1 image when expanding the Guis, but it doesn't.
The first 4 pictures look acceptable, but the last 2 are just pixel-counting.
Do I have to do something additionally in order to make it look good?
First I just made it with white or black images, but it looks really simple and unimaginative.
Having some picture makes a better impression, even though it doesn't affect the functionality.
This is how it should look:
http://fs1.directupload.net/images/180115/hkjxjrcg.png
This it how it looks:
http://fs1.directupload.net/images/180115/5ie4y3vw.png
That's the code:
Code: Select all
^F2::
Gui, Gui1:-Caption
Gui, Gui1:+AlwaysOnTop
Gui, Gui1:Font, cblack
Gui, Gui1:Show, x0 y0 w101 h101
Gui, Gui1:Add, Text, BackgroundTrans x30 y48
Gui, Gui1:Add, Picture, x0 y0 w101 h101 gGuiNo1, picture01.png
return
GuiNo1:
gui1_count++
SoundPlay, Chord.wav
if (gui1_count = 1)
{
Gui, Gui2:-Caption
Gui, Gui2:+AlwaysOnTop
Gui, Gui2:Font, cblack
Gui, Gui2:Show, x0 y100 w101 h101
Gui, Gui2:Add, Text, BackgroundTrans x30 y48
Gui, Gui2:Add, Picture, x0 y0 w101 h101 gGuiNo2, picture02.png
Gui, Gui3:-Caption
Gui, Gui3:+AlwaysOnTop
Gui, Gui3:Font, cblack
Gui, Gui3:Show, x0 y200 w101 h101
Gui, Gui3:Add, Text, BackgroundTrans x30 y48
Gui, Gui3:Add, Picture, x0 y0 w101 h101 gGuiNo3, picture03.png
Gui, Gui4:-Caption
Gui, Gui4:+AlwaysOnTop
Gui, Gui4:Font, cblack
Gui, Gui4:Show, x0 y300 w101 h101
Gui, Gui4:Add, Text, BackgroundTrans x30 y48
Gui, Gui4:Add, Picture, x0 y0 w101 h101 gGuiNo4, picture04.png
Gui, Gui5:-Caption
Gui, Gui5:+AlwaysOnTop
Gui, Gui5:Font, cblack
Gui, Gui5:Show, x0 y400 w101 h101
Gui, Gui5:Add, Text, BackgroundTrans x30 y58
Gui, Gui5:Add, Picture, x0 y0 w100 h400 gGuiNo5, picture05.png
Gui, Gui6:-Caption
Gui, Gui6:+AlwaysOnTop
Gui, Gui6:Font, cblack
Gui, Gui6:Show, x0 y500 w101 h101
Gui, Gui6:Add, Text, BackgroundTrans x30 y58
Gui, Gui6:Add, Picture, x0 y0 w100 h500 gGuiNo6, picture06.png
}
if (gui1_count = 2)
{
HideGuis()
gui1_count := 0
}
return
GuiNo2:
Run, mspaint.exe
SoundPlay, Chord.wav
Sleep, 5
HideGuis()
Sleep, 5
gui1_count := 0
return
GuiNo3:
Run, Calc.exe
SoundPlay, Chord.wav
Sleep, 5
HideGuis()
Sleep, 5
gui1_count := 0
return
GuiNo4:
Run, SnippingTool.exe
SoundPlay, Chord.wav
Sleep, 5
HideGuis()
Sleep, 5
gui1_count := 0
return
GuiNo5:
Run, Notepad.exe
SoundPlay, Chord.wav
Sleep, 5
HideGuis()
Sleep, 5
gui1_count := 0
return
GuiNo6:
SoundPlay, Chord.wav
Sleep, 5
Run, C:\Program Files\Internet\Mozilla Firefox\Firefox.exe
Sleep, 5
HideGuis()
Sleep, 5
gui1_count := 0
return
HideGuis()
{
Gui, Gui2:Hide
Gui, Gui3:Hide
Gui, Gui4:Hide
Gui, Gui5:Hide
Gui, Gui6:Hide
}
^Esc::
ExitApp
return