Search found 411 matches
- Today, 05:33
- Forum: Ask for Help (v2)
- Topic: Runing a script at certain time which involves a string command.
- Replies: 3
- Views: 143
Re: Runing a script at certain time which involves a string command.
I am personally not good at calculating dates, but I managed to write it somehow. I would like to use file time to write it precisely, but it would take too long. The code may have an error of up to 1 second. #Requires AutoHotkey v2.0 #SingleInstance Force persistent scheduleDailyTimer("190000", on...
- Today, 01:13
- Forum: Ask for Help (v2)
- Topic: How to cancel the influence of shift Keys during Shortcut key Mapping
- Replies: 4
- Views: 163
Re: How to cancel the influence of shift Keys during Shortcut key Mapping
sachinme Oops, my mistake. I don't know the exact details either, but based on experience, when something is sent in the Chinese IME state, it is necessary to mask the key again. It is probably because the Send command itself changes the state of the modifier key. I should have tested it before te...
- Yesterday, 23:32
- Forum: Ask for Help (v2)
- Topic: Insert email address
- Replies: 6
- Views: 315
Re: Insert email address
@aybracers
Personally, I don't usually write non-programming-related posts on this forum, but...
I sincerely hope to see you again in good health.
I hope your surgery goes successfully.
Personally, I don't usually write non-programming-related posts on this forum, but...
I sincerely hope to see you again in good health.
I hope your surgery goes successfully.
- Yesterday, 23:00
- Forum: Ask for Help (v2)
- Topic: How to cancel the influence of shift Keys during Shortcut key Mapping
- Replies: 4
- Views: 163
Re: How to cancel the influence of shift Keys during Shortcut key Mapping
This method may not be applicable to all Chinese IMEs, but please give it a try. In Chinese IMEs, the Shift key is primarily used as a toggle key between Chinese and English, but this happens when it is pressed on its own. When used in combination with other keys like Shift + S , the language switc...
- Yesterday, 10:22
- Forum: Ask for Help (v2)
- Topic: Insert email address
- Replies: 6
- Views: 315
Re: Insert email address
Here are the points to investigate: Ensure that the file extension is ahk, not txt. You can create an ahk file by clicking "New Script" in AutoHotkey Dash, or by right-clicking an empty space in File Explorer and selecting "New" and then "AutoHotkey Script." Verify that the file encoding is UTF-8 (...
- Yesterday, 09:57
- Forum: Ask for Help (v2)
- Topic: V1 to V2 -> Drag/Drop file onto AHK script = path/name of file into Var
- Replies: 2
- Views: 122
Re: V1 to V2 -> Drag/Drop file onto AHK script = path/name of file into Var
I couldn't believe my eyes for a moment. This syntax is quite old, even for v1. It was used until version 1.1.27, that is, before 2017. This method was not just specifying the number of times a loop runs, but dynamically referencing the script's command line parameters. Currently, it is common to a...
- 02 Jun 2024, 18:57
- Forum: Ask for Help (v2)
- Topic: Easier Way to Retrieve Hex from Windows Control Library? Topic is solved
- Replies: 5
- Views: 366
Re: Easier Way to Retrieve Hex from Windows Control Library? Topic is solved
Here is how I personally find constant values: Open a C++ console app project in Microsoft Visual Studio. Include the necessary headers. Enter the constant and hover the mouse over it. (Please understand that the screenshot is in Korean.) Of course, I sometimes directly read the header files throug...
- 02 Jun 2024, 18:41
- Forum: Ask for Help (v2)
- Topic: Typedef in AutoHotkey
- Replies: 4
- Views: 379
Re: Typedef in AutoHotkey
Wow, that's amazing!
I learned something new again.
I learned something new again.
- 02 Jun 2024, 12:12
- Forum: Ask for Help (v2)
- Topic: add given no. of seconds to all time stamps Topic is solved
- Replies: 14
- Views: 828
Re: add given no. of seconds to all time stamps Topic is solved
Oh, I didn't know about that. I removed the ClipWait code. Thanks for pointing that out.
- 02 Jun 2024, 12:06
- Forum: Ask for Help (v2)
- Topic: Typedef in AutoHotkey
- Replies: 4
- Views: 379
Re: Typedef in AutoHotkey
I once wanted to handle Win32 API using structures in a way similar to how I used to work with C++. While it was possible to implement something similar using Class meta-functions , personally, I think it's a bit too excessive. Unless you're dealing with structures that you use very frequently, I b...
- 02 Jun 2024, 11:53
- Forum: Ask for Help (v2)
- Topic: add given no. of seconds to all time stamps Topic is solved
- Replies: 14
- Views: 828
Re: add given no. of seconds to all time stamps Topic is solved
#Requires AutoHotkey v2.0 #SingleInstance Force persistent A_Clipboard := " (Join`r`n 你好 - 00:01:00,000 你好 - 00:02:00,000 你好 - 00:03:00,000 你好 - 00:04:00,000 你好 )" msgbox(A_Clipboard) ib := inputBox("Please input the time in seconds to add or subtract.", "Time Adjustment") if (ib.Result == "OK" && ...
- 02 Jun 2024, 11:08
- Forum: Ask for Help (v2)
- Topic: add given no. of seconds to all time stamps Topic is solved
- Replies: 14
- Views: 828
Re: add given no. of seconds to all time stamps Topic is solved
I don't particularly enjoy talking about non-programming topics, but... Certainly, excessive self-deprecation can be off-putting. However, I don't think there's a need to make an issue out of something like this. Hi, noob here. Of course, I understand that what is considered excessive can be subjec...
- 01 Jun 2024, 12:41
- Forum: Ask for Help (v2)
- Topic: switch between windows in a particular location Topic is solved
- Replies: 6
- Views: 492
Re: how to determine if a window is visible on screen? Topic is solved
I'm not sure if this will help, but if you can specify the screen area, the following code might be useful. The example code used mouse coordinates, but try to adapt it with appropriate x and y coordinate values. ; Get the absolute coordinates corresponding to the current mouse position. prevCM := ...
- 31 May 2024, 23:14
- Forum: Ask for Help (v2)
- Topic: AutoHotkey Image Detection Topic is solved
- Replies: 1
- Views: 145
- 31 May 2024, 09:06
- Forum: Ask for Help (v2)
- Topic: HOw many no. of mouse keys does windows allow (without extra changes to software)
- Replies: 2
- Views: 290
Re: HOw many no. of mouse keys does windows allow (without extra changes to software)
If the mouse provides a function to map special keys, the mapped keys can be recognized by AHK. For example, you can set a custom key on the mouse to F6 and detect it as F6 in AHK. If you need to distinguish between the same specific key on a regular keyboard and the mouse, you can use the AHI libr...
- 31 May 2024, 09:01
- Forum: Ask for Help (v2)
- Topic: Easy tutorials for v2 for non-coding person. Topic is solved
- Replies: 12
- Views: 704
Re: Easy tutorials for v2 for non-coding person. Topic is solved
Tutorial
Please refer to this document.
The document will help you learn the basic grammar of version 2.
Please refer to this document.
The document will help you learn the basic grammar of version 2.
- 26 May 2024, 03:31
- Forum: Ask for Help (v2)
- Topic: Holding down shift + space not working
- Replies: 1
- Views: 107
Re: Holding down shift + space not working
If you need to continuously press the Space key, it is essential to minimize the part where the Shift state is sent. The reason is simple. If the Space key is continuously pressed, a signal is generated every about 20ms. If signals for pressing and releasing the Shift key are sent too frequently, i...
- 22 May 2024, 18:26
- Forum: Ask for Help (v2)
- Topic: Moving the Taskbar in Windows 11
- Replies: 2
- Views: 244
Re: Moving the Taskbar in Windows 11
You probably won't be able to do this without editing the registry. Even then, it's only possible up to version 21H2. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3 Starting with Windows 11, the taskbar is programmed using XAML instead of Win32, and for some reason...
- 18 May 2024, 23:57
- Forum: Ask for Help (v2)
- Topic: COM change Language ID in Word
- Replies: 8
- Views: 609
Re: COM change Language ID in Word
I don’t know much about this issue, but I wonder if changing fonts and replacing the period character are related. In Chinese or Japanese, the ideographic full stop 。 is used, corresponding to U+3002 . In contrast, other languages (e.g., English, Korean) use the period . , corresponding to U+002E ....
- 17 May 2024, 14:02
- Forum: Ask for Help (v2)
- Topic: Send the output of program execution to a variable Topic is solved
- Replies: 8
- Views: 617
Re: Send the output of program execution to a variable Topic is solved
#Requires AutoHotkey v2.0 #SingleInstance Force ShellHidden.create() msgbox ShellHidden.ComObj.Exec(A_ComSpec " /c dir C:\").StdOut.ReadAll() class ShellHidden ; ahk2.0 { static _pid := 0 ,_isConsoleAttached := false ,_shell := "" ,_objbmOnApplicationExit:= objBindMethod(this, "_onApplicationExit")...