show taskbar

Posted By: GameScore

show taskbar - 04/01/12 10:28

is there a way to set the windows taskbar visible at runtime?
Posted By: Ch40zzC0d3r

Re: show taskbar - 04/01/12 11:42

Not in GS itself, you need a windpows API or a extern program like vb.net grin
Posted By: GameScore

Re: show taskbar - 04/01/12 11:44

ok, i see
Posted By: Uhrwerk

Re: show taskbar - 04/01/12 12:40

There you go:
Code:
#include <acknex.h>
#include <windows.h>

HWND h = 0;

void exit_event()
{
	ShowWindow(h,SW_SHOW);
}

void main()
{
	h=FindWindow("Shell_TrayWnd","");
	ShowWindow(h,SW_HIDE);
	on_exit = exit_event;
}


Stay away from vb.net and don't start creating other windows apis than the original one. grin
Posted By: ratz

Re: show taskbar - 04/01/12 13:33

winexeC
Posted By: Uhrwerk

Re: show taskbar - 04/01/12 14:23

Cucumber
Posted By: GameScore

Re: show taskbar - 04/01/12 14:40

Hey thanks,
but the code does not work really
this will hide the taskbar on runtime
if i minimize the window
i see no taskbar and i can not maximize the window again laugh
so i must close the programm by the task manager

i asume the code should look like this

Code:
h=FindWindow("Shell_TrayWnd","");
ShowWindow(h,SW_SHOW);  <-- SW_SHOW not hide
on_exit = exit_event;



but there is no taskbar visible in my game
Posted By: Uhrwerk

Re: show taskbar - 04/01/12 14:55

You asked for a way to show the taskbar and I gave you a sample code that showed and hid it. Of course you have to adapt it to your needs. If its not visible your game most likely runs in fullscreen mode?
Posted By: GameScore

Re: show taskbar - 04/01/12 15:01

yeah the game runs at fullscreen mode
sry i dont want to tease you
Posted By: Uhrwerk

Re: show taskbar - 04/01/12 18:36

Well, i don't think this is possible in fullscreen mode. As the name says. Fullscreen mode. An application covers the full screen. You could switch to windowed mode for this. Why do you want to show the taskbar in fullscreen mode anyways?
Posted By: GameScore

Re: show taskbar - 04/01/12 18:54

i write a small app for my entity`s and i want to watch them in a full screen
i was trying the window mode but its not judder-free
the mouse and all this stuff works not fluent
this is why i thought i would try to show the taskbar in fullscreen mode

anyway i will look for a another solution
tnx
Posted By: Uhrwerk

Re: show taskbar - 04/01/12 22:41

Under normal circumstances the windowed mode runs faster as the resolution is lower and there is no 60 Hz limitation. Are you sure the jittering is not caused by something in your script? Have you compared the performance in bot situations with the debug panel?
Posted By: GameScore

Re: show taskbar - 04/02/12 07:55

yeah i should do that
maybe i find there the solution
tnx
© 2023 lite-C Forums