Search found 654 matches

by BruceSteers
Sunday 19th September 2021 6:26pm
Forum: Component
Topic: NoRoot.class (get User and default paths info when root)
Replies: 2
Views: 112

Re: NoRoot.class (get User and default paths info when root)

PS i changed the class name to NotRoot.class
by BruceSteers
Sunday 19th September 2021 9:12am
Forum: Component
Topic: NoRoot.class (get User and default paths info when root)
Replies: 2
Views: 112

Re: NoRoot.class (get User and default paths info when root)

Slight update folks...

modified because using pkexec did not work

now it works with sudo, su and pkexec.

Added a ReadMe

No docs needed i think
by BruceSteers
Wednesday 15th September 2021 10:15am
Forum: Component
Topic: Desktop.RunAsRoot, Desktop.RunAs
Replies: 0
Views: 67

Desktop.RunAsRoot, Desktop.RunAs

For anyone's information an update to Desktop.RunAsRoot() has been made thanks to yours truly. Desktop.RunAsRoot() now uses 'pkexec' by default as its sudoer. Desktop.RunAs() is a new method that allows to specify the username used for running a program. [GB.DESKTOP] * NEW: Desktop.RunAsRoot() now t...
by BruceSteers
Wednesday 15th September 2021 3:32am
Forum: General
Topic: Create Install package for debian
Replies: 17
Views: 406

Re: Create Install package for debian

ps. you can use apt-cache to find what gambas3 packages are available from your configured repositories.

apt-cache search "gambas3*"
by BruceSteers
Wednesday 15th September 2021 3:21am
Forum: General
Topic: Create Install package for debian
Replies: 17
Views: 406

Re: Create Install package for debian

looks like you only have the security debian repository set up , you need main and contrib too. This happens when you choose not to select a network mirror at install From debian website... Using a repository is fairly simple: For the official Debian repository open /etc/apt/sources.list, insert the...
by BruceSteers
Tuesday 14th September 2021 11:36am
Forum: General
Topic: How to read incoming tcp data packet - string not empty but no data ?
Replies: 5
Views: 156

Re: Re:Solved- How to read incoming tcp data packet - string not empty but no data ?

Dear Mr Brucesteers, thanks for the swift replys. The code provided by Mr SteveDee on his Captain Bodgit website is correct. Tried to change the Socket_read sub to ServerSocket1_read but did not work. The Socket_read is used and gives me the messagbox information as test. Thanks for the 'Quote' tip...
by BruceSteers
Monday 13th September 2021 4:23pm
Forum: General
Topic: How to read incoming tcp data packet - string not empty but no data ?
Replies: 5
Views: 156

Re: How to read incoming tcp data packet - string not empty but no data ?

Possibly using Quote could help see what characters need trimming Message("Lenght: " & String.Len(strmsg) & gb.LF & " strmsg: " & Quote(strmsg)) Also i'd only use gb.Lf not gb.CrLf in a message A message box will turn a gb.LF \n into <br> but the CR may have unwanted results. Str() is for converting...
by BruceSteers
Monday 13th September 2021 12:55pm
Forum: General
Topic: How to read incoming tcp data packet - string not empty but no data ?
Replies: 5
Views: 156

Re: How to read incoming tcp data packet - string not empty but no data ?

At 1st glance i'd say your call to Socket_Read() should be ServerSocket1_Read() You seem to have a mix of Socket_EventName() and ServerSocket1_EventName() methods. The object you added to the Form Designer called ServerSocket1 will use ServerSocket1_EventName() for all events Socket_Closed() will no...
by BruceSteers
Saturday 11th September 2021 9:21am
Forum: Project showcase
Topic: Desktop-ish
Replies: 7
Views: 488

Re: Desktop-ish

The Dragging and the Dropping is now the working.

By that i mean not only can you drag icons onto launcher icons you can also drag icons outside the application. then launcher filename is dropped.
by BruceSteers
Friday 10th September 2021 12:55pm
Forum: General
Topic: RS232 / Serial Scale Help
Replies: 28
Views: 601

Re: RS232 / Serial Scale Help

send the following command to get weight, then put the weight on. \x53\x31\x31\x0D Well i wish you'd posted that in the first post. I'm not sure what it means but i bet the other Bruce has a pretty good idea after seeing their example of sending the command. far easier to understand than "what are ...