AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DigsbyBuddyList - Script to Hide Digsby BuddyList on Startup

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Voltron43



Joined: 27 Mar 2009
Posts: 76
Location: Dublin, IE

PostPosted: Fri Oct 09, 2009 1:01 pm    Post subject: DigsbyBuddyList - Script to Hide Digsby BuddyList on Startup Reply with quote

To get Digsby to startup with the Buddy List minimized to the system tray, the value show_on_startup: yes under the buddylist: section in the defaults.yaml file located in the Digsby\res directory needs to be changed to show_on_startup: no. However, every time Digsby is updated, the setting is put back to show_on_startup: yes. This script automates the task of backing up the defaults.yaml and changing the setting back to show_on_startup: no.

Code:
;===============================================================================
;
; TITLE:        Digsby Buddy List
; VERSION:      v0.1.0
; LINK:         http://www.autohotkey.com/forum/
;
; AUTHOR:       Voltron43
; DATE:         10/09/09
; HOMEPAGE:     http://www.autohotkey.net/~Voltron43/#DigsbyBuddyList
;
;===============================================================================
;
; DESCRIPTION:  To get Digsby to startup with the Buddy List minimized to the
;               system tray, the value show_on_startup: yes under the buddylist:
;               section in the defaults.yaml file located in the Digsby\res
;               directory needs to be changed to show_on_startup: no. However,
;               every time Digsby is updated, the setting is put back to
;               show_on_startup: yes. This script automates the task of backing
;               up the defaults.yaml and changing the setting back to
;               show_on_startup: no.
;
;===============================================================================

FileMove, %A_ProgramFiles%\Digsby\res\defaults.yaml, %A_ProgramFiles%\Digsby\res\defaults.yaml.backup,1
FileRead, aDefaults, %A_ProgramFiles%\Digsby\res\defaults.yaml.backup
StringReplace, aDefaults, aDefaults, show_on_startup: yes, show_on_startup: no
FileAppend, %aDefaults%, %A_ProgramFiles%\Digsby\res\defaults.yaml
Run, %A_ProgramFiles%\Digsby\res\defaults.yaml

;===============================================================================
; EOS
;===============================================================================

_________________
My Scripts
Back to top
View user's profile Send private message Visit poster's website
kodybrown



Joined: 14 Dec 2007
Posts: 5
Location: Salt Lake City, Utah

PostPosted: Wed Jan 26, 2011 5:18 pm    Post subject: Reply with quote

Thank you for this script. It works perfect! Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group