Search found 37 matches

by vuott
Saturday 18th July 2020 8:18pm
Forum: General
Topic: Upgrade to Ubuntu 20.04 broke Gambas
Replies: 4
Views: 174

Re: Upgrade to Ubuntu 20.04 broke Gambas

issboss wrote:
Saturday 18th July 2020 6:08pm
I've tried loading one critical component (gb.qt4) manually, but I'm told "can't find it".
Ubuntu 20.04 no longer supports "qt4" libraries and "keyring", so don't be afraid if those components are no longer installed.
You will use qt5 library.
by vuott
Saturday 11th July 2020 3:46pm
Forum: General
Topic: How to read keypress from exclusive external USB keypad .
Replies: 11
Views: 1082

Re: How to read keypress from exclusive external USB keypad .

Try this: Library "libc:6" Public Struct timeval tv_sec As Long tv_usec As Long End Struct Public Struct input_event time_ As Struct Timeval type As Short code As Short value As Integer End Struct Private Const _IOC_NRSHIFT As Integer = 0 Private Const _IOC_NRBITS As Integer = 8 Private _IOC_TYPESHI...
by vuott
Sunday 14th June 2020 11:31pm
Forum: General
Topic: How to read keypress from exclusive external USB keypad .
Replies: 11
Views: 1082

Re: How to read keypress from exclusive external USB keypad .

Used code I found on and other similar handling the grabbing and reading https://gist.github.com/matthewaveryusa/a721aad80ae89a5c69f7c964fa20fec1 Hello dinge, I transposed to Gambas the part of the code, present in that link, relating to the keyboard: Library "libc:6" Public Struct timeval tv_sec A...
by vuott
Monday 08th June 2020 6:12pm
Forum: General
Topic: How to read keypress from exclusive external USB keypad .
Replies: 11
Views: 1082

Re: How to read keypress from exclusive external USB keypad .

Hello dinge, ... determine what device instigated the event ...i want to start with this Quincunxian's sentence. For a quick and very simple way I would propose this code. Let's pretend that the file-device " /dev/input/event4 " corresponds to the first keyboard, and that the file-device " /dev/inpu...
by vuott
Monday 08th June 2020 4:43pm
Forum: Component
Topic: Component + C library
Replies: 2
Views: 510

Re: Component + C library

tincho wrote:
Monday 08th June 2020 11:39am
I'm trying to learn how to make a component that uses a C library
I suggest you T. Boege's tutorial:

http://www-e.uni-magdeburg.de/tboege/ga ... e_comp.pdf
by vuott
Sunday 07th June 2020 3:37pm
Forum: General
Topic: How to read keypress from exclusive external USB keypad .
Replies: 11
Views: 1082

Re: How to read keypress from exclusive external USB keypad .

Hello dinge, some reflection: 1 ) In my humble opinion "EVIOCGRAB" can not have that value 1, because it's a Macro . Infact #define EVIOCGRAB _IOW('E', 0x90, int) means: EVIOCGRAB is defined as _IOW('E', 0x90, int) So you are forced to develop, to translate that Macro - ...or better: that Function _...
by vuott
Saturday 06th June 2020 10:22pm
Forum: General
Topic: How to read keypress from exclusive external USB keypad .
Replies: 11
Views: 1082

Re: How to read keypress from exclusive external USB keypad .

dinge wrote:
Saturday 06th June 2020 8:11pm
Public Enum EVIOCGNAME = &90
Public Enum EVIOCGRAB = &01
Hello,
...excuse me, i have a little curiosity: where did you find those values related to EVIOCGNAME and EVIOCGRAB ?

regards.
by vuott
Monday 25th May 2020 3:06pm
Forum: General
Topic: View email message
Replies: 5
Views: 503

Re: View email message

bill-lancaster wrote:
Monday 25th May 2020 8:47am
Also MimeMessage is a possibility but haven't figured that one out.
Maybe about using "MimeMessage" you could take a look at this wiki page of Italian Gambas Forum:

https://www.gambas-it.org/wiki/index.ph ... _di_Gambas
by vuott
Friday 15th May 2020 10:09pm
Forum: General
Topic: Console qustions.
Replies: 4
Views: 712

Re: Console qustions.

Giorgos wrote:
Friday 15th May 2020 2:08pm
2) What about sound output?
My answer is relevant to your question about sound in Gambas.
I suggest you this specific and wide section of the wiki of Italian forum:

https://www.gambas-it.org/wiki/index.ph ... file_audio
by vuott
Tuesday 24th March 2020 6:17pm
Forum: General
Topic: [Solved] Open with default text editor
Replies: 4
Views: 1291

Re: [Solved] Open with default text editor

...but if you are writing a graphic program, you can activate " gb.desktop " Component and then use " Desktop " Class: Public Sub Button1_Click() Desktop.Open("/path/to/myFile.txt") End or by using " DesktopFile " Class of " gb.desktop " Component: https://www.gambas-it.org/wiki/index.php?title=Apri...