The code also works if I uncomment the MsgBox just before the SplashImage – I then see the screen go black for half a second.
I'm totally baffled! Any ideas?
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;#SingleInstance, Force
#Persistent
^4::
Testing4()
{
;MsgBox, Test!
SplashImage,,B w%A_ScreenWidth% h%A_ScreenHeight% cwBlack NA
Sleep,500
SplashImage,off
}