Questions tagged [autohotkey]

AutoHotkey (AHK) is a free, open-source macro-creation and automation software for Microsoft Windows that allows users to automate repetitive tasks. It is driven by a scripting language that was initially aimed at providing keyboard shortcuts, otherwise known as hotkeys, that over time evolved into a full-fledged scripting language.

Filter by
Sorted by
Tagged with
1
vote
1answer
145 views

WM_NCHITTEST and Detecting the Title bar of a Window

I am relatively new to the world of programming. I've been using AutoHotkey a lot and came accross a code using WM_NCHITTEST. The code below: When the mouse cursor is above a window Title Bar, Right ...
2
votes
1answer
56 views

How can I scroll efficiently horizontally Microsoft Paint? (Autohotkey maybe)

I just want to use Paint for a whiteboard style sketching on math problems etc. And I really need a way to navigate efficiently on the page. Maybe even like: hold space + move mouse, to grab the page ...
0
votes
2answers
83 views

Prevent locking for thin client

I'm using Dell Thin Client at work. My employer forces the computer to lock if there is no action for 10 minutes. Can I prevent this? I cannot change the lock screen setting since it is managed by IT ...
0
votes
0answers
11 views

Autohotkey, combing two keys into one key?

I am trying to combine two keys into one key. For example, a single hold of A, holds down A but a double tap and hold of A holds 1 key. Dont reccommend Tapholdmanager please. Below is what I so far ...
0
votes
1answer
30 views

How to add default extensions with the Notepad++ Run… feature?

I regularly use notepad++ for editing my AutoHotkey scripts. I like to use the notepad++>Run feature to test them and validate them. It works good but here's what would take it to the next level -- ...
0
votes
1answer
3k views

how to control copy and paste from excel sheet using autohotkey?

