Customization of the desktop using the AutoHotkey program.

learn more… | top users | synonyms (2)

0
votes
2answers
579 views

AutoHotKey - Hold a key down

I have an AutoHotKey script that should hit F3 when I hold down Ctrl, and hit F2 when I release Ctrl. My script currently: $ctrl:: Suspend, On Send, {F3} While (GetKeyState("Ctrl",P)) { } Send, {F2} ...
0
votes
1answer
38 views

on AHK how can I combine ALT+E+B into one hot key

Im having trouble creating this hotkey In my program I use, I want to press Alt and e and B in order to do a command but I want to combine all that into one hotkey how would I do that?I just don't ...
0
votes
0answers
38 views

Switching Left Alt with Ctrl and CTRL Tab to Alt Tab

i've the following script to switch the left Alt and Ctrl Buttons on my Keyboard: LAlt::LCtrl LCtrl::LAlt Now I would like to be possible again to use alt / Tab for switching Application, but with ...
1
vote
3answers
66 views

Run a .ahk on stratup

In Windows 7, I used to copy .ahk files to start-up folder to make them to start automatically. But this does not work in Windows 8. Is there any solution?
0
votes
1answer
48 views

replace alt+f4 with ctrl+w

I am using this Remap ALT+F4 to CTRL+W script but it does not work on some programs, such as evernote. I tried to create one myself: ^w:: SetTitleMatchMode 2 IfWinExist Evernote Send !{F4} else ...
0
votes
0answers
102 views

How can I release the Win-L key combination to the underlying program?

I'm a Mac user (boo, hiss, I know) who's occasionally working on a Windows 8.1 partition on his Macbook. I've used AutoHotKey to remap several keys, and make my life easier by sharing the same general ...
2
votes
1answer
749 views

Set (Many) Programs' Window Size/Position

I'm looking for a solution similar to this, but for Windows 7 (64-bit), and not just for the terminal. This is also definitely not a duplicate of this question. The Problem Some programs remember ...
1
vote
1answer
149 views

How can I bind scrollwheel to a key in Mac OS X?

I am new to using a Mac, and I have used AutoHotKey applications that rebind the mouse scroll wheel (for example, E = scroll up by 1 mouse wheel "tick" of sorts) to a specific window title, eg. "Game ...
0
votes
0answers
155 views

Remapping Caps Lock and Ctrl in Windows 8.1 on MacBook Pro doesn't work completely

