![]() ![]() 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). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |