ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   Общие вопросы программирования (https://forum.antichat.xyz/forumdisplay.php?f=206)
-   -   Функция из AHK в С++ (https://forum.antichat.xyz/showthread.php?t=1450946)

Antonio_Demorgan 19.09.2022 20:57

Какие есть варианты перенести вот эти функции из ahk на с++?

AutoHotKey:





Код:

NumpadAdd
:
:
FileRead
,
Str
,
%chatlog%
StringReplace
,
Str
,
Str
,
`r`n
,
`n
,
1
StringReplace
,
Str
,
Str
,
`r
,
`n
,
1
RegExMatch
(
"`n"
Str
"`n"
,
"\[\d\d:\d\d:\d\d\] .*\[(\d\d?\d?\d?)\] : .*"
,
match
)
SendMessage
,
0x50
,
,
0x4190419
,
,
A
SendInput
,
{
F6
}
/
pm
%match1%
|
Приятной игры
Return



и как сделать вот такие короткие команды из ahk в с++

AutoHotKey:





Код:

:
?
:
шт
1
:
:
/
mytickets
-
список штрафов


F0RQU1N and 20.09.2022 08:18

std::basic_string::replace - cppreference.com

Regular expressions library (since C++11) - cppreference.com


Время: 21:54