
- #Nvalt hack update
- #Nvalt hack mac
Line 39 … makes sure there are two monitors before attempting to move the window to monitor 2. Line 38 … re-invoking SetTitleMatchMode is almost definitely not needed, but it always made me feel better. The second one will launch Outlook if no existing window is found (at least I think that’s how its supposed to work). The first WinActivate will activate any existing window with “Outlook” in the title (the one closest to the top of the alt-tab stack if there are multiple windows). IfWinExist asks the system whether there’s a window who’s title contains “Outlook”. The SetTitleMatchMode = 2 commands relaxes the matching to “window title contains”. Lines 28-32 … activates and brings the Outlook window to the front. It also counts from top to bottom in pixels. So if you have 2 monitors that are 1024 x 768, the right hand monitor’s left edge is pixel 1025. Note that SysGet counts in pixels from far left to far right. Those values are stored in variables derived from the original variable as Mon2_Bound_right and so on. It returns 4 values: LEFT, RIGHT, TOP, BOTTOM. Line 23 … asks the system what are the dimensions of Monitor 2. In this case, it asks how many monitors are connected and stores the resulting integer in the variable num_monitors. Lines 22 … the SysGet command gets info from the system. Variables don’t need to be separately defined. Line 3 … #singleInstance force checks local memory for a process with the same name and kills it if one exists. I had a foreground thread of Autohotkey with the keybinding that called this script, and this script ran and then quit. As with many of my scripts, this one was tied to a keybinding. This one took the main Outlook window, moved it to Monitor 2 (Widows designates monitor numbers rather than Mac’s numbering from left to right), and resized it to fit. 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.
#Nvalt hack mac
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.
#Nvalt hack update
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.