1 (изменено: SuBrex, 2020-05-17 15:18:53)

Тема: AHK: Объединение 4 скриптов

Добрый день всем! Прошу ответить мне возможно-ли (а если возможно, то как) объединить 4 скрипта приведённых ниже:


x = 963
y = 539
w = 4
h = 2
Color = 00FB1B
WS_EX_TRANSPARENT := 0x20
WS_EX_LAYERED := 0x80000
Gui, +AlwaysOnTop -Caption +ToolWindow +LastFound
Gui, Color, % Color
Gui, Show, x%x% y%y% w%w% h%h% NA
WinSet, ExStyle, % "+" WS_EX_LAYERED|WS_EX_TRANSPARENT

P.S.: Далее те же скрипты, только с другими x,y,w,h

2

Re: AHK: Объединение 4 скриптов

Код надо обрамлять тегом, исправьте.


x = 963
y = 539
w = 114
h = 112
Color = 00FB1B
WS_EX_TRANSPARENT := 0x20
WS_EX_LAYERED := 0x80000
Gui, New, +AlwaysOnTop -Caption +ToolWindow +LastFound
Gui, Color, % Color
Gui, Show, x%x% y%y% w%w% h%h% NA
WinSet, ExStyle, % "+" WS_EX_LAYERED|WS_EX_TRANSPARENT

x = 363
y = 339
w = 114
h = 112
Color = 00FB1B
WS_EX_TRANSPARENT := 0x20
WS_EX_LAYERED := 0x80000
Gui, New, +AlwaysOnTop -Caption +ToolWindow +LastFound
Gui, Color, % Color
Gui, Show, x%x% y%y% w%w% h%h% NA
WinSet, ExStyle, % "+" WS_EX_LAYERED|WS_EX_TRANSPARENT

x = 963
y = 39
w = 114
h = 112
Color = 00FB1B
WS_EX_TRANSPARENT := 0x20
WS_EX_LAYERED := 0x80000
Gui, New, +AlwaysOnTop -Caption +ToolWindow +LastFound
Gui, Color, % Color
Gui, Show, x%x% y%y% w%w% h%h% NA
WinSet, ExStyle, % "+" WS_EX_LAYERED|WS_EX_TRANSPARENT

x = 63
y = 539
w = 114
h = 112
Color = 00FB1B
WS_EX_TRANSPARENT := 0x20
WS_EX_LAYERED := 0x80000
Gui, New, +AlwaysOnTop -Caption +ToolWindow +LastFound
Gui, Color, % Color
Gui, Show, x%x% y%y% w%w% h%h% NA
WinSet, ExStyle, % "+" WS_EX_LAYERED|WS_EX_TRANSPARENT
По вопросам возмездной помощи пишите на E-Mail: serzh82saratov@mail.ru Telegram: https://t.me/sergiol982
Win10x64 AhkSpy, Hotkey, ClockGui

3

Re: AHK: Объединение 4 скриптов

serzh82saratov
Большое спасибо!

4

Re: AHK: Объединение 4 скриптов

Ну или так:

Color = 00FB1B
WS_EX_TRANSPARENT := 0x20

for k, v in [ {x: 963, y: 539, w: 114, h: 112}
            , {x: 363, y: 339, w: 114, h: 112}
            , {x: 963, y: 39, w: 114, h: 112}
            , {x: 63, y: 539, w: 114, h: 112} ]
{
   Gui, New, +AlwaysOnTop -Caption +ToolWindow +LastFound +E%WS_EX_TRANSPARENT%
   WinSet, Transparent, 255
   Gui, Color, % Color
   Gui, Show, % "NA x" . v.x . " y" . v.y . " w" . v.w . " h" v.h
}
Разработка AHK-скриптов:
e-mail dfiveg@mail.ru
Telegram jollycoder