希望各位大佬们多多提出宝贵建议,个人感觉应该可以简化很多,属于入门电插座了。哈哈。
为交流使用,不做其他用途。
F8关闭准心 F9开启准心/改变准心式样 F10改变准心颜色
以下为代码
c:=0
a:=0 ;模式
b:=0 ;颜色
zx:=0
zy:=0
zzx:=0
zzy:=0
; dx:=20.5+zx
; dy:=62.35+zy
^Left::
zx-=3.3
zbx:=10.5+zx
zby:=62.35+zy
ybx:=40.5+zx
yby:=62.35+zy
sbx:=29.8+zx
sby:=44.35+zy
xbx:=29.8+zx
xby:=76.35+zy
dbx:=zbx+10
if (b=1)
{
Gui, Destroy
xs=cFF0100 ;r
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (b=2)
{
Gui, Destroy
xs=c00FF01 ;g
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (b=3)
{
Gui, Destroy
xs=c0000FF ;b
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (a > 3)
{
a:=0
}
if (b > 3)
{
b:=0
}
return
^Right::
zx+=3.3
zbx:=10.5+zx
zby:=62.35+zy
ybx:=40.5+zx
yby:=62.35+zy
sbx:=29.8+zx
sby:=44.35+zy
xbx:=29.8+zx
xby:=76.35+zy
dbx:=zbx+10
if (b=1)
{
Gui, Destroy
xs=cFF0100 ;r
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (b=2)
{
Gui, Destroy
xs=c00FF01 ;g
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (b=3)
{
Gui, Destroy
xs=c0000FF ;b
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (a > 3)
{
a:=0
}
if (b > 3)
{
b:=0
}
return
^Up::
zy-=3.3
zbx:=10.5+zx
zby:=62.35+zy
ybx:=40.5+zx
yby:=62.35+zy
sbx:=29.8+zx
sby:=44.35+zy
xbx:=29.8+zx
xby:=76.35+zy
dbx:=zbx+10
if (b=1)
{
Gui, Destroy
xs=cFF0100 ;r
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (b=2)
{
Gui, Destroy
xs=c00FF01 ;g
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (b=3)
{
Gui, Destroy
xs=c0000FF ;b
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (a > 3)
{
a:=0
}
if (b > 3)
{
b:=0
}
return
^Down::
zy+=3.3
zbx:=10.5+zx
zby:=62.35+zy
ybx:=40.5+zx
yby:=62.35+zy
sbx:=29.8+zx
sby:=44.35+zy
xbx:=29.8+zx
xby:=76.35+zy
dbx:=zbx+10
if (b=1)
{
Gui, Destroy
xs=cFF0100 ;r
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (b=2)
{
Gui, Destroy
xs=c00FF01 ;g
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (b=3)
{
Gui, Destroy
xs=c0000FF ;b
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (a > 3)
{
a:=0
}
if (b > 3)
{
b:=0
}
return
zbx:=10.5+zx
zby:=62.35+zy
ybx:=40.5+zx
yby:=62.35+zy
sbx:=29.8+zx
sby:=44.35+zy
xbx:=29.8+zx
xby:=76.35+zy
dbx:=zbx+10
F10:: ;颜色
b++
; MsgBox %b% %a% %xs%
if (b=1)
{
Gui, Destroy
xs=cFF0100 ;r
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (b=2)
{
Gui, Destroy
xs=c00FF01 ;g
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (b=3)
{
Gui, Destroy
xs=c0000FF ;b
if (a=1)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
}
if (a > 3)
{
a:=0
}
if (b = 4)
{
b:=0
}
return
F9::
; xs=cFFFFFF
if (xs=0)
{
xs=cFFFFFF
}
a++
zbx:=10.5+zx
zby:=62.35+zy
ybx:=40.5+zx
yby:=62.35+zy
sbx:=29.8+zx
sby:=44.35+zy
xbx:=29.8+zx
xby:=76.35+zy
dbx:=zbx+10
Gui, Destroy
if (a=1)
{
Gui, Destroy
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , +
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=2)
{
Gui, Destroy
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%dbx% y%zby% c%xs% , ·
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
else if (a=3)
{
Gui, Destroy
ys := "EEEEEE"
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ;+
Gui, Color, %ys%
Gui, Font, cFFFFAA s16
WinSet, TransColor, %ys% 255
WinSet, ExStyle, ^0x00000020
Gui, Add, Text, x%zbx% y%zby% c%xs% , - ;左
Gui, Add, Text, x%ybx% y%yby% c%xs% , - ;右
Gui, Add, Text, x%sbx% y%sby% c%xs% , ׀ ;上
Gui, Add, Text, x%xbx% y%xby% c%xs% , ׀ ;下
Gui, Add, Text, x1800 y1060 cred ,
Gui, Show, x600 y300 NoActivate
}
if (a > 3)
{
a:=0
}
if (b > 3)
{
b:=0
}
return
F8::Reload
return
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
不错的
??多谢db师傅
看效果是不错的,加油
??多谢何许人师傅
学习学习
主要代码是这一段。你复制修改试试效果看看能不能达到你的需求。 Gui +LastFound +AlwaysOnTop -Caption +ToolWindow Gui, Color, %ys% Gui, Font, cFFFFAA s16 WinSet, TransColor, %ys% 255 WinSet, ExStyle, ^0x00000020 Gui, Add, Text, xx% y%zby% c%xs% , + Gui, Add, Text, x1800 y1060 cred , Gui, Show, x600 y300 NoActivate
我仔细研读了,发现我应该创建一个新的GUI更改不同的背景色来使他透明,因为在一个GUI里面 设置了透明色不管是第几个图层,都会透明