Guest User

Untitled

a guest
Sep 25th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. loop:
  2.         FindWindow $1 '#32770' '' 0 $1
  3.         IntCmp $1 0 +4
  4.         System::Call "user32::GetWindowText(i r1, t .r2, i r0) i."
  5.         StrCmp $2 "$(^Name)" 0 loop
  6.         System::Call "user32::SetForegroundWindow(i r1) i."
  7.     System::Call "kernel32::CreateMutexA(i 0, i 0, t '$(^Name)') i .r0 ?e"
  8.     Pop $0
  9.     StrCmp $0 0 launch
  10.     StrLen $0 "$(^Name)"
  11.     IntOp $0 $0 + 1
  12.     loop:
  13.         FindWindow $1 '#32770' '' 0 $1
  14.         IntCmp $1 0 +4
  15.         System::Call "user32::GetWindowText(i r1, t .r2, i r0) i."
  16.         StrCmp $2 "$(^Name)" 0 loop
  17.         System::Call "user32::SetForegroundWindow(i r1) i."
  18.         Abort
  19.     launch:
Add Comment
Please, Sign In to add comment