Search found 5237 matches
- 28 Feb 2021, 10:43
- Forum: Ask For Help
- Topic: countdown reset Topic is solved
- Replies: 6
- Views: 141
Re: countdown reset Topic is solved
$NumLock:: SetTimer, Off, -15000 Send % (running ? "^" : "") "{" SubStr(A_ThisHotkey, 2) "}" running := True countdown(60) Return Off: SoundBeep, 1000, 30 running := False Return countdown(n) { Global sec := n Gosub, Count SetTimer, Count, 1000 Return Count: Progress, zh0 x400 y200 b w60 fs25 ct000...
- 28 Feb 2021, 10:15
- Forum: Ask For Help
- Topic: is possible especify a MsgBox to IfMsgBox?
- Replies: 1
- Views: 46
Re: is possible especify a MsgBox to IfMsgBox?
Code: Select all
MsgBox, 36, Q1, Are you Jim?
IfMsgBox, Yes
jim := True
MsgBox, 36, Q2, Are you Jane?
IfMsgBox, Yes
jane := True
If jim
MsgBox, Thanks, Jim!
- 28 Feb 2021, 10:12
- Forum: Ask For Help
- Topic: Ctrl+V key spam when Ctrl is side mouse button
- Replies: 7
- Views: 149
Re: Ctrl+V key spam when Ctrl is side mouse button
You don't need an AHK script for this. You press your button and then hold v. The "How to send" should be "During".
- 28 Feb 2021, 09:20
- Forum: Ask For Help
- Topic: Problems with encoding Topic is solved
- Replies: 4
- Views: 104
Re: Problems with encoding Topic is solved
url = http://linguistic-annotation-tool.italianlp.it/documents/details/3064436?format=json (WinHTTP := ComObjCreate("WinHTTP.WinHttpRequest.5.1")).Open("GET", url), WinHTTP.Send() MsgBox % result := BinArr_ToString(WinHTTP.ResponseBody, "UTF-8") ; FileOpen("result.txt", "w", "UTF-8").Write(result) ...
- 28 Feb 2021, 08:51
- Forum: Ask For Help
- Topic: Possible transposing a Registry backup command from BAT to AHK? Topic is solved
- Replies: 2
- Views: 63
Re: Possible transposing a Registry backup command from BAT to AHK? Topic is solved
Code: Select all
key = HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\General
out = %A_ScriptDir%\backup.reg
FileRecycle, %out%
RunWait, %A_WinDir%\System32\reg.exe export "%key%" "%out%,, HIDE
Run, %A_WinDir%\System32\notepad.exe "%out%"
- 28 Feb 2021, 07:12
- Forum: Ask For Help
- Topic: Volume of only focused application
- Replies: 1
- Views: 32
Re: Volume of only focused application
If you search the forum for "application volume", you will find examples.
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=35241
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=35241
- 28 Feb 2021, 07:08
- Forum: Ask For Help
- Topic: Problems with encoding Topic is solved
- Replies: 4
- Views: 104
- 28 Feb 2021, 06:52
- Forum: Ask For Help
- Topic: Do not end the loop
- Replies: 3
- Views: 90
Re: Do not end the loop
Yes. You can place this at the bottom of your script.
- 28 Feb 2021, 06:36
- Forum: Ask For Help
- Topic: Makro for changing numeric values in a file
- Replies: 3
- Views: 77
Re: Makro for changing numeric values in a file
Fair enough.
Code: Select all
change(str, key, incr) {
While pos := RegExMatch(str, """" key """:\s*\K\d+", num, pos ? pos + 1 : 1)
str := RegExReplace(str, num, num + incr,, 1, pos)
Return str
}
- 28 Feb 2021, 06:00
- Forum: Ask For Help
- Topic: Shift+number results in Shift key getting stuck sometimes
- Replies: 2
- Views: 41
Re: Shift+number results in Shift key getting stuck sometimes
Other software sometimes conflicts. You could Send {Shift up} as the first command. Add ClipWait to allow sufficient time for the clipboard to be populated. +1:: Send {Shift up}^v{BackSpace}1^a Clipboard = Send ^c ClipWait, 0 If ErrorLevel MsgBox, 48, Error, An error occurred while waiting for the c...
- 28 Feb 2021, 05:58
- Forum: Ask For Help
- Topic: Several Progress Bars in One Line
- Replies: 4
- Views: 110
Re: Several Progress Bars in One Line
You could probably simulate it by overlaying a blank text control or additional progress bar at each appropriate position.
- 28 Feb 2021, 05:56
- Forum: Ask For Help
- Topic: print from other than default app
- Replies: 2
- Views: 47
Re: print from other than default app
These programs tend to have command-line capabilities that would allow you to use the program's command line with RunWait. An example is cited below.
https://stackoverflow.com/questions/2749144/how-can-i-print-a-file-from-the-command-line
https://stackoverflow.com/questions/2749144/how-can-i-print-a-file-from-the-command-line
- 28 Feb 2021, 05:45
- Forum: Ask For Help
- Topic: Is there a way for "Loop" to jump to the previous "A_index"? Topic is solved
- Replies: 1
- Views: 58
Re: Is there a way for "Loop" to jump to the previous "A_index"? Topic is solved
Code: Select all
list =
(
a
b
c
)
item := StrSplit(list, "`n"), imageLoop := 0
While (++imageLoop <= item.Count())
MsgBox, % item[imageLoop]
k::imageLoop := Max(0, imageLoop - 1)
- 27 Feb 2021, 20:56
- Forum: Ask For Help
- Topic: Do not end the loop
- Replies: 3
- Views: 90
- 27 Feb 2021, 20:50
- Forum: Ask For Help
- Topic: Weird Problem: Notepad++ Pastes Text after "Reload This Script"
- Replies: 1
- Views: 50
Re: Weird Problem: Notepad++ Pastes Text after "Reload This Script"
Those lines are comments rather than commands. Feel free to post your script for feedback.
Interesting: there is another recent post about a mysterious Notepad++ issue resembling auto-complete or line duplication.
https://www.autohotkey.com/boards/viewtopic.php?p=384439#p384439
Interesting: there is another recent post about a mysterious Notepad++ issue resembling auto-complete or line duplication.
https://www.autohotkey.com/boards/viewtopic.php?p=384439#p384439
- 27 Feb 2021, 19:21
- Forum: Gaming
- Topic: Help me get started with macro for mobile game OPTC
- Replies: 1
- Views: 41
- 27 Feb 2021, 19:18
- Forum: Gaming
- Topic: Left+ Right Click Script
- Replies: 2
- Views: 50
Re: Left+ Right Click Script
Code: Select all
Loop {
Click, right, down
Sleep, 10000
Click, right, up
Click
Click
}
- 27 Feb 2021, 17:51
- Forum: Ask For Help
- Topic: Is there a way to jump from window to window?
- Replies: 1
- Views: 64
Re: Is there a way to jump from window to window?
F1:: WinWaitActive, ahk_class MozillaWindowClass Click, 631, 458 Return This waits for a window to become active. To activate an existing window, use WinActivate instead . To wait for a window to exist, use WinWait . The #If directive is not a command. See documentation for details. Window titles e...
- 27 Feb 2021, 17:37
- Forum: Ask For Help
- Topic: Makro for changing numeric values in a file
- Replies: 3
- Views: 77
Re: Makro for changing numeric values in a file
dir = %A_ScriptDir% source = %dir%\test.txt target = %dir%\test-new.txt FileRead, ttext, %source% ttext := change(ttext, "x", 20) ttext := change(ttext, "y", -20) ttext := change(ttext, "fv", 4) ttext := change(ttext, "z", 90) FileRecycle, %target% FileAppend, %ttext%, %target% Run, %target% change...
- 27 Feb 2021, 17:01
- Forum: Ask For Help
- Topic: Get value of a progress bar
- Replies: 6
- Views: 160