Search found 40 matches

by stevedee
Friday 10th November 2017 7:19pm
Forum: General
Topic: "And" query
Replies: 3
Views: 41

Re: "And" query

Hi cogier, Gambas is checking your code first and finding an error (that the assignment of the value is illegal or out of bounds). It hasn't got to the stage of evaluating the If expression yet.
by stevedee
Tuesday 07th November 2017 3:28pm
Forum: General
Topic: How to simulate "Enter" key
Replies: 2
Views: 33

Re: How to simulate "Enter" key

You can use Desktop.Sendkeys("[Return]") if that is what you mean.

See: http://gambaswiki.org/wiki/comp/gb.desk ... p/sendkeys
by stevedee
Friday 27th October 2017 11:34am
Forum: General
Topic: Gridview Scroll issue
Replies: 3
Views: 62

Re: Gridview Scroll issue

Also, if you change your row count to 100, you can use a simple fraction or multiplier to display any row e.g. GridView1.Rows.count = 100 'Amount of Rows needed GridView1.Columns.count = 1 'Amount of Columns needed For iCount = 0 To 99 'Count from 0 to 100 GridView1[iCount, 0].Text = Str(iCount) 'Ad...
by stevedee
Friday 27th October 2017 10:55am
Forum: General
Topic: Gridview Scroll issue
Replies: 3
Views: 62

Re: Gridview Scroll issue

I think your MagicNumber should just be replaced with the ScrollHeight, e.g.
For iCount = 0 To GridView1.ScrollHeight
...then you don't need to worry about how the scroll is scaled internally.
by stevedee
Tuesday 17th October 2017 2:37pm
Forum: General
Topic: List only the files without extensions
Replies: 8
Views: 135

Re: List only the files without extensions

OK, try adding the Start argument:-
  If InStr(sTemp, ".", 2) = 0 Then
by stevedee
Monday 16th October 2017 7:21pm
Forum: General
Topic: List only the files without extensions
Replies: 8
Views: 135

Re: List only the files without extensions

This will do it:-

Code: Select all

Public Sub Main()
Dim sList As String[]
Dim sTemp As String
Dim sPattern As String = "*"
 
sList = Dir(User.home, sPattern, gb.file)
 
For Each sTemp In sList
  If InStr(sTemp, ".") = 0 Then
    Print sTemp
  Endif
Next
 
End
...but you probably want a solution using sPattern
by stevedee
Saturday 14th October 2017 10:54am
Forum: General
Topic: Raspberry Pi camera module
Replies: 17
Views: 275

Re: Raspberry Pi camera module

I don't have any time this weekend to look at this, but I wonder whether you should be using v4l to get images from RaspiCam (via /dev/video0) rather than using Raspistill or Raspivid in a Shell.

I think there are Gambas components for both v4l and gstreamer that might be worth exploring.
by stevedee
Wednesday 11th October 2017 8:04am
Forum: General
Topic: Raspberry Pi camera module
Replies: 17
Views: 275

Re: Raspberry Pi camera module

sony wrote:
Wednesday 11th October 2017 3:26am
...My project is shoot the image on moving object with camera device.
How are you planning to use 90fps video with your Gambas test program?
by stevedee
Tuesday 10th October 2017 12:38pm
Forum: General
Topic: Raspberry Pi camera module
Replies: 17
Views: 275

Re: Raspberry Pi camera module

Re: MyWebCam_test on RPi, do you have: /dev/video0 and v4l2 driver?

If the software is a bit old, update:-

sudo rpi-update
sudo apt-get update
sudo apt-get upgrade

Still no /dev/video0?, run: sudo modprobe bcm2835-v4l2
by stevedee
Tuesday 10th October 2017 11:05am
Forum: General
Topic: Raspberry Pi camera module
Replies: 17
Views: 275

Re: Raspberry Pi camera module

Hi sony, you asked for the code on my blog, so here it is. As I mentioned, it is not finished (typical!). It will stream video (which I use to set the camera up and check focus) and it will capture at 90fps, but it doesn't do both at the same time. To stream, this program simply runs the stream.sh s...