user5182218
user5182218

Reputation: 11

AutoHotkey don't exit the script

In autohotkey, the code below would let me press alt+1 may times and without exiting the script.

!1::
{
  Send abcd
  Return
}

But how do you accomplish the same result with the code below, using WinWaitActive. Can't figure out how to prevent it from exiting the script.

  WinWaitActive ahk_class Chrome_WidgetWin_1
  Send abcd

Upvotes: 1

Views: 393

Answers (1)

errorseven
errorseven

Reputation: 2672

Use #Persistent

#Persistent
WinWaitActive ahk_class Chrome_WidgetWin_1
Send abcd

Upvotes: 2

Related Questions