; --- THE TELEPORTATION HEADER ---
SetTitleMatchMode, 2 ; Allow matching partial window titles
TargetWindow := "ahk_exe idea64.exe"
IfWinExist, %TargetWindow%
{
WinActivate, %TargetWindow% ; Jump to Terminal 2
WinWaitActive, %TargetWindow% ; Wait for the "teleport" to finish
}
else
{
MsgBox, 16, Error, IntelliJ is not running!
ExitApp
}
; --- YOUR AUTOMATION STARTS HERE ---
Send, ^s ; Example command
ToolTip, `n`t Script running in IntelliJ! `n`t
Sleep, 2000
ToolTip ; Hide tooltip
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)