Customization of the desktop using the AutoHotkey program.

learn more… | top users | synonyms (2)

0
votes
1answer
13 views

ssh login with key can't connect although go an ssh key

I have my 2 servers that I want to connect one to another with ssh. I am the user --> userA in serverA, and I have this config file in .ssh folder Host git HostName git.OURSITE.com ...
1
vote
1answer
28 views

Autohotkey use CapsLock key as modifier key

How might I use the CapsLock key as a modifier type key in autohotkey? For example currently I am currently doing the following: t=0 CapsLock::t:=!t #If t y::6 u::7 Ideally I would like to ...
0
votes
0answers
9 views

Disable Backspace as Nav in Chrome using AutoHotKey

I'm trying to use AutoHotKey to fix the backspace key in Chrome. My first attempt utilized the following solution from this question: #IfWinActive, ahk_class Chrome_WidgetWin_1 BackSpace::Send, ...
0
votes
1answer
21 views

Creating a keyboard command with AHK, no *else* statement

I want to have the same shortcut for tabs in my pdf reader as in my browser. With AHK I wrote: ^PgUp:: IfWinActive Foxit Reader Send {Ctrl down} Send {Shift down} Send Tab else return ...
0
votes
1answer
19 views

Autohotkey Directives

I get the following error when trying to create the following autohotkey. #If test Error: This line does not contain a recognized action. Why can't I use #If directives in autohotkey ...
0
votes
1answer
17 views

Autohotkey on a win8 tablet: three clicks for an action

I would love to use three clicks on my tablet to perform an action such as ^w (closing chrome windows). I have tried with "RapidHotkey" script but to no avail. I would greatly appreciate your help. ...
0
votes
0answers
13 views

Autohotkey - How to overwrite an existing hotkey, while remapping the original hotkey

I want to do a seemingly simple action but I'm having trouble figuring out how. I want to remap Ctrl-F - which natively opens a 'find' window in the program I'm using - but I want to create a new ...
0
votes
0answers
23 views

how can i edit this AHK script to make it toggle?

So I have this script (thanks is due to whoever): lctrl:: { toggle:=!toggle } [color=red]~[/color]lbutton:: { if toggle When holding Ctrl, it prevents the scripts from working. How do I ...
1
vote
2answers
27 views

Mapping Ctrl+w to Alt+w sends both Ctrl+Alt+w

I'm using Autohotkey to map Ctrl+w to Alt+w for Cloud9 to close inner tabs with Ctrl+w like usual instead of their Alt+w. I tried to use the following simple mapping ^w::!w But it sends Ctrl+Alt+w ...
1
vote
0answers
32 views

Why do AutoHotKey scripts stop working suddenly on Windows 8.1?

Running Windows 8.1. I have my script (pretty much all hotkeys) set up to run on startup, but after a while (a few days) the script stops working even though it is still shown as running in the Task ...
0
votes
1answer
36 views

How is it possible to find user's keyboard layout change method?

I've written an AutoHotKey script which changes keyboard layout by pressing CapsLock. Pressing CapsLock simply emulates "LeftAlt down + Left Shift + LeftAlt Up" combination. It's obvious, that my ...
1
vote
2answers
44 views

Keyboard shortcut to jump out of text input box (i.e. to remove input focus)

I use autohotkey to perform a ctrl+home combo when I press my middle mouse button, with the result of jumping to the top of the webpage I'm on. This, however, breaks down if the cursor is inside a ...
0
votes
0answers
18 views

How would I play input from the mic through speaker while a key is pressed?

I like to play games with my headphones on, and it feels really weird to not hear myself when I speak. The V key is what I use to transmit, so is there an AutoHotkey script or other program to listen ...
-1
votes
1answer
17 views

XP Right Click doesn't work for multiple selection

When I right click on a text file and select 'Open' it opens the file in notepad. But when I click multiple text files then select 'Open' nothing happens. Can someone help me on this? If it could be ...
0
votes
1answer
47 views

Copy, alt+tab, paste, alt+tab

I want to do a superpaste and wrote this in AHK. Is my code wrong? I get error on both scripts Script 1 ^!c:: Send Send {Ctrl Down}c{Ctrl Up} Sleep, 100 Send !Tab Sleep, 100 Send Send {Ctrl ...
0
votes
2answers
31 views

Autohotkey - Ctrl combination randomly deletes text as I type

My m key is broken, so I am using an autohotkey script to restore its functionality. m is set as Ctrl + , ^,:: send m Every once and a while, pressing this combination deletes everything that I am ...
0
votes
1answer
50 views

Scrolling horizontally in Adobe Reader using AutoHotkey

I want to use AutoHotkey to scroll a document horizontally in Adobe Reader X. Sending wheel messages (0x20e) does not work, nor does sending scroll messages (0x114). The only method I could find is to ...
0
votes
1answer
77 views

Easily type Unicode characters using AutoHotKey?

For example, I want to be able to type → (right arrow) using AutoHotKey's text replacement feature, and this is what my script looks like: ::|rarr::{ASC 2192} So when I type |rarr in my text editor ...
0
votes
2answers
43 views

ahk SetTitleMatchMode stopped working

Problems I had AHK set up on my computer, a few files (programmen.ahk and grammatik.ahk for example) in the same folder /ahk-script I might have installed some program, because the script does not ...
0
votes
1answer
34 views

Autohotkey for letter a + Enter key

I would like to know the script for replacing my Insert Key with the letter a and then Enter key. So if I press Insert, letter a should be typed and then the enter key.
0
votes
1answer
31 views

Get hotkey to type a random number as if I typed it on a keyboard on Windows?

In many cases I need to not just generate a list of random integers (which is easy), but to type random integers into various software. For example, to skip a random number of lines (1 to 100) in ...
1
vote
1answer
20 views

mintty with AutoHotKey

I'm using a simple AHK script to move windows around: NumpadEnd:: WinMove,A,, 50,730,1000,314 return This works great on everything, except mintty. It just completely ignores it. I have ...
0
votes
1answer
75 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
25 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
25 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
56 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
39 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
68 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
202 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
74 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
83 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
32 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
22 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
17 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
35 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
53 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
35 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
50 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
54 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
63 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
35 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
39 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 ...
3
votes
1answer
47 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
49 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
154 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
32 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
61 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
56 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
61 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> ...