Search found 169 matches

by StarWarsFan
Fri Feb 23, 2024 5:15 pm
Forum: Coding Questions
Topic: Textwriter like on Github
Replies: 9
Views: 1258

Re: Textwriter like on Github

@matalog:
I tried out your first version. That post you can delete, your second version is much better with the flashing cursor that you added. Thanks!

@Piero:
That sound is awesome! Thanks!

@PBJim:
HeX0R's terminal looks very much like it. Thanks!

@all above
Thank you fellows, much to ...
by StarWarsFan
Fri Feb 16, 2024 11:47 pm
Forum: Coding Questions
Topic: Textwriter like on Github
Replies: 9
Views: 1258

Re: Textwriter like on Github


Do you want something to enter text into an input field in that manner, as if it were being typed on a keyboard, or do you just want it to appear on your program screen moving like that?


Just look! https://github.com/signup?source=login

You code looks A BIT like that, but the flashing cursor ...
by StarWarsFan
Sun Feb 11, 2024 2:21 pm
Forum: Coding Questions
Topic: Textwriter like on Github
Replies: 9
Views: 1258

Textwriter like on Github

Hey friends!

Has anybody seen an example code of a textwriter such as it is appearing on https://github.com/signup?source=login

This reminds me so much of good old C64 times that I would like to play with that a little.

Thanks for your input.
by StarWarsFan
Sat Oct 28, 2023 10:29 pm
Forum: Coding Questions
Topic: Strip from string: anything that is not a digit
Replies: 7
Views: 963

Strip from string: anything that is not a digit

I am trying to find a solution for the following:

Given I have StringGadget IN111 where the user is to put in some data in format integer.
I would then get the input result using in$= GetGadgetText(IN111) and put that into variable x for further calculation using x= val(in$)

Let us assume that the ...
by StarWarsFan
Thu Oct 12, 2023 10:24 am
Forum: Coding Questions
Topic: Reading Data From Website - Special
Replies: 8
Views: 1610

Re: Reading Data From Website - Special

This is the very first time I work with JSON and a web-API.
Thank you. I am learning sooo much here. Very much appreciated.

The latter version of the code (by yuki » Fri Sep 29, 2023 11:46 pm)
works nicely with my V5.71. Values are correct.

The map itself was not even required, I need only the ...
by StarWarsFan
Wed Sep 27, 2023 3:11 pm
Forum: Coding Questions
Topic: Reading Data From Website - Special
Replies: 8
Views: 1610

Re: Reading Data From Website - Special

That may actually be the case. V 6.02 changed so much in the display of my programs that I decided to uninstall it and stick with V 5.72.
Kiffi, however, only referred to InitNetwork(). I did not think of anything else that could cause your code not to work.
Will try on weekend.
by StarWarsFan
Sun Sep 24, 2023 12:16 pm
Forum: Coding Questions
Topic: Reading Data From Website - Special
Replies: 8
Views: 1610

Re: Reading Data From Website - Special

I thank you. A very interesting way to get the data out of that page.

I have therefore inserted 'InitNetwork()' and tried your code, but all I get is zero-values:

Code: Select all

Fetching gold price data...
Fetch OK!

Data for 2023-09-22:
  AM: 0.00€
  PM: 0.00€
by StarWarsFan
Sat Sep 23, 2023 9:03 pm
Forum: Coding Questions
Topic: Reading Data From Website - Special
Replies: 8
Views: 1610

Reading Data From Website - Special

Hello friends, it's me again :)

This time I am trying to read data from a website that displays its data with JS - and that is my problem: When I try to get the HTML contents from
'https://www.lbma.org.uk/prices-and-data/precious-metal-prices#/table' using ReceiveHTTPMemory(), I can apparently not ...
by StarWarsFan
Tue Oct 04, 2022 1:53 pm
Forum: Coding Questions
Topic: Transfer a gadget to another window
Replies: 9
Views: 1115

Re: Transfer a gadget to another window



SetParent_(GadgetID(0), WindowID(1))



Thank you, this works nicely. I have tried with your code and with mine.

BUT, one issue:

I had set bg and fg colors in that gadget and after "transferring" the colors look really broken, until I manually left-click each line. Only then bg and fg colors ...
by StarWarsFan
Sat Oct 01, 2022 8:22 pm
Forum: Coding Questions
Topic: Unpacking .7z *with* subdirectories - BUG in NextPackEntry()
Replies: 30
Views: 6740

Re: Unpacking .7z *with* subdirectories - BUG in NextPackEntry()

Yes. And 2+ months later it appears we still have no solution, have we?

I wish I was totally wrong here...
by StarWarsFan
Sat Oct 01, 2022 8:14 pm
Forum: Coding Questions
Topic: Transfer a gadget to another window
Replies: 9
Views: 1115

Transfer a gadget to another window

Given this situation:

I got a log gadget window on my screen where the user sees what is being done.
After the actions of screen#1 are complete, the program moves on to screen#2.

Now how do I move that log gadget window over to the second screen? It is a standard ListViewGadget
by StarWarsFan
Sat Jul 16, 2022 6:23 am
Forum: Coding Questions
Topic: Unpacking .7z *with* subdirectories - BUG in NextPackEntry()
Replies: 30
Views: 6740

Re: Unpacking .7z *with* subdirectories

@Barry: Nothing against that. Did not know it existed. But I thought we would have a short and working version after I created this thread and everybody came and said it works.


I have noticed that files without an extension causes the loop to fail as well.

So empty folders, and files with no ...
by StarWarsFan
Fri Jul 08, 2022 8:43 am
Forum: Coding Questions
Topic: Unpacking .7z *with* subdirectories - BUG in NextPackEntry()
Replies: 30
Views: 6740

Re: Unpacking .7z *with* subdirectories

Right, Chris.

I also ask myself if this is a bug in PureBasic v5.71 (the version I am still using)
Chris, which version have you used to reproduce that bug?
by StarWarsFan
Sat Jun 25, 2022 11:45 am
Forum: Coding Questions
Topic: Unpacking .7z *with* subdirectories - BUG in NextPackEntry()
Replies: 30
Views: 6740

Re: Unpacking and packing .7Z ---> see newest message

Many thanks again, Marc, you yourself have posted the following on page one of this topic, I quote because I find this to be true:


Edit: Yes, this works with many archives (Almost all the ones I tried). I'm trying to identify which features have the ones that don't work.
All the ones I created ...
by StarWarsFan
Thu Jun 23, 2022 6:09 am
Forum: Coding Questions
Topic: Unpacking .7z *with* subdirectories - BUG in NextPackEntry()
Replies: 30
Views: 6740

Re: Unpacking .7z *with* subdirectories

@Bisonte: Nice code, thank you.

BUT: Same issue there.

This happens when the archive includes at least one empty subdirectory:
Both OpenPack() and ExaminePack() return #TRUE, so up to there it is good, but: NextPackEntry() returns 0!
Result: So the loop is not started at all. Nothing *at all* is ...