Jump to content

uTorrent restart program


spec1alk

Recommended Posts

I got tired of coming back to find that uTorrent had crashed. So I used a product called AutoIt to create a restart application.

Here is the script:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=..\Icons\filetype3.ico
#AutoIt3Wrapper_outfile=µTorrentRestart.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
$Continue = True
While $Continue = True
; check if the crash dialog exists
If WinExists("µTorrent") Then
; activate the crash dialog
$Activate = WinActivate("[TITLE:µTorrent]", "")
; click the ok button
$Click = ControlClick ( "µTorrent", "", "OK" )
EndIf
Sleep(60000)
WEnd

Basically the script looks for the crash dialog every 60 seconds and then clicks the ok button. Nothing fancy, and it works great.

Enjoy.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...