autohotkey

How do you control a .NET checkbox from AutoHotKey?

I have a .NET application that contains a checkbox (System.Windows.Forms.Checkbox). This component (WindowsForms10.BUTTON.app.0.378734a1) is not directly controllable in AutoHotKEy using "Control,Check", or "ControlGet,Checked". Is there a way of controlling this component using CallDLL, or some kind of CLR hosting within AutoHotKey? ...

Autohotkey - How to get windows' "head" position

I'm trying to get the position of a window. So I can write a script to double click to that.Is there any ways to do this :D ...

How can I pass the intercepted key through to an application in autohotkey.

I'm constantly activating Firefox then hitting Ctrl+L to activate the location bar and do a search or type a url. Ideally I can be in any application and hit Ctrl+L and firefox will activated with the location bar activated and ready for input. In steps AutoHotkey scripting... I've tried this and it doesn't seem to work. From what I...

Regex that ignores double-quoted sections

I'm trying to write a regular expression (via Autohotkey's RegExReplace function) that will enforce variable casing in exported VBA code as a preprocessing step to version control. So if I want all case-insensitive occurrences of 'firstName' to be changed to match that case then the following line: If FirstName = "" Then MsgBox "Please...

Why does this autohotkey script fail to consistently preserve clipboard contents?

Here's a snippet of a script of mine attempting to put extra Unicode awesomeness at my fingertips. ::\iff:: SendUnicode("⇔") return ; many rules later... SendUnicode(char){ ClipSaved := ClipboardAll ;;; ;apparently this is the only way AHK can handle Unicode. Transform, Clipboard, Unicode, %char% SendInput ^v ...

Easy to use AutoHotkey/AutoIT alternatives for Linux

Hi all, I'm looking for recommendations for an easy-to-use GUI automation/macro platform for Linux. If you're familiar with AutoHotkey or AutoIT on Windows, then you know exactly the kind of features I need, with the level of complexity. If you aren't familiar, then here's a small code snippet of how easy it is to use AHK: InputBox, ...

Gui window Positioning in Autohotkey

In Autohotkey, I want to position my Gui window to right bottom of the screen but how? For illustrate, +--------------------------------------+ | Desktop (screen) | | | | | | +----------+ | | | ...

Do you have a development IDE hotkey set in AutoHotkey?

I've recently rejoined the AutoHotkey band wagon, and I've been setting up a master script for myself. Generally, I have a few global hotkeys, for doing things like popping open the calculator, and frequently used solutions. I even have a hotkey to restart certain local windows services, I've also got several contextual hotkeys that are ...

Does anyone have a Notepad++ plugin that will generate UUIDs and insert them.

I Often need UUIDs inserted into files that I'm editing in Notepad++. Does anyone have a macro or add in that does this. Or an autohotkey script? ...

AutoHotkey Script to send pound (£) on double press of Shift+3

I'm trying to make a script that sends a pound instead of a dollar when you hold down Shift and press 4 twice quickly. Has anyone seen any code that does this sort of thing? EDIT: Okay I've seen some documentation and managed to get it detecting the double shift+3 press like this: Shift & 4:: if (A_PriorHotkey <> "Shift & 4" or A_Time...

Autohotkey to select text under cursor?

Hello, Is it possible to select text under cursor using Autohotkey specifically, using a mouse and a key combination. e.g. I specifically want to just do a Ctrl-click on any word in IE/FF/Foxit Reader and a webpage with first google search result opens up. Thank you. ...

Assign hotkeys to windows (and remember size & location). AHK

Hi, I have found the following script for dynamically assigning hotkeys to already open windows: Code (Expand): Loop 10 { i := A_Index - 1 HotKey #^%i%,DynHotkey HotKey #%i%, DynHotkey HotKey #!%i%,DynHotkey } Exit DynHotkey: StringRight i, A_ThisHotKey, 1 StringMid what,A_ThisHotKey, 2, 1 var := var%i% IfEqual...

Low-level Keyboard Hooks/SendInput with Winkey+L possible? (workstation lockout is intercepted in Vista and higher)

I work on a project called UAWKS (Unofficial Apple Wireless Keyboard Support) that helps Windows users use Apple's bluetooth keyboard. One of the main goals of UAWKS is to swap the Cmd key (which behaves as Winkey in Windows) with Ctrl, allowing users to do Cmd+C for copy, Cmd+T for new tab, etc. It is currently developed using AutoHotk...

What is a flexible, hybrid python collection object?

As a way to get used to python, I am trying to translate some of my code to python from Autohotkey_L. I am immediately running into tons of choices for collection objects. Can you help me figure out a built in type or a 3rd party contributed type that has as much as possible, the functionality of the AutoHotkey_L object type and its m...

How to set a checkbox to checked state in a ListView using Autohotkey

Hi, I am writing a Autohotkey script that need to 'check' and 'uncheck' checkboxes defined inside a listViewControl. I think the way to do it is using a SendMessage to the listview (or maybe to the listview item itself?) using the LVM_SETITEMSTATE parameter but i don't know the exact format...anyone have any idea? SendMessage, LVM_SETI...

Taking notes to a background text editor without switching windows

I am looking for a solution to a specific use case: When I read something on my browser or pdf reader, I want to take notes without switching windows. I want to type right on my browser or pdf reader, but the typed text should go to the background text editor like notepad. Is this possible? Do you know any existing automation script t...

Autohotkey script for muting speakers for a certain number of seconds

I'm trying to use Autohotkey to create a script that will Mute the computer's speakers for a number of seconds. This is useful for watching television online -- when it comes to a commerical, it will give a message saying 'programming will resume in XX seconds'. If it says 30 seconds, then I would like to hit Windows-KeyPad3 to indicat...

AutoHotKey mapping

Hi I am trying to map the following key combinations on my keyboard using AutoHotkey - Alt i -> Up Arrow Alt j -> Left Arrow Alt k -> Right Arrow Alt m -> Down Arrow I added the following code to my AutoHotkey.ahk file - !i::Up !j::Down !m::Left !k::Right but it doesn't produce the desired results. Please help!! ...

Question about complex loops

Hello. I'm writing a script in AutoHotKey, and I've stumbled upon an impasse. Right now I have a working GUI that involves checkboxes and dropdown lists. The program is a macro script for gaming-- the user checks which macros he wants running in the background, submits his options, and the program constantly evaluates various conditions ...

autohotkey long text and in a virtual machine

So I'm trying to learn autohotkey scripts and the documentation is lacking at best. First, can authotkey read commands and perform actions and such inside a virtual machine? I have a windows host and a linux virtual machine running eclipse. I'd like to get a hostring (or a keyboard macro, either is fine) to put in some long (10+ lines) o...