123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|433|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> No Screen

Sun, 07 Oct 2007, 16:10
dna

I was wondering if there was a method for running a BB2D app and NOT have any screen display show.
There would just be the application running in the background.

-=-=-
DNA
Sun, 07 Oct 2007, 18:09
JL235
Not that I am aware of. I presume this would be some sort of Win32 call to destroy the window. All free languages that I have used offer this form of functionality.
Mon, 08 Oct 2007, 08:55
Paul
Wont work in BB2D isnce you cant send you'r window handle to the windows api(i think).
Mon, 08 Oct 2007, 09:40
JL235
There must be a way to find out the window handle. How else would all those Windows window managers work?
Mon, 08 Oct 2007, 10:02
Nolan
I believe Bram32 used to mess around with doing stuff like that, but in all honesty, Blitz just isn't the language for this.

If you want this functionality with ease, use a more versatile language.

-=-=-
nolandc.com
Mon, 08 Oct 2007, 10:15
Jayenkai
Yeah, Blitz is really meant for making games. Take away it's window, and you're left with a fairly messed up language with most of it's key features missing.

Would something like FreeBasic handle this well?

-=-=-
''Load, Next List!''
Mon, 08 Oct 2007, 14:48
Scherererer
C#!!!!

in the form's code:

DONE!

-=-=-
YouTube Twitter
Computer Science Series: Logic (pt1) (part 2) (part 3) 2's Complement Mathematics: Basic Differential Calculus
Mon, 08 Oct 2007, 16:16
JL235
I have another way. This code will also produce a program without a window:

Beautiful. Some of my finest work (the point, don't even make a form).
Tue, 09 Oct 2007, 16:34
dna

That's what I thought.

I'll work around it.


Thanks for your response.

-=-=-
DNA
Tue, 09 Oct 2007, 17:12
tnt23
it's possible if you mess around with windows api dll's, but a window will always come up, at least for a fraction of a second.

other languages would work much better. the point of blitz is to not have to worry about windows or anything in the background, but it obviously takes away some of the functionality also.

-=-=-
What if this were not a hypothetical question?
Thu, 11 Oct 2007, 14:59
dna

A fraction would be OK.
I just need to have the screen not be present while the program is running in certain instances.

-=-=-
DNA
Thu, 11 Oct 2007, 15:11
Dabz
Look at Win32 functions:-

GetActiveWindow() : msdn2.microsoft.com/en-us/library/ms646292.aspx

ShowWindow() : msdn2.microsoft.com/en-us/library/ms633548.aspx

I cannot remember if the original BlitzBasic had userlibs, but you should be able to hook up to it using CallDLL either directly, or through your own DLL.

There'll be a way!

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit
Fri, 12 Oct 2007, 14:37
dna
I do not have the CallDll function in my version of blitz. I have been looking for the patch or have been trying to swap Purebasic for B3D.

The person has not yet responded but the swap would solve many problems.

-=-=-
DNA
Sun, 14 Oct 2007, 08:44
Paul
Wont wok in BB2D, Userlibs are needed to send the window handle
Tue, 16 Oct 2007, 09:49
Dabz

Wont wok in BB2D


Yes it will, if he had CallDLL... You basically create a DLL that contains a function that contains along the lines of:-

HWND hWnd = GetActiveWindow();
ShowWindow(hWnd,SW_HIDE);

And its done in a oner!!!

You can even find the handle to the window using its caption or its class name if you need it to be 100% sure. So you dont need to send the handle through to the DLL, it can find it on its own.

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit
Tue, 16 Oct 2007, 13:33
JL235
Paul's point was not that it couldn't be done, but that it couldn't be done without calling a dll.
Tue, 16 Oct 2007, 23:38
Dabz

Paul's point was not that it couldn't be done


Paul's Quote:-

Wont work in BB2D


He also states userlibs are needed to send the windows handle, which I have pointed it is not true.

Or am I reading a different post?

I dont know what version of BB2D dna is using, only that I remember my version of BB2D had CallDLL.

Dabz


-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit
Wed, 17 Oct 2007, 07:01
JL235
DNA is probably using the free version which is why it is probably missing.
Wed, 17 Oct 2007, 15:57
dna

Yes that's what I have. I was informed that there was a patch for it though.

Forget it

-=-=-
DNA
Sat, 20 Oct 2007, 12:15
Paul
OK i was wrong you could do it like maDenathorn said.
or instead of using GetActiveWindow() you could use findwindow and send the windowname to the dll.
Sat, 20 Oct 2007, 13:33
Dabz

OK i was wrong you could do it like maDenathorn said.


lol, I've done a lot of work with the Win32 API and know it like the back of my hand... I like to play around with all sorts of WinAPI stuff and you can be right naughty if you know your way around.

When I was learning WinAPI I made an app (With Blitz+) that changed a mates Start Button to say 'TWAT' (Pardon my french) on boot up... I was experimenting with GDI, so it was an obvious path to follow!

For anyone who is interested, here is how to get the start buttons handle:-



hehehe

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit
Sat, 20 Oct 2007, 14:41
power mousey

hahaha

easy, take it easy guys.

I'm sure there is a solution or work around
to dna diliema or problem.

Dna,
how about something like this?

code and run your app in Blitz.
yet whether in 2d and/or in 3d set the Graphics
option to Windowed and kick off your app and let it run.
Yet, minimize the window it is in.
Or switch to another Window app.