Author: twalp
Subject: tasbar mode without initial popup - SOLUTION
Posted: 30 October 2014 at 3:39pm
At boot I want to run BGInfo with some custom configuration info, NOT display anything initially, but have it available in the notification area for later reference.
My impression from the docs is that the /taskbar command line option should accomplish my goal but for some reason the BGInfo popup window appears anyway and must be manually closed.
My particular BGInfo report can also be fairly long so part of it extends below the bottom edge of the screen.
Maybe I'm the only user who has experienced these problems, but in case not, below is an AutoIt script inspired by a post by "sysinternals4mfe" in this 2012 thread.
You'll want to change the name of the configuration file ("my.bgi") in the script, or delete it, but otherwise build it in AutoIt, put the executable in the folder with BGInfo, and put a shortcut to the executable in your Startup folder.
(download zip file here)
$SCRIPT = "bginfo.exe my.bgi /TASKBAR /NOLICPROMPT /SILENT"
Run($SCRIPT)
$TITLE = "BGInfo"
WinWait($TITLE,"",4)
Call ("_Middle",$TITLE)
ControlSend( $TITLE,"","","!{F4}")
; Center Window on Screen
Func _Middle($TITLE)
$size = WinGetClientSize($TITLE)
Local $y = (@DesktopHeight / 2) - ($size[1] / 2)
Local $x = (@DesktopWidth / 2) - ($size[0] / 2)
Return WinMove($TITLE,"", $x, $y)
EndFunc ;==>_Middle
Subject: tasbar mode without initial popup - SOLUTION
Posted: 30 October 2014 at 3:39pm
At boot I want to run BGInfo with some custom configuration info, NOT display anything initially, but have it available in the notification area for later reference.
My impression from the docs is that the /taskbar command line option should accomplish my goal but for some reason the BGInfo popup window appears anyway and must be manually closed.
My particular BGInfo report can also be fairly long so part of it extends below the bottom edge of the screen.
Maybe I'm the only user who has experienced these problems, but in case not, below is an AutoIt script inspired by a post by "sysinternals4mfe" in this 2012 thread.
You'll want to change the name of the configuration file ("my.bgi") in the script, or delete it, but otherwise build it in AutoIt, put the executable in the folder with BGInfo, and put a shortcut to the executable in your Startup folder.
(download zip file here)
$SCRIPT = "bginfo.exe my.bgi /TASKBAR /NOLICPROMPT /SILENT"
Run($SCRIPT)
$TITLE = "BGInfo"
WinWait($TITLE,"",4)
Call ("_Middle",$TITLE)
ControlSend( $TITLE,"","","!{F4}")
; Center Window on Screen
Func _Middle($TITLE)
$size = WinGetClientSize($TITLE)
Local $y = (@DesktopHeight / 2) - ($size[1] / 2)
Local $x = (@DesktopWidth / 2) - ($size[0] / 2)
Return WinMove($TITLE,"", $x, $y)
EndFunc ;==>_Middle