flat assembler
Message board for the users of flat assembler.

Index > Windows > Window Transparency

Author
Thread Post new topic Reply to topic
crazyperson



Joined: 03 Oct 2007
Posts: 5
crazyperson 03 Oct 2007, 06:50
I have been trying to use SetLayeredWindowAttributes to make a simple console transparent but I am completely lost(I started fasm today). So far I have got this far:



Code:
include '%fasminc%\win32ax.inc'

.data

outhandle dd ?

.code
Start:

invoke AllocConsole
invoke GetStdHandle, STD_OUTPUT_HANDLE
mov [outhandle], eax

invoke SetLayeredWindowAttributes, [outhandle], 0,92, LWA_ALPHA
invoke Sleep, 10000
invoke ExitProcess, 0

.end Start        


I am probably doing it all completely wrong but how can I make a window transparent?
Post 03 Oct 2007, 06:50
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 12749
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 04 Oct 2007, 21:57
i posted this last time,
http://board.flatassembler.net/topic.php?t=5066
don't know if it would works on console window or not...
you can try on the GetModuleHandle(Null)

* edit
the return of GetConsoleWindow should works.
Post 04 Oct 2007, 21:57
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.