PPT定時器小記

      在平常會議彙報中,每每會出現超時的狀況。此時須要一種優雅提醒講演者加快速度的方式。PPT定時器就是其中的一種方法。git

 

      ppttimer,一款在GitHub上發佈的開源軟件,基本能知足我在本項工做中的需求。我在其基礎上添加了公司LOGO,加強了公司的標識感github

 

      1.從GitHub上下載源代碼ui

 

      2.打開ppttime.ini文件,添加自定義LOGO參數spa

;LOGO圖標
logoico=.\logo.png
logowidth=64
logotop=20
logoleft=7

 

      3.用記事本打開ppttimer.ahk文件,添加參數定義語句,添加插入LOGO圖象語句,修改插入文本語句code

IniRead, logoico, %pt_IniFile%, Main, logoico, %A_ScriptDir%\
iniread, logowidth, %pt_IniFile%, main, logowidth, 64
iniread, logotop, %pt_IniFile%, main, logotop, 20
iniread, logoleft, %pt_IniFile%, main, logoleft, 6
textwidth := bannerWidth - logowidth - logoleft
textleft := logowidth + logoleft

...

Gui, Add, Picture, x%logoleft% y%logotop% w%logowidth% h-1, %logoico%
Gui Add, Text, x%textleft% y0 h%bannerHeight% w%textwidth% vpt_DurationText

 

      4. 從AutoHotKey官網下載編譯器。本文使用的版本爲1.1.25.01htm

 

      5. 打開Compiler\Ahk2Exe.exe文件,編譯修改後的ppttimer.ahk文件,生成ppttimer.exe文件便可blog

 

參考ip

AutoHotKeyHelpget