Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Torchlight noborder windowed option
- ; Last Updated:
- #Persistent
- #SingleInstance, Force
- #NoEnv
- SetBatchLines, -1
- SetTitleMatchMode, 2 ; partial match
- SetWorkingDir, %A_ScriptDir%
- SendMode, Input
- DetectHiddenWindows, Off ; they're hidden for a reason.
- trayicon=%ProgramFiles%\Steam\steamapps\common\torchlight\Torchlight.ico
- Menu, Tray, NoStandard
- Menu, Tray, Tip, Torchlight noborder
- IfExist, %trayicon%
- Menu, Tray, Icon, %trayicon%
- Menu, Tray, Add, Launch Torchlight, InitCheck
- Menu, Tray, Default, Launch Torchlight
- Menu, Tray, Add,
- Menu, Tray, Standard
- GoSub, InitCheck
- Loop
- {
- WinWait, Torchlight ahk_class OgreD3D9Wnd, , 50000 ; 50 Seconds
- IfWinExist
- {
- WinSet, Style, -0xC00000 ; remove the titlebar
- WinSet, Style, -0x800000 ; hide thin-line border
- WinSet, Style, -0x400000 ; hide dialog frame
- WinSet, Style, -0x40000 ; hide thickframe/sizebox
- WinMove, , , 0, 0 ;;move the window to 0,0
- }
- Sleep 50000 ; 50 Seconds
- }
- Return
- InitCheck:
- MsgBox, 36, Torchlight Launcher, Do you want to launch Torchlight now? `nThis message will exit in 10 seconds otherwise., 10
- IfMsgBox Yes
- {
- Text= Launching Torchlight...
- SplashImage, Torchlight_header.jpg, B1 ZX0 ZY0 CTWhite CW000000 FS18, %Text%. ; b = border ; zx, zy = margin of width and height
- Run, %ProgramFiles%\Steam\Steam.exe -applaunch 41500
- Sleep, 3000
- Splashimage, Off
- }
- Else IfMsgBox No
- ;Do nothing
- Return
- Else IfMsgBox Timeout
- Return
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement