Search found 75 matches

by 01McAc
Saturday 31st December 2022 9:16am
Forum: Beginners
Topic: Switch to Wayland with side effect to Clipboard
Replies: 9
Views: 2119

Re: Switch to Wayland with side effect to Clipboard

Thanks for the reply. Solved finally! It is very interesting, that the exec command doesn't work either. ... Exec ["wl-copy", "-p", "-t", "text/plain", myCam & " +" & str_myLens] ... So I tried instead of Exec the Shell command. I found out t...
by 01McAc
Thursday 29th December 2022 6:59am
Forum: Beginners
Topic: Switch to Wayland with side effect to Clipboard
Replies: 9
Views: 2119

Re: Switch to Wayland with side effect to Clipboard

Wayland- 'good things come to those who wait'. It seems I still have to wait a while to use Wayland. But to be fair I have to admit that wayland is faster and more responsive than X11. Even the wobbly windows are working perfectly :D . At the moment there are two points that prevent me from using it...
by 01McAc
Wednesday 28th December 2022 9:49am
Forum: Beginners
Topic: Switch to Wayland with side effect to Clipboard
Replies: 9
Views: 2119

Re: Switch to Wayland with side effect to Clipboard

maybe you could install wl-clipboard command? Thanks Bruce. I installed wl-clipboard to follow up on this but it doesn't help unfortunately. Since you mentioned gb-qt5-wayland I checked its status on my system: dnf list \*gambas\*wayland\* Last metadata expiration check: 0:26:49 ago on Wed 28 Dec 2...
by 01McAc
Tuesday 27th December 2022 8:17am
Forum: Beginners
Topic: Switch to Wayland with side effect to Clipboard
Replies: 9
Views: 2119

Switch to Wayland with side effect to Clipboard

Since I switched from X11 to Wayland the Clipboard command does not work anymore:
Clipboard.Copy(myCam & " +" & str_myLens, "text/plain")

Any idea what's wrong with this?
by 01McAc
Friday 1st October 2021 6:04pm
Forum: Project showcase
Topic: Practice touch typing
Replies: 0
Views: 3781

Practice touch typing

The internet is full of apps or online exercises, I know. But I couldn't find any app written in Gambas. So I started a little app which offers the basics of learning touch typing. The app is dedicated to my daughter. She'll get her first laptop in the next couple of weeks. For her school homework o...
by 01McAc
Thursday 23rd September 2021 3:55pm
Forum: General
Topic: Passing an argument from Filemanager to a Gambas-App
Replies: 5
Views: 3352

Re: Passing an argument from Filemanager to a Gambas-App

Thanks. Seems to be a user problem. This is my original example: Public Sub Form_Open() Dim myFile As Variant If IsNull(Application.Args[1]) Then Message("No Argument") Quit Else myFile = Val(Application.Args[1]) Endif ' Application.Args message("arg0: " & Application.Args[0]...
by 01McAc
Thursday 23rd September 2021 2:23pm
Forum: General
Topic: Passing an argument from Filemanager to a Gambas-App
Replies: 5
Views: 3352

Re: Passing an argument from Filemanager to a Gambas-App

sorry for the misunderstanding. I want the filemanager Dolphin to start my app (see attachment). Application.Args[0] shows only the path and name of the app but not the filename I clicked in Dolphin. I would expect the filename L1007019.jpg in Application.Args[1] but it's empty.
by 01McAc
Thursday 23rd September 2021 12:04pm
Forum: General
Topic: Passing an argument from Filemanager to a Gambas-App
Replies: 5
Views: 3352

Passing an argument from Filemanager to a Gambas-App

I know the class gb.args and how command line arguments will be passed to a Gambas application. It's probably me but I have no idea how to proceed with this use case: In a filemanager (i.e. KDE/Dolphin) I want to right-click an image. The context menue appears and I want to start my Gambas fileviewe...
by 01McAc
Wednesday 9th June 2021 12:30pm
Forum: General
Topic: Background tasks
Replies: 9
Views: 5092

Re: Background tasks

I suppose I had a similar question for my project of the lens database: https://forum.gambas.one/viewtopic.php?f=13&t=1055 I created a new background task for a bulk update in the sqlite database: hTask = New MyTaskFTS As "hTask" MyTaskFTS.class looks like this: Inherits Task Public Fu...
by 01McAc
Tuesday 27th April 2021 5:21pm
Forum: Beginners
Topic: Debugging: Stop program if variable = value ?
Replies: 9
Views: 10927

Re: Debugging: Stop program if variable = value ?

stevedee wrote: Tuesday 27th April 2021 4:46pm I've only just discovered that after you stop program execution, you can then change the current value of variables...that's handy!
Sounds interesting, I didn't know this. VB is able to change values in debug mode - but Gambas? How would you do this?