I am copying and pasting some data from ms excel sheet to some other program using the following autohotkey script: f1:: loop 2000 { Send, {CTRLDOWN}c{CTRLUP} sleep 100 send {ALTDOWN}{TAB}{ALTUP} ...
7
votes
2answers
3k views

Windows virtual desktops. Cycle back to first desktop at end

Let's say I have three virtual desktops. I know I can navigate through them using: ctrl + windows + left | right However, is there a way to make it cycle back through to the beginning if I reach the ...
0
votes
0answers
11 views

Autohotkey Tap and Hold with TapHoldManager library

In the example below, I am trying get a tap to send A and a hold to hold down CTRL+A . but as soon as I activate hold and release the key. CTRL remains stuck down and cant do anything until I ...
0
votes
2answers
1k views

In PotPlayer is there a way to move OR copy the current playing file to another directory (besides trash)? Or any way with AutoHotKey or similar?

When reviewing multiple video files for Video Editing, and library mgmt, PotPlayer ticks many boxes for fast reviewing, but can't find this. Thought i'd reach out here for anything I might have ...
1
vote
1answer
126 views

Reconfigure Razer Orbweaver without Synapse 2.0

Is there a way how one can remap the Orbweaver's buttons to other keyboard functions, or even macros without using the Razer Synapse 2.0 Software, if the device, in this case the Orbweaver, is not ...
1
vote
1answer
277 views

Open TCP/IPv4 properties with Autohotkey

I have the following Autohotkey mapping to attempt to open the Open TCP/IPv4 properties: #w:: Run ::{7007acc7-3202-11d1-aad2-00805fc1270e},, max WinWaitActive, Network Connections Send {...
0
votes
1answer
32 views

Issues retaining correct key input functionality of AHK script while trying to make it more effective

What's a good way to reorganize the longer script into a more efficient solution and retain the same functionality? I thought the above solution using a While loop will do, but the input of the keys ...
0
votes
0answers
29 views

Windows 10: how to directly open a specific folder of the task scheduler?

I mostly need to open a custom folder on taks scheduler (which contains my tasks, to edit, disable them...). It's a waste time to have to navigate each time to the right folder. Is it possible to ...
2
votes
2answers
53 views

How to open a new tab on the left in Chrome browser?

Every new link you open with CTRL + mouseclick opens a new tab on the right. However, there are certain situations where it is helpful to open a new tab to the left. Is there any shortcut to achieve ...
0
votes
1answer
66 views

What could've stolen my Dexpot's system-wide(?) hotkeys

I'm using Windows 7 with Dexpot virtual window manager and DexGrid plugin and LOVE it! I had set ALT-CTRL-arrow to switch desktops (and ALT-CTRL-SHIFT-arrow to move active window and switch). This was ...
2
votes
1answer
148 views

How to highlight focussed window using bug.n

I'm using bug.n which is based on autohotkey for my window manager on Windows 10 and want the window with current focus to be obvious by having a coloured border like the top left window in the image ...
1
vote
2answers
47 views

Get Date and Time panel pop up where cursor is?

This window can be dragged around just like any other window.For example, by using winmove. Before that I first have to find the window in question which is where I am stuck. AHK Spy gives me this ...
8
votes
4answers
6k views

Switch Ctrl and Alt with AutoHotKey without messing up the Alt-Tab switcher?

I want to switch the Ctrl and Alt keys in Windows XP. I created an AutoHotKey script that contains the following: LAlt::LCtrl RAlt::RCtrl LCtrl::LAlt RCtrl::RAlt This works, but the only problem ...
0
votes
2answers
58 views

AHK ComObjCreate(“Excel.Application”) invalid class string

I am trying to run Excel via AutoHotKey as every single tutorial suggests by using the COM object through this command ComObjCreate("Excel.Application"). However, it does not get past this command as ...
6
votes
2answers
16k views

How do I disable certain keys using a key in AutoHotkey?

I want the "End" key to block/lock certain keys like a,s,d,i,j,k,l. And when I click "End" again to unblock the same keys (a,s,d,i,j,k,l). How can I do this in Autohotkey? Can someone please tell me ...
0
votes
1answer
31 views

I am trying to trigger Alt tab Widget with SPACE + A

I am trying to trigger Alt tab Widget with SPACE + A but while holding down SPACE key, A and D need to act as directional keys. and lastly exit the Widget when SPACE is released. The problem I am ...
0
votes
1answer
128 views

My multi-clipboard isn't working

I'm interested in having multiple clipboards that are accessable using 3 different hotkeys. (Ideally, (control+1), control+2, control+3 for copying, and alt+1, alt+2, and alt+3 for pasting. First ...
0
votes
3answers
2k views

AutoHotkey scrip for horizontal scrolling in excel not working for graphs

I am using this script for horizontal scrolling using shift + mousewheel for excel: #IfWinActive, ahk_class XLMAIN +WheelDown::ComObjActive("Excel.Application").ActiveWindow.SmallScroll(0,0,3,0) +...
2
votes
2answers
3k views

Writing a Simple AutoHotkey Script (press a key every X second on desktop)

I need to press any useless key (like F11) every 5 minutes or less to keep the windows active (if it became inactive for 5 minutes it will lock-out). But I need the key to be pressed on the desktop (...
0
votes
0answers
12 views

Function that creates multi level menu a cascade

I made this function that has in input one block of test with one structure of menus and submenus and create it. It works good for the pattern 1 and 2 (text1,text2). Can someone makes the function ...
0
votes
0answers
13 views

Calling GetKeyboardLayout before making a request to change keyboard layout doesn't work

I'm trying to conditionally set a keyboard layout on all opened windows in the following way: Calling getKeyboardLayout, and determining what's the current language (English or Russian). Calling ...
1
vote
1answer
34 views

What does a capital A (without an underscore) do in AutoHotKey?

What does a capital A (without an underscore) do in AutoHotKey? For example, the following script (taken from here) changes the current language to Russian, and it uses a capital A: ru := DllCall("...
0
votes
1answer
167 views

Passing the output of GetKeyboardLayout into LoadKeyboardLayout doesn't work

Question Why passing the output of GetKeyboardLayout (after formatting it to hex) into LoadKeyboardLayout doesn't work? The docs for GetKeyboardLayout say (bolded by me): GetKeyboardLayout ...
1
vote
2answers
2k views

How to record keystrokes and/pr mouse clicks with AutoHotKey?

It is claimed, that AutoHotKey can record with macro recorder. Unfortunately, I can't find any word about it in manual. Serfing leads to Pulover's Macro Creator. Is this what it claimed in AHK page --...
-1
votes
1answer
35 views

Shortcut to Close window under mouse cursor

This would be even more useful than a keyboard shortcut. because you can close windows without activating them. Very natural.
1
vote
5answers
2k views

Create a text file with a keyboard shortcut in Windows Explorer

I'm using the solution from How to create a new text document (TXT) file by a Hotkey? since a few years, with Autohotkey, and it allows to create a new text file anywhere in the Windows explorer with ...
0
votes
1answer
99 views

Toggle Windows Explorer ascending/descending by hotkey?

This thread explains how you can bind a hotkey to various sort by options. but I am specifically looking for a way to toggle just the ascending/descending order without changing the ordering method ...
0
votes
1answer
29 views

Capturing special key [Browser_home] to avoid standard behaviour / Win10

Good morning, or afternoon I try to capture a key from a external keyboard that drive me crazy, everytime I "touch" (really sensitive) it opens me a blanc browser window, I think on the last session ...
0
votes
1answer
60 views

Keyboard shortcut and right-click-menu item to ZIP all selected files/folders (with or without password)

I'd like to be able to ZIP all selected files/folders in one keyboard shortcut. How to enable this feature in Windows 7? Currently these are the options: Right-click > 7-Zip > Add to temp.zip Right-...
1
vote
0answers
54 views

Why do Auto Hot Key scripts stop working at some places in my PC?

I looked up on the net for AHK scripts to get ripple effect around my mouse pointer when I clicked. But it stops working sometimes, like it doesn't work on overlay windows or in the start. Though not ...
0
votes
1answer
45 views

Remapping alt+shift, and waiting for an additional keypress

I'm trying to use AutoHotKey to remap left alt+left shift according to the following conditions: If left alt+ left shift are pressed, wait for both to be released. Then, once both released: If the ...
2
votes
1answer
35 views

Outlook and AutoHotkey, how to output Unicode symbols without switching the font?

I have a keyboard binding to output an Unicode RIGHTWARDS ARROW (code 2192) when typing ->: ::->::{U+2192} It works great everywhere (Notepad(++), vscode, ...) except in Outlook (new mail ...
0
votes
1answer
32 views

Selecting text by whole words using mouse click

Is there a way, using AHK or otherwise, to select "only words" and not individual letters, like in Adobe Acrobat Reader? It should be such that even if the mouse pointer begins to select text at the ...
1
vote
1answer
36 views

Adding Ctrl key to autohotkey combination

I have this simple hot key to mute the volume ScrollLock::Send {Volume_Mute} It works but I want to add the Ctrl key so that I have to press Ctrl + ScrollLock to activate {Volume_Mute}. How do you ...
2
votes
1answer
94 views

Bluetooth toggle in Windows through AHK?

I have spent the past two hours trying to turn off Bluetooth by a hotkey or through CMD. This link shares two commands you can use to toggle Bluetooth: net stop bthserv net start bthserv You get ...
0
votes
1answer
94 views

Need some guidance about AHK Text Loop Script

I'm a gamer and mainly play Roblox, I need to set up a script that will open the chatbox by pressing the slash key and then it will say explode all and then the enter key. I've already managed to come ...
1
vote
0answers
27 views

Run issue with Lexikos AHKControl script?

I've been looking for this script, AHKControl by lexikos all over the place. The original release thread is on the old defunct forum, that may be why I cant see any download links there. I found a ...
23
votes
10answers
33k views

Keyboard Shortcut to Swap Mouse Buttons

I use my mouse with both hands and like to switch back and forth for comfort reasons. However, this is made difficult by needing to go through about a zillion layers of menus to swap the buttons each ...
0
votes
1answer
28 views

Key inputs using KeyWait are sent out of order

I am trying to implement Autoshift with AHK Script waits for key release and when certain time elapses the Hotkey sends a shifted character. The problem is that when I type keys very fast inputs are ...
1
vote
1answer
68 views

KeyWait misbehaving when implementing Autoshift

I want to have Autoshift with AHK, I used this scritp: https://superuser.com/a/1396278/47625 ; create an array/object of the keys you want shift: Keys := ["a","b","c","d","e","f","g","h","i","j","k","...
0
votes
1answer
142 views

Need assistance with making a AHK Text spam script

I hope your all doing well! I'm a gamer with little to no knowledge about scripting, in a game I'm trying to make an auto hotkey script that will press the slash key first and then copy-paste the ...
5
votes
1answer
574 views

How can I start the current version of autohotkey?

How can I start the current version of autohotkey? I have used autohotkey on and off for maybe a decade or more.. and they've changed it such that I am now unsure how to start it. I am on Windows 10....
26
votes
2answers
7k views

Is there a way to dismiss notifications using a keyboard shortcut in Windows 10?

I'm talking about the notifications that appear in the bottom right corner and disappear by themselves in a few seconds. However, they sometimes can take up a lot of space and get in the way, which is ...
0
votes
0answers
33 views

Is it possible to have an extra key modifier?

Most windows applications only accept a combination of a key with one regular modifier (Alt, Ctrl, Super and Shift keys). e.g. you cannot define a shortcut as "CapsLock+A". I need the have an extra ...
0
votes
1answer
55 views

Auto hot key AHK script for this logic to save wallpapers from website

I am sure auto hot key handles this but not sure how to do it. Here is the scenario. I have 10 tabs open on Google chrome. In each chrome tab, there is a wallpaper photo that I need to save. This is ...

1
2 3 4 5
24