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
37 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
19 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
72 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
16 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
50 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 ...
0
votes
1answer
23 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
26 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....
42
votes
13answers
9k 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
61 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
16 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
36 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
15 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
243 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
62 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
33 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
33 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
67 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
68 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
133 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
67 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 ...
0
votes
1answer
33 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
0answers
13 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
14 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
36 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("...
-1
votes
1answer
37 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.
0
votes
1answer
31 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
187 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
0answers
56 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
46 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 ...
0
votes
1answer
71 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-...
0
votes
1answer
101 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
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
37 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
106 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 ...
1
vote
0answers
28 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 ...
1
vote
2answers
53 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 ...
0
votes
1answer
30 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
70 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
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 ...
0
votes
1answer
191 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
589 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....
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
56 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 ...
0
votes
0answers
41 views

Can I add document navigation shortcuts to Windows 10?

I have just started using Windows again after many years and previously was able to use FN + left/right arrows on a Dell laptop using various versions of Ubuntu to go to the beginning and end of line ...
1
vote
1answer
216 views

AHK (AutoHotKey) Concatenate strings and variable

I have this code for sending command to Autocad. It works OK. { GetAcad() ;Creates global variable ACAD where Application Object is stored CADdoc:= ACAD.activedocument Layer:= "0" CADdoc.SendCommand("...
0
votes
1answer
31 views

Autohotkey hold and release

I am trying to make a script that when you hold the side mouse button it will keep pressing U, and when I let go of the side button it will stop pressing. Here is what I have RepeatKey := !RepeatKey ...
1
vote
1answer
85 views

I don't know how to make the F8 key toggle the script off as well on AHK

F8:: Loop { Send {W down} Sleep 500 Send {W up} Sleep 1000 } Return
0
votes
2answers
162 views

Bind Apostrophe to be “Control” when used in conjunction with other keys?

Is there a way to use AHK to bind ' to be Control, but only used in conjunction with other keys besides shift (so that when ' or Shift + ' is pressed on its own, it still sends ' and ", respectively)? ...
0
votes
1answer
67 views

Windows keyboard shortcut for missing fn buttons?

My f6 and f12 buttons are missing, and I would like to create shortcuts for them (e.g ctrl+6 etc.) Is this possible? I tried looking into AutoHotKey, but couldn't find how to define the output as an ...
1
vote
1answer
155 views

AHK need help to make a AHK gui button to run 3 different scripts

New to programming and AHK need help to build AHK GUI with at least three buttons to run 3 different scripts, and to show color in the button could be green to show that the script is running and if I ...

1
2 3 4 5
24