Skip to content

Instantly share code, notes, and snippets.

@Darksecond
Created August 5, 2015 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Darksecond/2a0e8bf83e06c297434b to your computer and use it in GitHub Desktop.
Save Darksecond/2a0e8bf83e06c297434b to your computer and use it in GitHub Desktop.
uPlay autokiller

This will automatically close the uPlay after game report for Ubisoft games I own. You can add your own games to the list to close uPlay after closing the game.

#NoEnv
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir%
GroupAdd, games, Watch_Dogs
GroupAdd, games, ANNO 2070
; Add your uPlay games to the group.
Loop
{
WinWaitActive, ahk_group games
WinWaitClose
; Close uPlay
WinWaitActive, Uplay ahk_class PlatformViewClassSession0
Sleep, 250
WinClose, Uplay
WinKill, Uplay
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment