#autohotkey

SkaladSkalad
2025-06-09

got put on the naughty software list at work. I have a decade of keyboard shortcuts I have grown used to that are gone now. I keep toggling scroll lock trying to access my email or pushing buttons that don't do anything and waiting for something to open.

Stefan 🚗⚡steff@tyrol.social
2025-06-06

Ich werde langsam zum Autohotkey-Liebhaber 🤣

(Ein Skript das im Hintergrund läuft und die Windows-Positionen von Excel und Word überwacht und immer an die selbe Stelle verschiebt. Mit Umschaltmöglichkeit auf verschiedene Modi) #autohotkey

Autohotkey Skript:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
#SingleInstance force
SetTitleMatchMode 2

global isActive := 1
global isActiveText := ["Aus","rechts","links"]

Menu, Tray, Icon, % "V:\_Autohotkey\OfficeWindowCheck.ico"


Loop
{
	If isActive > 0
	{
		WinGet, excelList, List, ahk_exe EXCEL.EXE

		; Zielwerte für Position und Größe
		If isActive = 1
		{
			targetX := 2309
			targetY := 0
			targetW := 1139
			targetH := 1394
		}
		If isActive = 2
		{
			targetX := 0
			targetY := 0
			targetW := 1139
			targetH := 1394
		}

		Loop %excelList%
		{
			hwnd := excelList%A_Index%

        		; Fenster-Titel holen
        		WinGetTitle, winTitle, ahk_id %hwnd%

        		; Nur Fenster mit "Excel" am Ende verarbeiten
        		if (!RegExMatch(winTitle, "Excel$"))
            			continue

			; Aktuelle Position und Größe holen
			WinGetPos, winX, winY, winW, winH, ahk_id %hwnd%

			; Prüfen, ob Position oder Größe nicht stimmen
			if (winX != targetX || winY != targetY || winW != targetW || winH != targetH)
			{
				; Fenster verschieben und Größe setzen
				WinMove, ahk_id %hwnd%, , targetX, targetY, targetW, targetH
			}
		}

		WinGet, wordList, List, ahk_exe WINWORD.EXE

		; Zielwerte für Position und Größe
		If isActive = 1
		{
			targetX := 0
			targetY := 0
			targetW := 1139
			targetH := 1394
		}
		If isActive = 2
		{{
			targetX := 2309
			targetY := 0
			targetW := 1139
			targetH := 1394
		}

		Loop %wordList%
		{
			hwnd := wordList%A_Index%

        		; Fenster-Titel holen
        		WinGetTitle, winTitle, ahk_id %hwnd%

        		; Nur Fenster mit "WORD" am Ende verarbeiten
        		if (!RegExMatch(winTitle, "Word$"))
            			continue

			; Aktuelle Position und Größe holen
			WinGetPos, winX, winY, winW, winH, ahk_id %hwnd%

			; Prüfen, ob Position oder Größe nicht stimmen
			if (winX != targetX || winY != targetY || winW != targetW || winH != targetH)
			{
				; Fenster verschieben und Größe setzen
				WinMove, ahk_id %hwnd%, , targetX, targetY, targetW, targetH
			}
		}

	}
	Sleep 2000
}


; Strg + Shift + W zum Ein/Ausschalten
^+w::
    ;global isActive := !isActive
	global isActive := isActive + 1
	IF isActive > 2
	{
		isActive := 0
	}
	ToolTip % "Office-Monitor: " . isActive . "`n(0=Aus, 1=rechts, 2=links)"
    ;ToolTip % "Office-Window-Monitor: " . isActive
    SetTimer, RemoveToolTip, -1000
return

RemoveToolTip:
    ToolTip
return
2025-05-18

Without looking it up, can you guess what "if 0 < 3" does in #AutoHotKey ?

2025-05-03

Adding #AutoHotkey to the list of cautionary examples of ad-hoc scripting languages. But I'm still glad it exists, now I can start automating the #PocketViewer simulator. Opening it is already so much faster.
But ideally I'd still prefer to reverse engineer it enough to use Frida to add some automation and maybe even a GDB stub.
#theWorkshop

2025-03-18

윈도를 맥처럼 - 맥의 Alt + 백틱키 단축키를 윈도에서 쓰기 (사용중 앱간 윈도우 전환)

hackers.pub/@arkjun/2025/mac-t

2025-03-17

hypetype — как легко печатать любые символы напрямую с клавиатуры. От тире и «кавычек» — до знака ₽ и даже эмодзи

Вы читаете приквел, к моему предыдущему лонгриду на VC «Как за 5 недель я написал свою программу вообще без опыта программирования» . Говорят, зашло нормально. Но в лучших традициях жанра — читать можно в любом порядке. В этом сюжете я отвечу на все «почему» от аудитории — почему программа нужна почти всем, почему считаю, что прямых аналогов нет и почему это не очередной «велосипед», который будет стоять в гараже истории. Расскажу про фишки, которые родились не ради фишек, а через призму боли длиною в 15 лет и почему Илья Бирман ни в чём не виноват.

habr.com/ru/articles/891538/

#типографика #ввод_символов #значки #эмодзи #autohotkey

Kevin Karhan :verified:kkarhan@infosec.space
2025-03-14

@tommorris not really.

The best in terms if "AI #Automation" I've seen is a #SaaS-based #Autoclicker / #macro system that allows dynamically replaying stuff (i.e. fill out forms with variables given).

2025-03-04

An #autohotkey script to switch between multiple instances of the same app in #Windows, in the spirit of ⌘ ` in #macos

apple.stackexchange.com/questi

Screen capture of an AutoHotKey V2 script:

```
<!`::
{
    activeClass := WinGetClass("A")
    processName := WinGetProcessName("A")
    WinMoveBottom("A")
    WinActivate('ahk_class ' activeClass ' ahk_exe ' processName)
    return
}
```
2025-03-04

@petervennemann @kukuk
The advantages of are its cross-platform ability and, like , but unlike and , it doesn't need a separate file for each trigger, so you can have thousands!

2025-02-24

a fun fact about me is i have spent the last two years implementing a custom version of #asetniop in #autohotkey

it’s incredibly broken and does not work but am i learning a lot? not really. am i at least having fun with it? also no

asetniop.com

2025-02-24

i hate computers so explain to me why im googling how to parse #json with #autohotkey :blobcat_flopdaze:

Stephen Millardsylumer
2025-02-22

I've a new blog post out about using my new Logitech Litra Glow light. Being me though, somehow I got an old Raspberry Pi (with some very particular pieces of software), Apple , , and involved in remote controlling it.

thoughtasylum.com/2025/02/22/r

Logitech Litra Glow
The Peter Pan of Nerdery™ 🇦🇺🏜️dhry
2025-02-12

The more I use the more I like it. Still a long way to go to be as powerful as , but I don't think it ever could be due to MacOS restrictions. Meh. I still like it. espanso.org

2025-01-31

Heute sind mir die Tastenkombinationen ausgegangen, also wurde (endlich) das »Universal-AutoHotkey-Script« „entrümpelt“: Statt einer langen Liste genügt nun ein Kürzel, das eine bequeme Auswahl am Cursor (in jedem Programm …) öffnet.
#software #autohotkey

buoa.de/wiki/datum-mit-ahk-var

Double_Virgule ⛈️double_virgule@ioc.exchange
2025-01-28

Having to use #Autohotkey to input data into a legacy form 2000 times. Sitting here watching my PC type the same data in, row by row by row...

I had to put in a half-second delay in between each line or else the system locked up, so my computer is useless for 16 minutes.

Patch Notification Robot 🔔Patchbot_de
2025-01-25

Chris Mallett & Steve Gray released version 2.0.19. autohotkey.com/

2025-01-24

Just came up with an #AutoHotKey (AHK) script to write a #Markdown code block (2x three backticks):

```````ahk
#notrayicon

!x:: ; Alt+X hotkey
Send, ``````
Send, ```
Send, {Backspace}
Send, {Shift down}{Enter}{Shift up}
Send, {Shift down}{Enter}{Shift up}
Send, ``````
Send, ```
Send, {Backspace}
Send, {Shift down}{Enter}{Shift up}
Send, {Up}{Up}
return
```````

It works wherever the current cursor is. Escaping backticks in AHK was the tricky part.

Jeff Langejefftml@toot.io
2025-01-21

Wrote an autohotkey script that resizes my active window to 16x9 in a choice of scales. Also works with multiple monitors and of any size. github.com/jefe317/autohotkey/ Thanks @smagnusson for the inspiration!

#autohotkey #scripting

razzlom is always sadrazzlom@quietplace.xyz
2025-01-04

#TIL

Wrote my first
#AutoHotKey script and it works, kinda...

2024-12-28

... To #MSWindows11 [Copilot] key do nothing at all via #AutoHotkey, in "neuter-copilot.ahk" file ...

#Requires AutoHotkey v2.0

InstallKeybdHook

; Does not disable [Copilot] key.
;#C::Return

; Scancode does not work.
;SC0x000100003100::Return

; Works: Does nothing.
#<+F23::Return

; Send [Ctrl]? Does not work: "Ctrl+R" does not reload the Firefox tab.
;#<+F23::^

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst