Search found 911 matches

by cogier
Saturday 24th September 2022 4:02pm
Forum: General
Topic: Advise on a Idea I am considering
Replies: 1
Views: 29

Re: Advise on a Idea I am considering

This should be simple. Write your program with either Command line application or better still a Graphical application . With the latter, you could Hide your Form perhaps add a TrayIcon with a menu, so you can look at the program's progress at anytime. Set up a Timer in your program to trigger every...
by cogier
Tuesday 20th September 2022 9:19am
Forum: Project showcase
Topic: Simple Temp monitor example using LCDLabel
Replies: 2
Views: 2671

Re: Simple Temp monitor example using LCDLabel

I am looking at the program and I think an option to display what the temperature relates to would be helpful. The display shows 52.0 then 44.0 and that's it. What is 52 or 44? The program icon is missing. https://www.cogier.com/gambas/MyTemp.png EDIT: - I thought this might be fun, so I have made a...
by cogier
Saturday 17th September 2022 9:23am
Forum: General
Topic: Music controls
Replies: 7
Views: 330

Re: Music controls

Unfortunately, these tools only do what I have already mastered. To change the volume I use: - Shell "amixer -D pulse set Master " & Str(SliderVol.Value) & "%" And to pause the music: - MediaPlayer1.Pause() I was after using the controls on the desktop to control my program (see picture in first pos...
by cogier
Friday 16th September 2022 3:11pm
Forum: General
Topic: Convert this C code to Gambas
Replies: 10
Views: 168

Re: Convert this C code to Gambas

They provide a way to print but it don't give any status to the application (like cover open or paper low)
Does this help?

https://reference.epson-biz.com/modules ... =124#gs_lr

Image
by cogier
Friday 16th September 2022 7:55am
Forum: General
Topic: Convert this C code to Gambas
Replies: 10
Views: 168

Re: Convert this C code to Gambas

What is the printer model?
by cogier
Thursday 15th September 2022 5:25pm
Forum: General
Topic: Convert this C code to Gambas
Replies: 10
Views: 168

Re: Convert this C code to Gambas

Try a different method: -

1/. Create the logo in a drawing app. I used LibreOffice Draw
2/. Export the image to a PDF
3/. In Gambas shell "lp -d PrinterName /Path/to/pdf.pdf"

Done

This took me 10 mins to create and print on a Brother QL-570
Image
by cogier
Monday 12th September 2022 4:13pm
Forum: General
Topic: Task issue
Replies: 3
Views: 104

Re: Task issue

Thanks, Bruce. This is now working as I expected. :D
by cogier
Sunday 11th September 2022 2:42pm
Forum: General
Topic: Task issue
Replies: 3
Views: 104

Task issue

I can use a shell command without issue: - Public sUrl As String = "https://www.youtube.com/watch?v=Gu9sqZZOiR0&t=66s" Public Sub Form_Open() Shell "youtube-dl " & sUrl Wait ''This works End I would like to do this in a Task but when I try I get 40+ error lines like this: - Traceback (most recent ca...
by cogier
Sunday 28th August 2022 4:32pm
Forum: General
Topic: Raise event in custom component
Replies: 7
Views: 352

Re: Raise event in custom component

Try GridView1_Arrange(). This is triggered when the GridView has finished arranging its contents. NOTE that if you change anything or resize the Form this will be triggered.

Can't you simply call ChangeCat as the last command in _new()?
by cogier
Friday 26th August 2022 3:45pm
Forum: Project showcase
Topic: a Gambas recent files Lister (TrayIcon)
Replies: 20
Views: 5491

Re: a Gambas recent files Lister (TrayIcon)

I'll check this out in the next stable release.

It may have fixed another issue with my desktop when 2 TrayIcons are showing.

Image

Then with my AlarmTimer running: -

Image