Jump to content

BBE

Members
  • Posts

    1
  • Joined

  • Last visited

BBE's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. So I created a really basic script just to close a program after it's been idle for x amount of seconds. Script is as follows: #NoTrayIcon Opt("WinTitleMatchMode", 2) ;2 = any substring Opt("TrayIconDebug", 1) $S_running = "check-4-app" ;name the script If WinExists($S_running) Then Exit AutoItWinSetTitle($S_running) $title = "Notepad++" $count = 0 While 1 $state = WinGetState($title) $count += 1 If $state = 15 Or $state = 47 Or $state = 0 Then $count = 0 If $count > 10 Then WinClose($title) ToolTip("count = " & $count, 0, 0, "state = " & $state) Sleep(100) WEnd It works great, but it creates a small gui box in the top left corner that counts the state, and timer of inactivity. Is there a way to hide that counter in the top left corner completely?
×
×
  • Create New...