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
0
votes
0answers
22 views

Autohotkey Alt+Letter doesn't work

My problem is quite simple. Here's my ahk script below RCtrl::RWin RWin::RCtrl LCtrl::LWin LWin::LCtrl ; script below is in question ================ Alt::CapsLock CapsLock::Alt ; hotkeys below do ...
0
votes
0answers
28 views

How can I get language code for Vietnamese Telex?

How can I get language code for Vietnamese Telex? I tried this site but it(0x042A) is wrong for Vietnamese Telex. I'm using windows 10 version 1909 (OS Build 18363.1198).
1
vote
1answer
457 views

How to remap a key on my keyboard depending on whether it was quickly pressed or held down for a second or more?

I got myself a new keyboard (Keychron K6), and long story short, I'd like to have my Esc key only be mapped to Esc when I hold it for a second. If I just tap it like a normal keystroke, I need to have ...
0
votes
1answer
635 views

Autohotkey: Find and focus windows by name accross virtual desktops

I'd like an ahk script to find and focus running windows across virtual desktops on Windows 10. I found one earlier but alas forgot where it's from, maybe someone here knows. I think it was to help ...
1
vote
0answers
53 views

AHK Window Control - Resize: What determines the +12px maximum window size past screen bounds, and can it be circumvented?

Exactly as the title says, my question is: what determines the +12px limit (past screen bounds) for maximum window sizing? And can this be circumvented to increase window size to any arbitrary size ...
1
vote
0answers
67 views

Autohotkey - Wish to map: Right Shift to emulate holding down Right Mouse Button plus Left Shift

I have not used autohotkey before and I seem to be able to half way to where I want, but not the whole way. I have looked through 300 posts on this forum and trawled through the AHK help pages but I'...
1
vote
1answer
174 views

Can AppleScript detect if a text entry field is active/focused within an active application?

I have a number of shortcuts that I am using via QuicKeys and AppleScript to perform various functions in a focused application. Certain shortcuts, such as individual alphanumeric keys and the ...
0
votes
1answer
20 views

How to send the value of a windows environment variable?

I have a function like this: Seep(toSend){ Send, %toSend% Sleep, 1000 } I use it like this: Seep("Typing a new line{Enter}") I want to send the value of a windows environment variable ...
0
votes
1answer
77 views

How do I configure AutoHotKey to use mouse for shortcut?

I am trying to create a script that will change desktops based on the following: When I hold down the right mouse button (i.e right click) and then use the scroll wheel. Scrolling up should go to left ...
1
vote
1answer
107 views

Windows 10 hotkey (keyboard shortcut) for switching between speakers [duplicate]

Many times per day I need to switch between different speakers, which I do using my mouse in these 3 clicks as shown here: I would much prefer if I could press a certain key or combination of keys on ...
0
votes
1answer
154 views

Remap keys in the keyboard for a specific language only in Windows 10

I wonder how can I remap keys in the keyboard for a specific language only in Windows 10? I'm using three languages in my OS: English, Hebrew, and Syriac. The problem is that the Syriac layout in ...
0
votes
0answers
39 views

How to trigger Windows 10's battery saver when lid's closed or after a certain time

I was wondering if it would be possible to turn on the Windows 10's battery saver (the one you can enable when clicking the battery icon on the taskbar) when the lid is closed (also locking the PC) or ...
0
votes
0answers
161 views

How to auto center a window on Windows 10 with AHK or another solution?

I want to be able to auto center some windows on the main monitor, and I need this solution to worry about only single screen applications. I tried couple applications but they interfere with multi ...
1
vote
1answer
78 views

How can I use a controller to click on certain places of my screen?

I have been playing an online poker game, which I really enjoy. My only complaint is that I have to sit at my PC holding my mouse all the time, which isn't very relaxing for me. I was wondering if I ...
0
votes
1answer
25 views

A portion of a page disappears. What happens?

One day I visit https://ga-dev-tools.appspot.com/campaign-url-builder and the portion in red rectangle of that page disappears. I open the browser in addons disabled mode (which means there is no ...
0
votes
0answers
109 views

How to Create Keyboard Shortcut for Changing Font Color in OneNote for Windows 10 (UWP)?

After doing some research on this topic, I stumbled upon AutoHotKey, and it looked very promising until I discovered that most of what I found was for the OneNote 2016 desktop app, this question in ...
0
votes
1answer
30 views

Add extra Fn key combinations, for example Fn+4 = Home

I play SC2 on my laptop, and therefore I have mapped the normal arrow keys to other buttons. To counteract this, I've mapped the numbers 8 4 5 and 6 on my numpad to arrows. Problem is, the original ...
0
votes
3answers
315 views

Autohotkey - Restart Explorer Shortcut (Useful when crash)

Is there a way to restart all instances of Windows Explorer? It's useful when explorer starts acting up, eg. high cpu .
0
votes
0answers
129 views

How to change ASUS Backlight manually, without function keys?

ASUS has a driver collection called, ATK Package. The package creates Hotkeys for stuff like "Function key combos, with the actual FN key". These are present on ASUS Laptops. The package can ...
1
vote
0answers
69 views

AutoHotkey script stopped working after I downgraded to windows 7 from windows 10

An AutoHotkey script stopped working adter I downgraded to Windows 7 from Windows 10: Script is started via shortcut Ctrl+Shift+L Monitor wakes via ESC only, but doen't wake if I uncomment DllCall(&...
1
vote
1answer
392 views

