Search found 265 matches

by vuott
Monday 13th May 2024 11:01am
Forum: General
Topic: midi files
Replies: 1
Views: 29

Re: midi files

I do not know if you can find anything useful for you here:

https://www.gambas-it.org/wiki/index.ph ... _file_.mid
by vuott
Wednesday 1st May 2024 6:47pm
Forum: General
Topic: Live video feed?
Replies: 6
Views: 1032

Re: Live video feed?

Got2BeFree wrote: Tuesday 30th April 2024 4:55pm I found an example in the farm that can play an RTSP stream
Well, what's the name of this program that you found ?
by vuott
Friday 26th April 2024 9:45pm
Forum: General
Topic: Converting UTC time
Replies: 9
Views: 856

Re: Converting UTC time

But the Date()-function does not contain any information about which timezone I'm in and that is essential to me. The UTC-time read from file is in another timezone than my local time and I need to adjust the read time to my timezone before I can use it in my program. Maybe this can help you: https...
by vuott
Tuesday 26th March 2024 10:34pm
Forum: General
Topic: using Manufactor snippets (Convert C programs to Gambas)
Replies: 2
Views: 2786

Re: using Manufactor snippets (Convert C programs to Gambas)

Uhmmmm.... C CODE: #include <stdio.h> #include "cashdrawer.h" int main(int argc,char *argv[]) { int machine_type; int ret; machine_type = atoi(argv[1]); ret=Open_Cash(machine_type); printf("open cash return = %d\n",ret); if(ret == 0) printf("open success\n"); else print...
by vuott
Wednesday 28th February 2024 6:30pm
Forum: Beginners
Topic: Receiving serial data - gb.net
Replies: 3
Views: 1503

Re: Receiving serial data - gb.net

PeteMarsh wrote: Wednesday 28th February 2024 2:01amI’m used to the oncomm event in vb which is triggered when a serial port receives data
Uhmmmm...that is, are you looking for an Event that will be raised only when the serial port receives data ?
by vuott
Monday 12th February 2024 6:51pm
Forum: General
Topic: MQTT Library for Gambas3
Replies: 2
Views: 754

Re: MQTT Library for Gambas3

...he could use the :? external C functions of a MQTT library.
by vuott
Sunday 11th February 2024 2:51pm
Forum: Beginners
Topic: New to Gambas.. seek some help
Replies: 14
Views: 4264

Re: New to Gambas.. seek some help

Mudassir wrote: Saturday 10th February 2024 7:56pm that's just a trick. It's about numeric input not formatted text.
No... I didn't understand.
by vuott
Wednesday 7th February 2024 8:23am
Forum: General
Topic: getting bits from an integer (Mouse.State)
Replies: 3
Views: 908

Re: getting bits from an integer (Mouse.State)

...by using Bin() function:
Public Sub Form_MouseDown()

  Print Bin(Mouse.State, 8)
  
End

https://gambaswiki.org/wiki/lang/bin
by vuott
Tuesday 6th February 2024 10:22am
Forum: Beginners
Topic: New to Gambas.. seek some help
Replies: 14
Views: 4264

Re: New to Gambas.. seek some help

Mudassir wrote: Monday 5th February 2024 11:18pm 4. How to set fixed (0, 2 or 3) decimal places in those controls?
...:?...probably by using Format() function:
https://gambaswiki.org/wiki/lang/format
https://gambaswiki.org/wiki/cat/userformat
by vuott
Thursday 25th January 2024 7:52pm
Forum: General
Topic: Problem with pdf file view
Replies: 2
Views: 1052

Re: Problem with pdf file view

Try:
hImage = hPDF[0].Render(0, 0, hPDF[0].Render().W, hPDF[0].Render().H, 0, hPDF.Resolution