vMix Forums
»
General
»
General Discussion
»
transform to random search DataSourceSelectRow
Rank: Newbie
Groups: Registered
Joined: 11/18/2021(UTC) Posts: 8 Location: São Paulo Thanks: 2 times
|
Dim Index as integer Dim x As Integer Do while Index = 0 'for x = 1 to 7
'transform to random search ???????? For i As Integer = 1 To 100000
Dim rnd As New Random x = rnd.Next api.Function("DataSourceSelectRow",Value:="GC,VIVENSIS," & i) sleep(100) next index = 0 loop
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,216 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Why post this again (yesterday) ?
If posting code pls use proper syntax highlighting for clarity
doing a sequential datasourceselectrow is not random selection, might aswel just do a autonext in the datasource manager ;-) !
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/18/2021(UTC) Posts: 8 Location: São Paulo Thanks: 2 times
|
Sorry, I thought I posted in the wrong place so I deleted and reposted.
I'm not a programmer, I'm curious and I do some programming for my use in vMIX for personal use.
This code would help me to do a giveaway, but I'm having trouble making the name selection to be random
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,216 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Fabianogc Sorry, I thought I posted in the wrong place so I deleted and reposted.
I'm not a programmer, I'm curious and I do some programming for my use in vMIX for personal use.
This code would help me to do a giveaway, but I'm having trouble making the name selection to be random The code you wrote will not do that. Do some google search on using random with "vb.net random". One will receive lots of explenations and examples
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/18/2021(UTC) Posts: 8 Location: São Paulo Thanks: 2 times
|
I managed to find a solution to my issue. This settled for the moment.
Static Generator As System.Random = New System.Random() dim i as integer dim fieldname as string = "Message.Text" dim zahlrnd as integer
for i = 1 to 101 ROMDOM= Generator.Next(1, 101) API.Function("SetText",Input:="ROMDOM.gtzip",SelectedName:= "Message.Text",Value:=ROMDOM)
sleep(100) next
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
transform to random search DataSourceSelectRow
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close