Search found 52 matches

by l1marik
Mon Sep 09, 2024 5:03 pm
Forum: Coding Questions
Topic: MCI correct track length
Replies: 5
Views: 1049

Re: MCI correct track length

Hi Paul,
a, yes it shows cca 32 seconds
b, reality is cca 16 seconds :-(

Lukas
by l1marik
Mon Sep 09, 2024 3:45 pm
Forum: Coding Questions
Topic: MCI correct track length
Replies: 5
Views: 1049

Re: MCI correct track length

Hi Paul, unfortunately no :-( Try it with this file: https://www.ctvrtky.info/wp-content/upl ... ffects.mp3

Lukas
by l1marik
Sat Sep 07, 2024 1:45 pm
Forum: Coding Questions
Topic: MCI correct track length
Replies: 5
Views: 1049

MCI correct track length

I am looking for function how to get correct MP3 length via MCI, using "Status length" does not return correct value. Can somebody help me?

THX
by l1marik
Sat Mar 18, 2023 2:20 pm
Forum: Coding Questions
Topic: SSID name
Replies: 4
Views: 701

Re: SSID name

Linux and Win.

THX
by l1marik
Fri Mar 17, 2023 8:11 pm
Forum: Coding Questions
Topic: SSID name
Replies: 4
Views: 701

SSID name

Is any way how to get active connected WiFi SSID name (or IP)?

THX
by l1marik
Sat Jan 14, 2023 7:12 pm
Forum: Coding Questions
Topic: Thread question
Replies: 1
Views: 382

Thread question

Dear colleagues,
I am totally confused in thread control. I need help in follow scenarios:
1, opened window > disable window > start download file (ideally with progress) > wait for finish download > process file > enable window > continue
2, opened window > list of files for downloading > disable ...
by l1marik
Fri Jan 13, 2023 5:51 pm
Forum: Coding Questions
Topic: HELP - parsing JSON
Replies: 3
Views: 661

HELP - parsing JSON

I am newbie in JSON and I have follow JSON:
{"files":[["EAC_D_20221227.eac",91,1672156042,1672156164],["EAC_L_00000011.eac",102720,1672156148,1672221568],["EAC_D_20221228.eac",97254,1672222672,1672319576],["EAC_D_20221229.eac",135280,1672319622,1672416862],["EAC_D_20221230.eac",70225,1672416948 ...
by l1marik
Wed Jan 11, 2023 2:07 pm
Forum: Coding Questions
Topic: Read image from memory to string of HEX values
Replies: 11
Views: 1220

Re: Read image from memory to string of HEX values

Final version, slow with big images, but better than nothing :-)
Thank guys!


UsePNGImageEncoder()
UsePNGImageDecoder()

Define W = 200, H = 200, tWindow, tCanvas, *Buffer, tImg, t, out.s, *Ptr.Ascii, *EndBuffer

tWindow = OpenWindow(#PB_Any, 0, 0, W, H, "Create image and convert to PNG", #PB ...
by l1marik
Wed Jan 11, 2023 1:12 pm
Forum: Coding Questions
Topic: Read image from memory to string of HEX values
Replies: 11
Views: 1220

Re: Read image from memory to string of HEX values

Base64Encoder() is not suitable for me, I need HEX (for RTF).


UsePNGImageEncoder()
UsePNGImageDecoder()

Define W = 200, H = 200, tWindow, tCanvas, *Buffer, tImg, t

tWindow = OpenWindow(#PB_Any, 0, 0, W, H, "Create image and convert to PNG", #PB_Window_SystemMenu | #PB_Window_ScreenCentered ...
by l1marik
Wed Jan 11, 2023 11:33 am
Forum: Coding Questions
Topic: Read image from memory to string of HEX values
Replies: 11
Views: 1220

Read image from memory to string of HEX values

Is any way how to read image created by CreateImage() to string of HEX values without saving of file to disc?

THX
by l1marik
Sat Dec 17, 2022 3:18 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] pbPDF-Module
Replies: 145
Views: 117894

Re: [Module] pbPDF-Module

Did you found solution?
Little_man wrote: Tue Jan 04, 2022 7:55 am Is there a solution for "unicode"?
Example: "Styczeń" (Polish) is displayed as "SryczeD".

Kind regards,
Little_man
by l1marik
Wed Dec 07, 2022 5:23 pm
Forum: Coding Questions
Topic: Connect to WiFi
Replies: 2
Views: 936

Re: Connect to WiFi

My scenario:
- program running on PC without WiFi connection
- in program scan available WIFi networks
- connect to choosen one from program (not by system setting)
Probably I'll need API (for Win) and I need help with it.
by l1marik
Wed Dec 07, 2022 1:41 pm
Forum: Coding Questions
Topic: Connect to WiFi
Replies: 2
Views: 936

Connect to WiFi

Is any way how to connect (or change connection) to WiFi directly from program, not by system settings?

THX
by l1marik
Wed Dec 07, 2022 1:36 pm
Forum: Coding Questions
Topic: Read file (specific line, specific line to EOF)
Replies: 3
Views: 743

Re: Read file (specific line, specific line to EOF)

Solved:


i = 0;
If ReadFile(0, "yourfile")
BOMformat = ReadStringFormat(0)
While Not Eof(0)
line$ = ReadString(0)
i = i + 1
If (i = 2) ;only line 2 from yourfile
Debug line$
EndIf
If (i > 4) ;from line nr 4 to end from yourfile
Debug line$
EndIf
Wend
CloseFile(0)
EndIf