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
1answer
97 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
1answer
579 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
142 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 ...
3
votes
1answer
4k 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
2answers
83 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
2k 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
302 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 ...
4
votes
1answer
4k 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
7k 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 (...
1
vote
0answers
93 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
432 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
159 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
652 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
324 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
431 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
87 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
865 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
1answer
453 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, ...
3
votes
2answers
2k 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
1k 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
848 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
60 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
2k 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
67 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 ...
4
votes
1answer
2k 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
2k 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
515 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
8k 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
834 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
237 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
272 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
378 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
1k 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
190 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
1k 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
224 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
622 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
109 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
214 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 ...
3
votes
1answer
2k 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
516 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
64 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
622 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 ...
1
vote
1answer
1k views

Disable mouse using a key

Is there a way I can assign a key to block other keys using autohotkey? I've tried this, tried adding parentheses nothing works Here is the code g:: lbutton:: rbutton:: BlockInput, MouseMove ...
0
votes
1answer
428 views

AHK, holding button

I hope this is the right place to ask. I want the LButton to be executed normally if tapped but want RButton to be pressed when held down. Example: I spam LButton and do a light attack but holding ...
3
votes
3answers
1k views

Beep or make a sound upon Cut, Copy, Paste

I have autohotkey installed in my windows 10. How can I have it to "beep" or make a sound whenever I Cut, Copy, Paste, something. I'm working on a huge records which involves cutting-copying-pasting ...
-1
votes
1answer
2k views

How can I set one key on keyboard for multiple keys through AutoHotKey?

I need to press my end key, to register space+s at the same time. From what I have heard, the code is somewhat like End ::send space,s Escape:: ExitApp Return Now the problem is that I don't ...
2
votes
2answers
1k views

Autohotkey won't restore/activate a minimized window

I have created the following script in an attempt to have one hotkey that launches the calculator, or, if it is already open, 'activates' the window, or, if it is already activated, closes the ...
0
votes
1answer
485 views

Is it possible to remap key combinations in windows without AutoHotKey?

I want to remap alt+arrows to work like home, end, etc like here but I prefer to not have another program running in the background. Is it possible to do this without AutoHotKey? Is there anything ...
0
votes
1answer
352 views

AHK — How to interrupt alternate keys for same hotkey?

I have a code that every time I press the hotkey, a letter is sent. Pressing Q, Q, Q, Q, Q is sent "a", "b", "c", "d", "e", respectively. Then the loop restarts. For example: pressing Q 13 times ...