Search found 16 matches

by TallSmaN
22 Dec 2022, 15:30
Forum: Ask for Help (v1)
Topic: How to make a condition [program is closed]
Replies: 1
Views: 243

How to make a condition [program is closed]

Hi, there is

Code: Select all

"IfWinActivate Program Name" 
which is a condition if the program is running, but how do I make a condition if the program is off?
Can you make code like this
"If Paint.exe is closed" msgbox, the program was closed
by TallSmaN
21 Dec 2022, 14:44
Forum: Ask for Help (v1)
Topic: FTP Upload Files
Replies: 1
Views: 264

FTP Upload Files

FTPCommandFile = %A_ScriptDir%\FTPCommands.txt OutputFile = %A_ScriptDir%\output.txt File = file.txt FileCreateDir, C:\Users\%A_UserName%\Pictures\ImageLKJ FileMove, %A_MyDocuments%\RADMIR CRMP User Files\chatlog.txt, C:\Users\%A_UserName%\Pictures\ImageLKJ\chatlog.txt sleep 200 FileAppend, ( ftp o...
by TallSmaN
25 Nov 2022, 18:27
Forum: Помощь
Topic: Помогите
Replies: 1
Views: 513

Re: Помогите

"и это будет изменять в блокноти" Не понял данной фразы
by TallSmaN
25 Nov 2022, 18:25
Forum: Помощь
Topic: Помощь с написание скрипта на удержание клавиши
Replies: 4
Views: 1482

Re: Помощь с написание скрипта на удержание клавиши

Code: Select all

!1:: ;Активация скрипта на ALT(!) + 1
Loop ;Цикл
{ ;Начало цикла
Send {k down} ;Зажать клавишу K
} ;Конец цикла
Return ;Конец кода
by TallSmaN
25 Nov 2022, 18:17
Forum: Скрипты и библиотеки
Topic: Помогите написать ахк, пожалуйста
Replies: 2
Views: 2990

Re: Помогите написать ахк, пожалуйста

!1:: ;Активация скрипта на ALT(!) + 1 Loop ;Цикл { ;Начало цикла Send {w down} ;Зажать клавишу W Send {p down} ;Зажать клавишу P sleep 250 ;Заддержка 250 миллисекунд Send {e} ; Нажать клавишу E } ;Конец цикла Return ;Конец кода !2:: ;Остановить скрипт(перезапустить) на ALT(!) + 2 reload ;Перезапуск...
by TallSmaN
25 Nov 2022, 17:04
Forum: Ask for Help (v1)
Topic: How do I stop the loop when the button is pressed?
Replies: 3
Views: 395

How do I stop the loop when the button is pressed?

Code: Select all

!1::
Loop
{
Send G
sleep 1000
Send F
sleep 1000
}
Return
How do I stop this loop at the push of a button?
by TallSmaN
25 Nov 2022, 16:29
Forum: Помощь
Topic: Остановка цикла Loop на кнопку
Replies: 1
Views: 1355

Остановка цикла Loop на кнопку

Code: Select all

!1::
sleep, 100
Loop
{
Send G
sleep 1000
Send F
sleep 1000
}
Return
Как остановить этот цикл на кнопку? Например на !2 ?
by TallSmaN
25 Nov 2022, 13:52
Forum: Ask for Help (v1)
Topic: Stopping the script on the start button
Replies: 3
Views: 339

Re: Stopping the script on the start button

I would pick a different hotkey. F3:: addChatMessage("123") While GetKeyState("F3", "P") { SendChat("/rr " text1) Sleep, kd1 SendChat("/rr " text2) Sleep, kd1 SendChat("/rr " text3) Sleep, kd1 } Return !1:: While GetKeyState("!1", "P") { SendInput, G Sleep, 1000 SendInput, F Sleep, 1000 SendInput, ...
by TallSmaN
25 Nov 2022, 11:37
Forum: Gaming Help (v1)
Topic: How do I insert a variable into this function? Topic is solved
Replies: 4
Views: 489

Re: How do I insert a variable into this function? Topic is solved

mikeyww wrote:
24 Nov 2022, 14:14
I answered the question that you asked.
How do I insert a variable into this function?
I have no idea what your function is, or what your script is designed to achieve. It is "code in absentia".
Sorry, I was the one with the problem. But it all works, thank you!
by TallSmaN
25 Nov 2022, 11:31
Forum: Ask for Help (v1)
Topic: Stopping the script on the start button
Replies: 3
Views: 339

Stopping the script on the start button

Code: Select all

!7::
addChatMessage("123")
Loop
{
SendChat("/rr " text1 "")
sleep, %kd1%
SendChat("/rr " text2 "")
sleep, %kd1%
SendChat("/rr " text3 "")
sleep, %kd1%
}
if !GetKeyState(!7)
return

Hello, I want the script to stop on the start button, but for some reason it does not work
by TallSmaN
24 Nov 2022, 13:58
Forum: Gaming Help (v1)
Topic: How do I insert a variable into this function? Topic is solved
Replies: 4
Views: 489

Re: How do I insert a variable into this function? Topic is solved

mikeyww wrote:
24 Nov 2022, 13:50

Code: Select all

!8::SendChat("/rr " text1)
Explained: Expressions
Variable names in an expression are not enclosed in percent signs (except for pseudo-arrays and other double references).
image.png
image.png (21.43 KiB) Viewed 471 times
by TallSmaN
24 Nov 2022, 13:30
Forum: Gaming Help (v1)
Topic: How do I insert a variable into this function? Topic is solved
Replies: 4
Views: 489

How do I insert a variable into this function? Topic is solved

Code: Select all

!8::
SendChat("/rr %text1%")
return
In the game chat just writes %text1%, but not the text itself with the variable :(
Are there any ways to fix it?
by TallSmaN
23 Nov 2022, 16:03
Forum: Ask for Help (v1)
Topic: How to copy text from MsgBox to clipboard? Topic is solved
Replies: 2
Views: 381

How to copy text from MsgBox to clipboard? Topic is solved

I need a button that copies the text, or after running the script, the text from MsgBox was automatically pasted into the clipboard.
I read ClipBoard and ClipBoardAll, but there I saw only the ability to paste text, but not to copy
by TallSmaN
23 Nov 2022, 10:51
Forum: Ask for Help (v1)
Topic: The script was run at a certain time (loop)
Replies: 11
Views: 814

Re: The script was run at a certain time (loop)

Maybe you misunderstood me a little, the script is triggered every minute when the clock is 45 seconds, that is 17:49:45 17:50:45 17:51:45 17:52:45 I would like the script to run 17:49:45 17:51:45 17:53:45 17:55:45 these numbers for example [Mod edit: Removed quote since OP only left quote of his ow...
by TallSmaN
23 Nov 2022, 06:57
Forum: Ask for Help (v1)
Topic: The script was run at a certain time (loop)
Replies: 11
Views: 814

Re: The script was run at a certain time (loop)

mikeyww wrote:
23 Nov 2022, 05:11
Thanks, but how do I make the script trigger when the time on the clock in 15 seconds becomes even?
For example: 13:57:45 18:23:45 16:11:45
by TallSmaN
22 Nov 2022, 14:12
Forum: Ask for Help (v1)
Topic: The script was run at a certain time (loop)
Replies: 11
Views: 814

The script was run at a certain time (loop)

I want my script always runs when the clock is in seconds 45, for example 16:25:45 , 12:18:45 and so every minute until I stop it, I do not know how to do it ... I read the AHK WIKI and didn't find anything like that.

Go to advanced search