Help with stitching these lines

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Wallteliru
Posts: 1
Joined: 13 May 2021, 10:53

Help with stitching these lines

13 May 2021, 11:03

I have simple code and I would like these lines to be saved
These lines: Gui Add, Edit, x237 y110 w238 h21 vBeyd , [Структура | Отдел | Номер | Инициалы]
Gui Add, Edit, x237 y75 w238 h21 vJet , Жетон/бейджик
Gui Add, Edit, x237 y140 w238 h21 vFK, Фракция
Here is the code itself:

Code: Select all

; Generated by AutoGUI 2.5.9
#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1

Gui Add, Button, x27 y108 w80 h23, Бейджик
Gui Add, Button, x138 y109 w80 h23, To
Gui Add, Edit, x237 y110 w238 h21 vBeyd , [Структура | Отдел | Номер | Инициалы]
Gui Add, Button, x-5 y170 w547 h23
Gui Add, Button, x8 y200 w120 h21 v1, Numpad 1
Gui Add, Button, x148 y200 w80 h23, To
Gui Add, Button, x252 y200 w223 h23, Экшен-Камера
Gui Add, Button, x8 y240 w120 h21 v2, alt+Numpad 1
Gui Add, Button, x150 y239 w80 h23, To
Gui Add, Button, x252 y238 w223 h23, Отыгровка Часов
Gui Add, Button, x9 y275 w120 h21 v3, ctrl+Numpad 1
Gui Add, Button, x152 y275 w80 h23, To
Gui Add, Button, x254 y277 w220 h23, Ремни безопасности
Gui Add, Button, x9 y314 w120 h21 v4, Numpad 2
Gui Add, Button, x152 y314 w80 h23, To
Gui Add, Button, x254 y315 w218 h23, Миранда
Gui Add, Button, x10 y352 w120 h21 v5, alt+Numpad 2
Gui Add, Button, x153 y350 w80 h23, To
Gui Add, Button, x256 y349 w217 h23, Бейджик
Gui Add, Button, x10 y390 w120 h21 v6, ctrl+Numpad 2
Gui Add, Button, x152 y388 w80 h23, To
Gui Add, Button, x257 y387 w216 h23, 17.1+12.8
Gui Add, Text, x3 y0 w479 h73 +0x200  +E0x200, % "                                                            Сделано Micky Light"
Gui, Add, Button, x100 y500 w300 h30 g123, Перезагрузка
Gui Add, Edit, x237 y75 w238 h21 vJet , Жетон/бейджик
Gui Add, Button, x27 y75 w80 h23, Бейджик
Gui Add, Button, x138 y75 w80 h23, To
Gui Add, Button, x27 y140 w80 h23, Мегафон
Gui Add, Button, x138 y140 w80 h23, To
Gui Add, Edit, x237 y140 w238 h21 vFK, Фракция
Gui Add, Button, x10 y430 w120 h23, Numpad 3
Gui Add, Button, x153 y430 w80 h23, To
Gui Add, Button, x254 y430 w220 h23, Мегафон



Gui Show, w493 h537, Binder by Micky Light
Return

GuiEscape:
GuiClose:
    ExitApp

false:
IniWrite, Key, %ini%, Hotkeys, Key1
goto true

true:
IniRead, Firsted, %ini%, Hotkeys, Key1

vBeyd = %Beyd%

123:
IniWrite, %Firsted%, %ini%, Hotkeys, Key1
Gui, submit, NoHide
Reload
return

vJet = %Jet% 

vFK = %fk%


Numpad1::
{
	SendMessage, 0x50,, 0x4190419,, A
	Sendinput, {t}
	Sleep 500
	Sendinput, /do На груди Экшн-камера.{enter}
	Sleep 1000
	Sendinput, {t}
	Sleep 500
	Sendinput, /me наклонил руку к экшен-камере, нажал на кнопку "Power"{Enter}
	Sleep 1000
	Sendinput, {t}
	Sleep 500
	Sendinput, /do Экшн-камера снимает на SD-карту.{Enter}
	return
}

!Numpad1::
{
	SendMessage, 0x50,, 0x4190419,, A
	Sendinput,{t}
	Sleep 500
	Sendinput, /do Под пальто находятся часы.{enter}
	Sleep 1000
	Sendinput, {t}
	Sleep 500
	Sendinput, /me закатал рукова{enter}
	Sleep 1000
	Sendinput, {t}
	Sleep 500
	Sendinput /me после посмотрел на фирменные часы марки "Rolex"{enter}
	Sleep 1000
	Sendinput, {t}
	Sleep 500
	Sendinput, /do Часы показывают %A_Hour%:%A_Min%:%A_Sec%.{enter}
	return
}

^Numpad1::
{
	SendMessage, 0x50,, 0x4190419,, A
	Sendinput, {t}
	Sleep 500
	Sendinput, /do Сработали ремни безопасности никто не постродал.{enter}
	return
}

Numpad2::
{
	SendMessage, 0x50,, 0x4190419,, A
	Sendinput, {t}
	Sleep 500
	Sendinput, Вы имеете право хранить молчание. Всё, что вы скажете, может и будет использовано против Вас.{enter}
	Sleep 1000
	Sendinput, {t]
	Sleep 500
	Sendinput, Вы имеете право на один телефонный звонок. Также Вы имеете право на адвоката.{enter}
	Sendinput, {t]
	Sleep 500
	Sendinput,  Если вам необходим адвокат, он будет для Вас запрошен. Вы понимаете свои права?{enter}
	return
}	

!Numpad2::
{
	GuiControlGet, Beyd
	GuiControlGet, Jet
	SendMessage, 0x50,, 0x4190419,, A
	Sendinput, {t]
	Sleep 500
	Sendinput, /do На груди %Jet%: %Beyd%{enter}
	return
}

^Numpad2::
{
	SendMessage, 0x50,, 0x4190419,, A
	Sendinput, {t}
	Sleep 500
	Sendinput, Вы задержаны по статье 12.8, 17.1 А точнее{enter}
	Sleep 1000
	Sendinput, {t}
	Sleep 500
	Sendinput, Незаконные приобретение, передача, сбыт, хранение, перевозка, ношение или использование любых видов оружия, спец. средств и боеприпасов,{enter}
	Sleep 1000
	Sendinput, {t]
	Sleep 500
	Sendinput, и Посягательство на жизнь сотрудника правоохранительного органа, военнослужащего, а равно их близких в связи с исполнением им своих должностных обязанностей либо из мести за такую деятельность.{enter}
	return
}

Numpad3::
{
	GuiControlGet, FK
	SendMessage, 0x50,, 0x4190419,, A
	Sendinput, {t}
	Sleep 500
	Sendinput, /m Остановите свое транспортное средство! Или мы откроем огонь по колесам, это приказ %fk%!
	return
}



























User avatar
mikeyww
Posts: 26889
Joined: 09 Sep 2014, 18:38

Re: Help with stitching these lines

13 May 2021, 12:54

Have you defined %ini%?

The variables to write to your INI file would be those same ones, denoted by vvarname.

Return (and also Reload) ends the routine (or immediately stops the script & restarts it), so commands that immediately follow this, outside a hotkey or labeled subroutine, cannot execute.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 327 guests