Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 ...

6
votes
2answers
2k views

Open Powershell as Administrator at Current File Explorer Directory Keyboard Shortcut (Windows 10)

Let's say that I'm browsing through Windows File Explorer, and suddenly I decide that I would like to open Powershell as administrator at the current directory (the directory that I'm at in File ...
0
votes
1answer
589 views

How can you run autohotkey script in background only with PID available?

I like to run an autohotkey script in background inside a virtual machine (sandboxie). The script will press f1-f8 keys in an endless loop. It is supposed to have effects on a game which runs on the ...
0
votes
1answer
118 views

Run Chrome with “first/only parameter”

I have search for a "first/only" parameter in this chrome list of parameters https://peter.sh/experiments/chromium-command-line-switches/#load-extension but I can't find it does anybody know how to ...
0
votes
1answer
67 views

Sci4AutoHotkey crashes when using emojis

This Autohotkey script works when I write it in Notepad: !Numpad1::Send 🙂 !Numpad2::Send 😃 !Numpad3::Send 👍 !Numpad4::Send 🙁 But if I copy and paste it into SciTE4AutoHotkey, the application ...
0
votes
0answers
70 views

win10, switching desktops so that the last flows over to the first (continous desktop switching)

looking for ways to continuously switch desktops that's been updated within say the last year or so for win10 likely going to switch via the swipe method/way Windows 10 gesture to switch between ...
0
votes
1answer
148 views

Swapping Keys with AutoHotKey

My laptop is a Lenovo Yoga 910 with Windows 10. I'm trying to use AutoHotKey to make the following mapping: PgUp::RShift RShift::PgUp End::PgDn PgDn::Right However, with the exception of the RShift:...
0
votes
1answer
116 views

What are the effects if i run this script?

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new ...
2
votes
1answer
2k views

How do I circumvent the anti-afk built into Youtube's autoplay feature?

I want to be able to listen to ASMR videos while getting to sleep and have it still playing when I wake up, but it appears youtube has some sort of anti-afk measure to prevent its autoplay from ...
0
votes
0answers
392 views

AHK: Loop thru Associative Array

So after some extensive searching both in the AHK documentation, stackexchange and the ahk_forum, I have decided to seek help from the experts I will explain the code I am working on and then post ...
0
votes
2answers
72 views

Win Up key as Tab key instead Windows Menu

I would like to modify Windows(Super) key behavour like: {LWin Up} key as Tab character instead Windows Menu. LWin + letter, number, function key etc - works like normal behaviour.(ex: Win + m - ...
-3
votes
1answer
733 views

How do I make Auto Hotkey do Alt+F4 when I press right mouse button and scroll wheel?

My question is simple, I want a script in Auto Hotkey so that I can press Alt+F4 by pressing the right mouse button and scroll wheel. How do I do this?
1
vote
1answer
187 views

Autohotkey: Modifier and Hot String for typing Acute accent

I want to achieve the following using AutoHotkey: Pressing the <>-key (I already found out its key code SC056) together with the x-key, the symbol ´ (Unicode U+00B4) should be printed. If I press ...
3
votes
1answer
1k views

How do I figure out the installation path of apps from the Microsoft Store

I want to set up a hotkey tool called Autohotkey to open up a program called "Trello" when I hit a certain key combination. For that I need to know the absolute path of the program. The only problem ...
1
vote
1answer
5k views

Shortcut or script to open Screen Sketch on Win10 [duplicate]

Does anyone know a shortcut or even an AutoHotKey script that opens Screen sketch directly? i know that the shortcut Win+W opens Windows Ink Workspace but i have to select screen sketch afterward (...
0
votes
0answers
67 views

How do I send MouseWheelUp and ignore modifiers being held?

I'm trying to add some behavior that I have bound to shift+MouseWheelUp but occasionally the shift modifier is being applied to what I am sending, here is a simple repro case with output: #NoEnv ; ...
0
votes
1answer
311 views

How to remap Tab as Win key in AutoHotKey so it has two functions Tab and Win modifier?

I would like to remap Tab key in such a way that: On Tab key down it BEHAVES AS WINDOWS(SUPER) KEY waits for extra key like ex: m or t and perform some action like maxize window(ex: WIN+m, WIN+t). It ...
0
votes
1answer
144 views

Ctrl+D Can it be remapped in FireFox or disabled in Outlook?

If I want to bookmark something in FireFox, I use Ctrl+D. If Outlook is the active Window, Ctrl+D will delete the highlighted item. This has happens when I'm jumping back and forth between monitors ...
0
votes
1answer
427 views

Listen for screen off event and disable mouse in Windows

I want to prevent the mouse from waking my screens (while my PC is on but screens are off or the screensaver is on). I have read all the resources telling me exactly how "it can't be done", e.g. this ...
1
vote
0answers
211 views

How can I pin AutoHotkey to the Window 7 taskbar?

I want to pin a shortcut for AutoHotkey to the Windows 7 taskbar. However, dragging AutoHotkey.exe to the taskbar doesn't work as expected. On my previous computer I was able to pin AutoHotkey to the ...
0
votes
2answers
286 views

Do a Reload Without Flashing The Tray Icon - Autohotkey Script

I want to do a Reload Without Flashing The Tray Icon, on my Windows 10 64/bit System. Is there a Simple Autohotkey Script that i can use. i do not want, if i run the Reload Command, that My ...
0
votes
2answers
73 views

How can i press a button in few on screen browser windows simultaneously?

I have my browsers opened in this configuration on my desktop: Is there a way to press red buttons simultaneously? I found similar question: Can I mirror / duplicate mouse events on both halves of ...
0
votes
2answers
460 views

Autohotkey - DoubleClick a Keystroke Combination to Run a Part of Ahk Code

Is there a way to do a DoubleClick a Keystroke Combination to Run a Part of Ahk Code. You can do a DoubleClick on any Mouse Or Touch Device. But i Like to do a DoubleClick for All my Keystroke ...
0
votes
0answers
82 views

How to make another running window of a same program be detected as a different program?

How to make tracking programs (ManicTime, Smarter Time) detect two windows of a program as two different programs? The displaying titles can be changed, but the process names are not. FYI: How to ...
0
votes
1answer
261 views

Autohotkey KeyWait, how to use OR (||)

macro looks working without "OR MButton". how can I use both? Loop { KeyWait, RButton OR MButton KeyWait, RButton OR MButton, D CoordMode, Pixel, Window PixelSearch, FoundX, FoundY, ...
0
votes
0answers
24 views

Way to have multiple mousekey profiles?

I've been looking around and there doesn't seem to be a way of having multiple mouse key settings simultaneously saved on a Windows machine (short of moving to a third party tool like AHK as a ...
3
votes
2answers
1k views

Autohotkey script not running on startup

So I have two scripts in shell:startup. One that is a bunch of hotkeys to do various things when I push ctrl+c/a/s/etc. and the other is meant to run something once at boot up and that's it. The ...
0
votes
0answers
668 views

How to turn ON auto-scroll on Windows 7 PC?

I'm just getting familiar with the auto-scroll feature in my (Vivaldi) browser and I would like to use it everywhere. I know that laptops have this feature but I cannot find a way to enable on Windows ...
2
votes
0answers
517 views

Set Scaling of individual applications in Windows

I occurs to be that I want any app I'm not looking at to be scaled down (to say 100%), but the one in focus to be scaled up (to 200%). This would both make maximal use of my hi-res laptop screen for ...
1
vote
0answers
44 views

Can AutoHotKey be able to focus a panel?

Some programs have floating panels within the main window. Since the ability to focus them with keyboard only depends on the framework they are using, is there a way to use AutoHotKey to do this ...
3
votes
1answer
1k views

AHK: How to use a Hotkey in conjunction with GUI

My GUI works fine. Here is a screenshot of my Edit box, GUI: F1 fires the script. I would then input 1, 2, 3, or 4, and Click Submit or hit ENTER; which Enter doesn't currently get accepted but ...
0
votes
1answer
55 views

How to export a directory hierarchical structure (with Extended File Details)?

I need hierarchical listing of all files along with Extended File Details. My question is similar to How can I export a directory structure? Both answers mentioning tree and Get-ChildItem commands ...
1
vote
1answer
1k views

autohotkey: #IfWinActive how to specify both ahk_class and ahk_exe

In autohotkey's #IfWinActive statement, is it possible to specify multiple criteria? specifically, ahk_class and ahk_exe? eg, something similar to #IfWinActive ahk_exe test.exe && ahk_class ...
0
votes
1answer
1k views

How to disable view page source in Chrome?

I need one help from you that is to block the page of viewing the source (original sites should be opened but source page must be blocked). I have almost come to the solution with the help of ...
0
votes
1answer
410 views

Remapping Function Keys for media vs. Alt + Function Key for specific app

I have an HP Laptop and I finally got around to changing the BIOS setting to reverse the annoying Fn+Function Key "feature" since I regularly F2, F5 & F11 with VBA & Office (a lot more often ...
0
votes
1answer
4k views

Execute command/script in Windows 10 remotely from Linux machine

My goal is to launch a simple AutoHotKey script in Windows 10 machine from Ubuntu host within the same private network. After googling, I found winexe, which sounded like it could do what I want, but ...
2
votes
1answer
490 views

How to edit/change/modify the Syntax Highlighting Color in VS Code

How to edit/change/modify the Syntax Highlighting Color in VS Code, ie for Autohotkey and/or Markdown languages? For example: Im using the High Contrast theme (black background), and in that theme, ...
0
votes
2answers
177 views

Remapping Alt+Key to same Key not working?

Here is my current keyboard, a Logitech K270: I want to override the Browser_Home like this: Browser_Home >>> Media_Next ALT + Browser_Home >>> Browser_Home While the first remap works the second ...
0
votes
2answers
166 views

Change Windows X and Y axis sensitivity separately?

I basically want to use a 4:3 resolution in Windows, but X axis sensitivity feels higher than Y's. How can I change them to be the same in a stretched resolution like 4:3? I need a simple way, maybe ...
0
votes
1answer
209 views

Autohotkey 5-Level cascading menu

Can anybody who knows Autohotkey pls help me create a 5-level cascading menu (or at least tell me where can I find a ready-made template). See sample screenshot (diagram): The menu should work like ...
0
votes
1answer
666 views

How to disable shift delete on my system totally even through remote control

I trying to disable my SHIFT+DELETE option on my laptop.For that, I found an answer to use the script(below) in AutoHotkey program to prevent SHIFT+DELETE. It is working perfectly when I am doing ...
0
votes
1answer
141 views

Win+1 to 9 keys, only min/max first window, modifier keys for next window

I use win+1, win+2, win+3, win+4 ..... win+9 keys fairly frequently Is there a way to have an autohotkey to do the following? Say I have chrome in position 9 on my taskbar. If a chrome 2+ windows, ...
0
votes
2answers
571 views

Safe macro keys for a macro keyboard?

I bought a 24 macro keyboard from xkeys. I'm using it to to have unique keys that don't trigger anything on windows or any apps I use. This way I can easily make autohotkey profiles to run macros. ...
0
votes
1answer
176 views

Microsoft VS-Code and or Autohotkey questions Automatic tagging

How can I achieve this either using VS-Code of Autohotkey? I am a Text books / Magazine books encoder and I'm using VS-Code (as my Notepad when typing). I am on a certain project which consists of ...
2
votes
1answer
458 views

Autohotkey to cycle through active program windows

I have this autohotkey file. When I press F2, it toggles through any windows explorer tabs I have open and keeps it in focus / sends it to the top. If no file explorer windows are open, it opens one ...
0
votes
1answer
94 views

How to Add SubListBox to my Main ListBox

I have already develop my ListBox (screenshot attached). Listed As: Inquiry_Callback OptOut_Unsub OptOut_Callback Dispute_Callback Others_Others S_Inquiry_Callback S_OptOut_Unsub S_OptOut_Callback ...
1
vote
1answer
132 views

Autohotkey - switch layout with RIght Alt

I am trying to create Autohotkey shortcut to switch layout with only Right Alt. So i've created simple script: RAlt::Send {Ctrl down}{Shift down}{Shift up}{Ctrl up} return But this script just do ...
2
votes
1answer
1k views

Autohotkey, How to create drop-down list to select items

I have few short hotstrings/hotkeys. If I type "one", there's a corresponding actions, if I typed two, there another corresponding actions. My question is, how can I make a single hotkey for all, ...
2
votes
2answers
361 views

autohotkey disable a key globally but enable in a window

I wanna disable a key globally, say it, space, but enable in a specific window, eg, Notepad. Then I put below lines in key.ahk and load it space::return #IfWinActive ahk_class Notepad space::...
0
votes
1answer
58 views

Faulty scroller fix via AutoHotKey?

How can I fix my mouse's faulty scroller using AHK? When I scroll down or up, it sometimes goes back a bit the opposite direction. I'm sure there's a way to deal with this in AHK but I can't figure ...
0
votes
2answers
220 views

How to make All 3 conditions in Autohotkey (how to code “AND”)

I have a simple autohotkey code, but I cannot figure out how to make all 3 conditions met before doing the rules in the first bracket. My code functions like, if any one condition is met, it will ...