[Asm] 纯文本查看 复制代码
Gui Font
Gui Font, s15
Gui Add, Text, x8 y3 w180 h33 +0x200, 请单击按钮【
Gui Font
Gui Font, s15
Gui Add, Text, x156 y3 w180 h33 +0x200, 】启动程序
Gui Font
Gui Font, s20 c0xFF0000
;======================================随机部分
Random, OutputVar , 1, 6
If (OutputVar=1)
Gui Add, Text, x134 y2 w26 h38 +0x200, 1
If (OutputVar=2)
Gui Add, Text, x134 y2 w26 h38 +0x200, 2
If (OutputVar=3)
Gui Add, Text, x134 y2 w26 h38 +0x200, 3
If (OutputVar=4)
Gui Add, Text, x134 y2 w26 h38 +0x200, 4
If (OutputVar=5)
Gui Add, Text, x134 y2 w26 h38 +0x200, 5
If (OutputVar=6)
Gui Add, Text, x134 y2 w26 h38 +0x200, 6
;=====================================
;~ Gui Add, Text, x134 y22 w30 h38 +0x200, 1 ;要随机的标签!
Gui Font
Gui Font, s20
Gui Add, Button, x8 y40 w75 h23 gButton_1, 1
Gui Font
Gui Font, s20
Gui Add, Button, x114 y40 w75 h23 gButton_2, 2
Gui Font
Gui Font, s20
Gui Add, Button, x220 y40 w75 h23 gButton_3, 3
Gui Font
Gui Font, s20
Gui Add, Button, x8 y80 w75 h23 gButton_4, 4 ;gButton 。。。。
Gui Font
Gui Font, s20
Gui Add, Button, x114 y80 w75 h23 gButton_5, 5
Gui Font
Gui Font, s20
Gui Add, Button, x220 y80 w75 h23 gButton_6, 6
Gui Font
Gui Show, w305 h129, 先生/小姐(请点击一个吧~~)
WinGet, k_ID, ID, A ; 得到窗口ID.
WinSet, AlwaysOnTop, On, ahk_id %k_ID%
return
GuiEscape:
GuiClose:
ExitApp
;====================================
Button_1:
Gui, Submit, NoHide
If (OutputVar=1)
{
Goto , 启动程序
}
Else
ExitApp
Button_2:
Gui, Submit, NoHide
If (OutputVar=2)
{
Goto , 启动程序
}
Else
ExitApp
Button_3:
Gui, Submit, NoHide
If (OutputVar=3)
{
Goto , 启动程序
}
Else
ExitApp
Button_4:
Gui, Submit, NoHide
If (OutputVar=4)
{
Goto , 启动程序
}
Else
ExitApp
Button_5:
Gui, Submit, NoHide
If (OutputVar=5)
{
Goto , 启动程序
}
Else
ExitApp
Button_6:
Gui, Submit, NoHide
If (OutputVar=6)
{
Goto , 启动程序
}
Else
ExitApp
启动程序:
Gui, Destroy ;关掉第一个
;下面是第2个窗口
Gui Add, ActiveX, x0 y0 w201 h85, [img]http://bbs.crsky.com/images/bluesea/top_logo.gif[/img]
Gui Show, w230 h98, 第2个窗口欢迎您~~