
This next one is an example of a script that moves and resizes a particular window. Line 11 … gives a little bubble at the system tray to let me know the operation executed properlyįileappend, %wdidt_date% %wdidt_time% %text% `n, C:\ %wdidt_ynm% WDIDT.txt If the file does not exist, it creates a new one. FileAppend does exactly what its title says: it takes the text in the second argument %wdidt_date% %wdidt_time% %text% 'n and appends it to the file in the last argument. Lines 6 - 8 … generates the timestamp values.The two numbers give the size of the box (width and height). Line 5 … generates the input box with window title “Task Capture”.The keybinding appears in a separate thread of Autohotkey, and this script file was called once the keybinding was invoked. I called this script using the keybinding ctrl-alt-windows-space.In Mac speak that’s “… same folder I pointed NVAlt at”. Note that the text file “lived” in the same folder I pointed ResophNotes at.Appends that update to a text file with today’s date.It’s based on Brett Terpstra’s “What Was I Doing?” workflow. This first one is very simple and straightforward. LMK if you think this is useful or if there are specific things you want to see. I thought I’d post a few Autohotkey scripts on this thread to see if there’s any interest in perhaps posting more of them. Wb.document.getElementsByName("email").EDIT: there are 3 timestamp lines. Wb.document.getElementsByName("email").focus() Wb.document.getElementById("se-signup-legend").click() Wb := ComObjCreate("InternetExplorer.Application") Here is a full example, using IE and the Stack Overflow login page: Create IE instance If you want to move the cursor to the input field, use wb.document.getElementById("login-username").focus() Use Chrome or Firefox to find out how to identify the input field (rightclick and press "inspect element"). Insted of ID, you can also find the input field by name getElementsByName(.), tag name getElementsByTagName(.) or class name getElementsB圜lassName(.). Where wb is the COM object, login-username is the ID of the input field, and myUserName is what you wish to input. You can send text to an input field with the following code: wb.document.getElementById("login-username").value := "myUserName"
