Search found 28 matches
- 01 Apr 2024, 10:23
- Forum: Scripts and Functions (v2)
- Topic: Library for accessing the Windows Explorer
- Replies: 3
- Views: 647
Re: Library for accessing the Windows Explorer
I haven't completely checked TheCrether 's code, but I am using these two functions to carry out a lot of tasks in the file explorer of Windows 10. Explorer_GetSelection() Description: Returns the currently selected items [folder(s)/file(s)] in the file explorer. (I don't know whether it works on Wi...
- 31 Mar 2024, 04:12
- Forum: Scripts and Functions (v2)
- Topic: System Theme Aware ToolTip (Dark/ Light Mode)
- Replies: 6
- Views: 517
- 30 Mar 2024, 07:16
- Forum: Scripts and Functions (v2)
- Topic: System Theme Aware ToolTip (Dark/ Light Mode)
- Replies: 6
- Views: 517
Re: System Theme Aware ToolTip
I compared how ToolTipEx and ToolTipX performed and found out that the former causes delays when called repeatedly, while the latter immediately updates the tooltip text, although the timeout is affected (it is not reset and gets reduced). Can you look into this? Here's a script in which I am using ...
- 28 Mar 2024, 02:04
- Forum: Ask for Help (v2)
- Topic: A script which detects Text Area irrespective of editor/type of window?
- Replies: 1
- Views: 278
A script which detects Text Area irrespective of editor/type of window?
Hi all. Is there a general script/library/function that is able to detect when the user has focus on a text edit field/area (such as the one I am typing this post into, or browser URL bar, or Notepad, etc.)? I found this post which most probably worked for v1: https://www.autohotkey.com/boards/viewt...
- 27 Mar 2024, 09:12
- Forum: Ask for Help (v2)
- Topic: Long-press Function keys to control Media buttons Topic is solved
- Replies: 3
- Views: 149
Re: Long-press Function keys to control Media buttons Topic is solved
You might want to have an unconditional KeyWait at the end of your function. Wow, that did it. Haha. This forum has oodles of tap-hold scripts in case any of them give you additional tips! Thanks, I found out about TapHoldManager . Do you reckon if any other script/library is better than this one?
- 27 Mar 2024, 07:41
- Forum: Ask for Help (v2)
- Topic: Long-press Function keys to control Media buttons Topic is solved
- Replies: 3
- Views: 149
Long-press Function keys to control Media buttons Topic is solved
Hi, I've made a function that can perform two tasks. One is when the Hotkey is pressed for a short duration (0.2 second in this case). The other is when it is pressed for more than this duration. #requires AutoHotkey v2.0 #singleInstance force persistent $F1:: longPress("{Volume_Mute}") $F3:: longPr...
- 27 Mar 2024, 05:53
- Forum: Scripts and Functions (v2)
- Topic: Acc v2
- Replies: 54
- Views: 14240
Re: Acc v2
I am facing this error while using Acc v2 library. image.png I have placed Acc.ahk in the Lib folder where the script is placed. image.png What am I doing wrong? Here's the code: #requires AutoHotkey v2.0 #include <Acc> #HotIf winActive("WhatsApp ahk_exe ApplicationFrameHost.exe") ; WHATSAPP ^e:: { ...
- 26 Mar 2024, 03:31
- Forum: Scripts and Functions (v2)
- Topic: System Theme Aware ToolTip (Dark/ Light Mode)
- Replies: 6
- Views: 517
- 26 Mar 2024, 00:56
- Forum: Scripts and Functions (v2)
- Topic: System Theme Aware ToolTip (Dark/ Light Mode)
- Replies: 6
- Views: 517
Re: System Theme Aware ToolTip
Nice script as always @NPerovic!
I am using ToolTipX script as a library. I found it here: viewtopic.php?p=515335#p515335.
Can you incorporate the system-aware feature in that as well?
Much appreciated.
Edit: Btw, I followed you on Github.
I am using ToolTipX script as a library. I found it here: viewtopic.php?p=515335#p515335.
Can you incorporate the system-aware feature in that as well?
Much appreciated.
Edit: Btw, I followed you on Github.
- 24 Mar 2024, 02:03
- Forum: Ask for Help (v1)
- Topic: Text Area Detect
- Replies: 8
- Views: 3148
Re: Text Area Detect. Solutionfor AHK v2?
Hi A_AhkUser , I converted your script to v2 using the QuickConverter tool. However, it is not working for me. Can you tweak the code please? I'd really appreciate it. ; REMOVED: #NoEnv #SingleInstance force #Warn i := 0 #HotIf not (caretViaAcc()) e:: { global i ToolTip(++i) } #HotIf caretViaAcc() {...
- 08 Dec 2021, 02:32
- Forum: Ask for Help (v1)
- Topic: Long-press '1' to send '!' - Issues
- Replies: 5
- Views: 1454
Re: Long-press '1' to send '!' - Issues
Thanks for the reply. I got busy and couldn't reply earlier. I ended up doing this: keyWait %key% , D send {%key%} keyWait %key% , T%timeout% if ErrorLevel send {Backspace}{%secondary%} key can be any digit (0 to 9), secondary is their respective 'Shift' usages (0: ) , 1: ! , .... , 9: ( , etc.). ti...
- 22 Oct 2021, 02:27
- Forum: Ask for Help (v1)
- Topic: Long-press '1' to send '!' - Issues
- Replies: 5
- Views: 1454
Long-press '1' to send '!' - Issues
This code sends '1' when I press and hold the '1' key for less than 0.3 seconds, and '!' if held for more than 0.3 s. $1:: keyWait 1 , T0.3 if !ErrorLevel send {1} else send {!} keyWait 1 return This works as expected. However, if I press any other key in a quick succession after a short-press '1', ...
- 07 Oct 2021, 11:36
- Forum: Ask for Help (v1)
- Topic: Auto-Enable Dark Mode for apps via Registry
- Replies: 1
- Views: 181
Auto-Enable Dark Mode for apps via Registry
Hi, I made this script to auto-enable Dark mode for MS Word using a simple click on the entry in the Tray menu. #persistent menu tray , NoStandard menu tray , add , Dark Mode , ToggleDarkMode iniRead darkModeEnabled , Settings.ini , Settings , darkModeEnabledEntry ToggleDarkMode: if !darkModeEnabled...
- 06 Oct 2021, 05:01
- Forum: Ask for Help (v1)
- Topic: Long-press Function keys to control Media buttons Topic is solved
- Replies: 3
- Views: 925
Re: Long-press Function keys to control Media buttons Topic is solved
Thanks @Rohwedder. I had to add '$' modifier to the 'F1' key in the first line. Then it worked perfectly fine.
Final script is:
Final script is:
Code: Select all
$F1::
keyWait F1, T0.2
if !ErrorLevel
send {F1}
else send {volume_mute}
keyWait F1
return
- 06 Oct 2021, 01:58
- Forum: Ask for Help (v1)
- Topic: Long-press Function keys to control Media buttons Topic is solved
- Replies: 3
- Views: 925
Long-press Function keys to control Media buttons Topic is solved
Hi, Some of the function keys on my laptop keyboard support dual functions. The F1 key also serves as mute button when pressed along with the Fn key. I want to make it a hotkey so that a short-press causes it to behave normally, while a long-press (longer than 200 ms) causes the Mute functionality. ...
- 03 Oct 2021, 06:39
- Forum: Ask for Help (v1)
- Topic: Mute video calls in Skype by pressing 'M' key Topic is solved
- Replies: 1
- Views: 223
Mute video calls in Skype by pressing 'M' key Topic is solved
I have written this script to Mute video calls in Skype by pressing 'M' key (By sending Ctrl+M). To not trigger the hotkey when I am typing in the chat window and need to use the letter 'M', I came up with this workaround: Getting information from the cursor type. But of course, it works only when I...
- 06 May 2019, 07:30
- Forum: Ask for Help (v1)
- Topic: Double-clicking Desktop in specific areas to launch specific programs. Topic is solved
- Replies: 5
- Views: 1294
- 04 May 2019, 00:51
- Forum: Ask for Help (v1)
- Topic: Double-clicking Desktop in specific areas to launch specific programs. Topic is solved
- Replies: 5
- Views: 1294
Double-clicking Desktop in specific areas to launch specific programs. Topic is solved
I always keep my desktop empty so that it looks aesthetically pleasing. I want to write a script which detects double-clicks on the Desktop and launches program tied to that area of click. For example, when the x-coordinate is between 0 to 100, and y-coordinate is between 0 to 50, it should launch W...
- 24 Mar 2019, 13:22
- Forum: Ask for Help (v1)
- Topic: Using Delete key to end process in Chrome Task Manager Topic is solved
- Replies: 3
- Views: 830
Re: Using Delete key to end process in Chrome Task Manager Topic is solved
Thanks but this did not work. Sorry.
This worked. Thanks!gregster wrote: ↑24 Mar 2019, 07:45I assume, Task Manager - Google Chrome is meant as a literal string - you will have to wrap it into quotation marks in an expression.
- 24 Mar 2019, 05:25
- Forum: Ask for Help (v1)
- Topic: Using Delete key to end process in Chrome Task Manager Topic is solved
- Replies: 3
- Views: 830
Using Delete key to end process in Chrome Task Manager Topic is solved
Hi everyone. I want to use the Delete key to end a process in the Task Manager in Chrome. Both, the Task Manager and normal Google Chrome windows, have the same ahk_class (Chrome_WidgetWin_1), ahk_exe (chrome.exe) and ahk_pid (12080). So to differentiate between them I made use of WinTitle. Here is ...