netmaestro wrote:Are you using the demo version? If not, that stuff is native. Also, there's a better way to get the console hwnd:
Code: Select all
Import ""
GetConsoleWindow_() As "_GetConsoleWindow@0"
EndImport
OpenConsole("MyConsole")
hwnd = GetConsoleWindow_()
Opacity= 100 ; put 0 To invisible, 255 opaque
SetWindowLong_(hwnd, #GWL_EXSTYLE, #WS_EX_LAYERED) : SetLayeredWindowAttributes_(hwnd, 0, Opacity, 2)
Input()
GetConsoleWindow is in kernel32.lib which is always open so a null import is all you need.
Hi NetMaestro, Thanks for your time!
Not..

Im using 5.21LTS, Im registered user! Have 5.22 but not installed because have Pure_color and others..

And i have to say, im very happy with the price and product! (Thanks Fred & Cia.!)
Sorry NetMaestro, but is the same to get the hwnd of the window? I think, can you explain a little why is better the other way? (I dont know)
I try this other way with your code:
Code: Select all
Import "":GetConsoleWindow_() As "_GetConsoleWindow@0":EndImport
win=OpenWindow(#PB_Any,0,0,300,100,"Dummy Invisible",#PB_Window_Invisible)
OpenConsole("MyConsole") : hwnd = GetConsoleWindow_() : SetParent_(hwnd,WindowID(win))
Input()
CloseWindow(win):End
No task in taskbar with this code. This is the right way to do this?
Nunca te acostarás sin saber algo nuevo. (Spanish proverb)