Magic-FN like Binds For Normal Keyboards

SO, I'm obsessed with my Anne Pro 2 (even though it really is not reliable) but I wanna know if there is another way to use its software (Obinskit) or something similar to it. Basically I want to hold ...
0
votes
2answers
2k views

What does the “_8wekyb3d8bbwe” extension in Windows metro apps mean?

Metro apps in windows seem to have a special extension to their installation directory, for example the new Windows Terminal is located at C:\Program Files\WindowsApps\Microsoft....
0
votes
0answers
26 views

Why does my AutoHotKey script not work consistently?

I have made this AutoHotKey script with enormous amounts of problems along the way: #Persistent #SingleInstance force if A_Args[1] > 0 { Menu, Tray, Icon, C:\Users\John Doe\Documents\icons\new ...
0
votes
1answer
48 views

How to change ALT+TAB to CONTROL

I do a lot of switching between apps and I'd like to know if there is a way to do that using Autohotkey. is there a script for that ?
1
vote
1answer
119 views

Environmental Variables don't change when reloading an AutoHotKey script

Setup I have an AutoHotKey script that shows the value of a Windows Environment Variable, crnt: #c:: MsgBox, "crnt is " . %crnt% The Problem When I change crnt #c still shows the old value. ...
0
votes
1answer
55 views

An AutoHotkey script hotkey to text

I want to write a script so when I press Control key and 5 for example the system type certain sentence -have a good day - for example .. please help!
0
votes
0answers
26 views

Autohotkey, Retrieving title or URL seperately from a string?

So I have this firefox extension that simply copies to the clipboard, the active tabs URL. It is coppied in this manner [title](URL) so for example [Google](https://www.google.com) I need to retrieve, ...
0
votes
1answer
41 views

Multiple hotkey - keyboard shortcut

In VS code the shortcut for "zen mode" is CTRL + K Z The explanation is this: "Ctrl+K, let go of Ctrl and K, press Z It's common in Linux to have such shortcuts, almost never seen in ...
0
votes
0answers
38 views

How to change Windows keyboard shortcuts?

How to change Windows keyboard shortcuts? And in particular, how can I change the Windows logo key keyboard shortcuts? For example, Windows logo key+period (.) or semicolon (;) opens the emoji panel. ...
1
vote
1answer
35 views

Opening the about: links used specifically for Firefox from File explorer

Help with opening the about: links used specifically for Firefox. More info HERE I am trying to open them from File explorer. I tried dragging about:addons URL from Firefox Adrress bar to Explorer. ...
0
votes
2answers
618 views

Looking to detect if key is pressed, execute action

I am looking for a solution to my problem: I have a program that launches a secondary program when a button is pressed, however this secondary program doesn't have a shortcut to exit. This means I ...
0
votes
0answers
39 views

Automatically open and position eight webpages across four 3840 x 2160 screens (Windows 10)

I need to help to find a way to trigger the opening and positioning of eight live webpages (not owned or created by me) across four screens. I am currently using this AHK Workspaces - Window ...
1
vote
1answer
63 views

IE will not activate

I want to Activate IE 11 if it is not active This is part of legacy tests, so it absolutely must be IE, not Edge or any other browser. I want to bring the IE window to the foreground so I can run F5 ...
2
votes
2answers
100 views

Switch back and forth between last active two programs with AutoHotKey?

I am trying to get a single tap of ALT to switch back and forth between programs, but not interfere with or break the native functionality of holding the key, however A_PriorKey [below] only seems to ...
1
vote
1answer
57 views

Restore the cursor back to the position it was when Hotkey was first triggered?

I am trying to move my cursor vertically down till it gets to the bottom of the monitor (1500) then have it wrap around by moving it back to the initial position. The problem am having is that every ...
1
vote
1answer
373 views

Connecting/Disconnecting to Bluetooth Device via CMD, PS, or AHK?

I'm at my wits' end right now. I'm on the latest version of Windows 10 and I just want to run a script to connect/disconnect to my Bluetooth headphones when executed. I've looked at a couple other ...
1
vote
1answer
1k views

Are there any alternatives to Razer Synapse with full macro functionality for a mouse?

I've had an extremely bad experience with Razer Synapse, because it causes constant and random BSOD's on my computer. I use a sensitivity clutch for one of my macro buttons, but when the Synapse ...
0
votes
0answers
54 views

Store Javascript code as a string inside a variable of an AHK script?

I want to use it as an alternative to the code example below but mostly to allow me use logic such as if statements so that my script is dynamic. Its for photoshop scripting. F1:: run, SomeJavascript....
44
votes
13answers
11k views

What to do when I need more keys than my keyboard has?

I have a standard keyboard. With AutoHotKey, I have mapped F1 to F12 to perform extremely specific tasks which I have muscle-memorized, and in addition to these, I have numerous WinKey+Letter ...
0
votes
0answers
75 views

Mapping horizontal keys to Back/Forward keys

I have Microsoft Sculpt Ergonomic Mouse and tried to re-map its right/left direction of the wheel to Back/Forward button in this way WheelRight::XButton1 WheelLeft::XButton2 But it does not work and ...
0
votes
0answers
20 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
83 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
0answers
26 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 ...
1
vote
1answer
1k 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 ...
2
votes
1answer
207 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
1answer
91 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 ...
3
votes
2answers
807 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
99 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 ...
0
votes
1answer
181 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
2answers
205 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 ...

1
2
3 4 5
25