I know there's lots online about swapping Caps Lock and Ctrl, including for Macs running Windows. However, I'm having a problem where, if I do that using AutoHotkey (running a native BootCamp ...
1
vote
0answers
40 views

Why did windows change the elevation requirements of my AutoHotKey script, and how can I prevent such in the future?

I was working on an AutoHotKey (AHK) script to create prefab mouse movements for a very simple model viewer. I worked on it for a good hour. I zipped the script, posted it to a forum, and thought "oh ...
1
vote
0answers
29 views

How to read from an already existing dropdown list and then click on a button using autohotkey?

Please tell me how to read from an already existing dropdown list and then click on OK using AUTOHOTKEY. Thanks.
0
votes
0answers
18 views

Use mouse wheel with numpad using ahk? [duplicate]

I'm on a laptop without a mouse. This means I don't have the middle mouse button/wheel. I tried to use ahk to make my numpad act like a mouse wheel with the middle mouse button. Numpad8::WheelUp ...
3
votes
1answer
129 views

Emulate middle mouse button with AutoHotKey

I would like to write a simple script (one-liner?) to map the left shift + right mouse button to the middle mouse button (I don't actually have a middle mouse button, as it is a trackpad). I have ...
-1
votes
1answer
74 views

AutoHotkey - Organizing hotkeys so as to use Several hotkeys optimally

My question is how to structure key combinations in the script below most effectively using AutoHotkey. Having searched for exactly how to do this for hours I figured I should post here so others ...
0
votes
0answers
43 views

Remapping Alt+Space to Win+S in Autohotkey

I have tried several variations: LAlt & Space::Send #{s} and !Space::Send #{s} and !Space::#s but none of them produce reliable results. The remapping works sometimes, but most of the ...
0
votes
1answer
94 views

AHK separate multiple lines of clipboard

I am trying to make simple AHK macro. What I need is following: User copies multiple lines of numbers e.g 1234 12345 123125 12512 123123 my code needs to read from clipboard and do following ...
0
votes
2answers
64 views

How can I re-map these keys?

I am re-mapping the Qwerty layout to Dvorak using AHK because I can't install custom keyboard layouts on this computer. Most of my remapping just follows a simple pattern, and this works well: ...
0
votes
1answer
86 views

How can I re-map the colon (“shift+period”)?

I am re-mapping the Qwerty layout (Danish) to Dvorak using AHK because I can't install custom keyboard layouts on this computer. So for instance these work fine: :*:n::b ; remap "n" to "b". This ...
0
votes
1answer
45 views

AHK running url as standalone program - workaround needed

I created this program ^+l:: IfWinExist Toggl WinActivate, Toggl else run "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -app=https://www.toggl.com/app/#timer return But the ...
1
vote
0answers
48 views

Paste to text file script

I'd like to use AHK to create the following program: I highlight some text, and hit ctrl+c. I hit the keyboard shortcut, say #c Notepad++ creates a new text file with the content, and promts me to ...
4
votes
1answer
81 views

Open browser hotkey

I want this when I press ctrl+. if chrome is not running, open it up. if chrome is running, open the last window. tried this ^.:: IfWinExist Google Chrome WinActivate, Google Chrome else ...
0
votes
0answers
53 views

Autohotkey - remapping keys doesn't work

I am using Ctrl+Shift to switch between keyboard input language and i want to remap NumpadAdd key to ctrl+shift so i can change the languge with single key press. I tried this: NumpadAdd::^Shift ...
0
votes
1answer
239 views

How to map the Touchscreen Windows Button to right-mouseclick

My Lenovo Yoga 2 Pro has an extra Windows Touch Button next to the touchscreen. Is it possible to remap that button to the right mouse button? This would be very helpful in many games, that are not ...
1
vote
0answers
46 views

AHK Gui button working as a toggle?

I have been searching for a while now on how to make a GUI button work as a toggle for a simple loop. I'm stumped and need help. Here's my code. #NoEnv #SingleInstance force ...
-3
votes
1answer
32 views

Bolding for forum posts in AutoHotKey [closed]

I want to make a script that'll activate the bold forum code ([b]) when pressing CTRL+B on the first time, and that'll deactivate it ([/b]) on the second press. However I can't understand the ...
1
vote
0answers
67 views

How to swap Alt+PgUp and Alt+PgDn inside an mstsc window, with autohotkey?

Context description: As a Windows admin, I often use mstsc.exe from my client machine to connect to Windows server remote desktop. I realize that,when mstsc is the active window on my client machine: ...
0
votes
2answers
62 views

How to press send on 6 browser windows running gmail?

We are doing a blinded trial on email forwarding, to see what kind of messages users will forward to their friends. We need to fire off the emails at once ideally. Is there a way to press send on 6 ...
0
votes
1answer
96 views

Specifying caret position in AutoHotKey

When typing foo I want AutoHotKey insert foo % bar and place caret at %, so I can type something there. Is it possible? What about following: <a src="%placeholder1%"> %placeholder2% </a> ...
0
votes
1answer
136 views

Autohotkey : Unable to map RCtrl + Rshift + Tab : Getting syntax error

I'm a new Autohotkey user. I'm trying to remap keys for use with Outlook. RCtrl & Tab:: WinGet, Active_ID, ID, A WinGet, Active_Process, ProcessName, ahk_id %Active_ID% if (Active_Process = ...
2
votes
0answers
33 views

How to setup a Ubuntu custom shortcut for “goto selection”

On Windows, I set up a Autohotkey shortcut in a way that the selected text was sent to the OS for execution. If it's a http hyperlink, default browser is launched. If it's a file path, file explorer ...
4
votes
2answers
818 views

Detecting touch screen presses in AutoHotkey in Windows 8

I am using a Dell Venue 8 Pro running Windows 8.1 32 bit. I am trying to use AutoHotkey to map certain regions of the screen to certain buttons on the keyboard, in order to be able to use the touch ...
0
votes
1answer
519 views

Any way to keep connection alive in pgAdmin without setting it on the server?

I am using postgres.heroku.com to host my databases. This means that I have no way of changing server settings. Therefore, the answer to this question does not help me. Heroku is not willing to change ...
1
vote
1answer
296 views

What Windows shortcuts should be blocked on a kiosk-mode PC

Assume a normal Windows 7 PC and a custom application running in kiosk mode. It's not possible to quit the application without a password. Now I want to block all Windows 7 key combinations which ...
0
votes
1answer
122 views

How to Remap a Program to lock Windows (Win+L)

I'm trying to remap WinLock to something new. Basiclly i want to remove Win+L to lock Windows and add Win+L to Open a specific program to be opened. Any Help ? Thanks. PS: currently i using #L::Run ...
2
votes
2answers
338 views

How do I create a hotkey for a sequence of inputs while holding Ctrl, e.g. {Ctrl Down}ec{Ctrl Up}?

For example, in Visual Studio Express 2013, many of the formatting shortcuts have been "folded" into Ctrl+E. To comment a selection, one would hold down Ctrl, hit E, hit C, then release Ctrl. ...
0
votes
1answer
88 views

How to nullify key temporarily when another key is pressed in AutoHotKey?

I am playing a rhythm game where you can bind two keys to hit one note (in my case LShift and LControl), however it will only register the note if it is being hit singularly. By that, I mean if I have ...
2
votes
1answer
54 views

How do you open a window and push it to the right from the command line?

I'm using autohotkey on Windows 7, and I bound Ctrl+Alt+T to the command run powershell.exe -noexit -WindowStyle Maximized, which works, but I am partial to using powershell when it is pushed to the ...
0
votes
0answers
138 views

AutoHotkey Script request: Autocharging and Autofire

This is a script request which would work for Mega Man and some other games. An AHK script which enables autocharging and autofire. I'm a newbie with programming so I believe I could use some help. ...
0
votes
0answers
112 views

Keep Windows GUI active when switching user and when closing Remote Desktop

I need to run a GUI script (AutoHotKey, which makes mouse clicks and press keys) on: A different windows user (i.e. I run the script, then switch user while keeping the session active) A remote ...
0
votes
2answers
93 views

Windows key + Left/Right arrow combinations in AutoHotkey

I'm trying to make an AutoHotkey script that would run the following sequence once I press +Space: +E -- Open an Explorer window +Left Arrow -- Snap to left of screen +E -- Open an Explorer window ...
0
votes
1answer
87 views

Autohotkey Prevent GUI from closing after pressing Button

The GUI closes every time I press the "Kitch" button. What I did temporarily is to put "Gui, Show" in order to make the button reappear again. Gui, Add, Button, x2 y0 w110 h60 , Kitch Gui, Show, x127 ...
0
votes
0answers
31 views

Simple suspend script for AutoHotKey

I need a simple script, that change the "calculator" key of my microsoft 600 keyboard to a "Suspend (sleep)" functionality.
0
votes
1answer
74 views

AHK: disabling PgDn & PgUp keys while running script

What I want to do is create a script that allows me to disable the effect of the PgDn or PgDn keys while it waits (so it doesn't instantaneously capture the hotkey so there's no override), while not ...
0
votes
1answer
79 views

Open Power plan window using RunDll32.exe

I am a power user of AutoHotKey. Currently, I want to create a shortcut to open Power plan in windows 7. The window I want to open is in the screenshot below I tried the following commands too but ...
0
votes
2answers
194 views

Replace text string WITH a variable

I'm using an .ahk script for text replacement. So I use ::-h:: Hi, thanks for your mail However, I would now like to include a variable. So I want to try to achieve: Press shk shortcut key (-h) ...
0
votes
1answer
57 views

Auto hot key input based on pressed key

I want to make a script that sends input based answer, For example, The last input is 1:Option1 | 2:option2 | 3:Option3 | 0:Cancel How I can make that If I press on 1 it will send a different ...
0
votes
0answers
138 views

Setting a loop and a key to stop it

I want to change this so it doesn't stop when it reach the number 6 and instead starts over (loops). I also want to stop the loop when I press F10. Is this possible? F9:: WinActivate, Path of Exile ...
0
votes
0answers
71 views

Autohotkey - How do I redefine AltGR + key

I am trying to define a hotkey such that AltGr A does the same as Windows 1 ^a::#1 ; Works <^>!a::#1 <^>!b::msgbox, altgr b pressed ; Works The first line ...
0
votes
0answers
46 views

reverse ctrl+v and shift+ctrl+v

I want to reverse ctrl+v and shift+ctrl+v only when I'm in evernote. I'd prefer to use AHK for this. But I don't know how to do it. The reason for this it that I use evernote, and want paste as plain ...
0
votes
1answer
77 views

RAlt getting stuck on AHK

I have this alphabetical list on a script I've made. RAlt & a::Run, C:\Program Files (x86)\FreeAlarmClock\FreeAlarmClock.exe RAlt & b::Run, C:\Program Files (x86)\Brain ...