Search found 20 matches

by TheAlmightyGuru
Feb 18, 2020 2:49
Forum: Beginners
Topic: How to get the Documents folder of the current Windows user.
Replies: 13
Views: 970

Re: How to get the Documents folder of the current Windows user.

Thank you both for the suggestions. I've been trying to figure out how to convert this Windows API call to the FreeBASIC syntax. This is what I've got so far from looking at FreeBASIC examples, but I'm getting the error, 59: Illegal specification, at parameter 1. Any chance you could either point me...
by TheAlmightyGuru
Feb 14, 2020 21:26
Forum: Beginners
Topic: How to get the Documents folder of the current Windows user.
Replies: 13
Views: 970

How to get the Documents folder of the current Windows user.

I'm trying to save a file into the user's documents folder. Is there any way to get the Documents folder of the currently logged in user in Windows?

This is usually stored in C:\Users\[user name]\Documents.

Likewise for folders like Desktop, Pictures, Music, etc.

Thanks!
by TheAlmightyGuru
Jul 26, 2014 1:42
Forum: Beginners
Topic: Return an array from a Function.
Replies: 9
Views: 1772

Re: Return an array from a Function.

Thank you all so much for the responses, and I was able to get my program working using a sub routine like several of your examples show.

You guys are awesome!
by TheAlmightyGuru
Jul 25, 2014 21:12
Forum: Beginners
Topic: Return an array from a Function.
Replies: 9
Views: 1772

Return an array from a Function.

Does FreeBASIC support Functions returning arrays? The help shows how to pass in an array, but I couldn't find anything about returning an array. I've tried various forms for declaring the function including using passing in an array ByRef, but the compiler doesn't seem like anything I do. Without g...
by TheAlmightyGuru
Jun 23, 2014 21:45
Forum: Beginners
Topic: Combining a sprite with alpha transparency.
Replies: 20
Views: 3023

Re: Combining a sprite with alpha transparency.

Merick, your solution of converting the image into one with stored transparency is going to work the best for me. Thanks, also, to everyone who made suggestions and offered code! You guys are the best! It seems that FreeBASIC's default way of putting 24-bit sprites onto a 32-bit buffer is the opposi...
by TheAlmightyGuru
Jun 18, 2014 18:24
Forum: Beginners
Topic: Combining a sprite with alpha transparency.
Replies: 20
Views: 3023

Re: Combining a sprite with alpha transparency.

BasicCoder2: Thank you for your responses! I copied the code you modified from mine program and ran it, and this is my result: http://www.thealmightyguru.com/Bad.png Notice how the letters are entirely transparent? I want them to be white like in the Font.bmp file. You say that they looked fine when...
by TheAlmightyGuru
Jun 17, 2014 19:48
Forum: Beginners
Topic: Combining a sprite with alpha transparency.
Replies: 20
Views: 3023

Re: Combining a sprite with alpha transparency.

Thank you Jonge, that does indeed work for me. Unfortunately, I have one more problem that exists because my test program and my real program differ slightly. In the test program, I generated my sprite graphic with a magenta box, and a blue circle. You fixed the program by giving the magenta box ful...
by TheAlmightyGuru
Jun 17, 2014 18:07
Forum: Beginners
Topic: Combining a sprite with alpha transparency.
Replies: 20
Views: 3023

Re: Combining a sprite with alpha transparency.

Thank you for your help Thorbenn. That's very close to what I want, but it's missing one key element. I want the background of the first image to be translucent. FreeBASIC has the ability to draw a sprite with "clear" pixels onto another image, and then PUT the combined image onto the scre...
by TheAlmightyGuru
Jun 17, 2014 13:19
Forum: Beginners
Topic: Combining a sprite with alpha transparency.
Replies: 20
Views: 3023

Re: Combining a sprite with alpha transparency.

The way I'm thinking that it works is PUTting a sprite onto an existing graphic should override the pixels with whatever is written from the PUT. TRANS only skips pixels, it doesn't actually do anything with alpha. Although, I think what's happening is, since the PUT used by the sprite doesn't speci...
by TheAlmightyGuru
Jun 16, 2014 21:09
Forum: Beginners
Topic: Combining a sprite with alpha transparency.
Replies: 20
Views: 3023

Combining a sprite with alpha transparency.

I'm trying to create something like a word bubble, but with a sprite inside of it. The word bubble is meant to be semi-transparent, but the sprite in the bubble is not. I've tried combining two images, a background box with alpha transparency, and a sprite, and while the background box is displayed ...
by TheAlmightyGuru
Jul 31, 2013 13:24
Forum: General
Topic: Different command line problem
Replies: 5
Views: 671

Re: Different command line problem

Thank you, that's quite helpful!
by TheAlmightyGuru
Jul 30, 2013 14:32
Forum: General
Topic: Different command line problem
Replies: 5
Views: 671

Re: Different command line problem

You guys are the best! This works perfectly, thank you so much.

Also, I didn't know that you could quote a quote like that. I'd been looking through the help doc for how to do that, but I never found it. Thanks again!
by TheAlmightyGuru
Jul 30, 2013 1:51
Forum: General
Topic: Different command line problem
Replies: 5
Views: 671

Different command line problem

You guys were great at helping me out last time, so hopefully you can point me in the right direction here. This problem is related my other issue, but I think its different enough to warrant a new thread. My problem occurs when I try to execute a program with an argument using the shell command. No...
by TheAlmightyGuru
Jul 23, 2013 13:22
Forum: General
Topic: Executing a command line program, but storing the output.
Replies: 3
Views: 835

Re: Executing a command line program, but storing the output

You people are the best! Both examples work perfectly, thank you so much!
by TheAlmightyGuru
Jul 22, 2013 22:22
Forum: General
Topic: Executing a command line program, but storing the output.
Replies: 3
Views: 835

Executing a command line program, but storing the output.

I need to execute a command line executable from FreeBASIC. No big deal, I call Exec( program, arguments ). However, I want to pipe the stout from the program into a file. In Windows command line, this is done by using the greater-than sign followed by a file name. For example: dir > output.txt Woul...

Go to advanced search