Here are some ideas for a work-around...
I got the idea from here
viewtopic.php?f=83&t=119688
I'm not sure I've used the commands/functions correctly though... Firstly, I experimented with just the
SetWinDelay, using it with Notepad. I didn't see a big difference in how long the window appeared prior to moving though.
Then I added the transparency. As you might guess, the window still "appears" in the original spot... But it's not annoying because you can't see it. It seemed to work perfectly. But then I experimented with the
WinSetExStyle. That sort of worked, but then the transparency stopped working for some reason. IDK why.
Code: Select all
#SingleInstance
#Requires AutoHotkey v2+
hwnd := WinWait("Untitled - Notepad", , 50)
if hwnd {
;WinSetExStyle(+32,hwnd) ; Make "clickthrough"
WinSetTransparent(50, hwnd) ; Make opacity = 0
sleep 3000 ; <--- remove later
SetWinDelay(-1) ; Sets time between moves. -1 = no time
WinMove(0,0, 300, 300, hwnd)
;WinSetExStyle(-32,hwnd) ; Turn off "clickthrough"
WinSetTransparent(255, hwnd) ; Make opacity = full
}
EDIT:... Actually... After experimenting more: When I thought it was working, I must've just forgotten to put the notepad window back in the start location.... I see now that there is an unavoidable delay between the window showing and whatever you do (move/transparency/click-through).
Sorry.