I know how to code (breifly) in vb6, and would like to apply the same coding into a .ini file and have it do the same. Any ideas? coding below, picture attatched of what I would like it to look like. Thank you in advance!
Private Sub Command1_Click()
If Len(Text1.Text) < 1 Then
Shape1.FillColor = &HFF00&
Exit Sub
End If
End Sub
Private Sub Form_Load()
Dim homework As String
Dim homework1 As String
Open "C:\Users\Sam\SkyDrive\test.txt" For Input As #1
Do While Not EOF(1)
Input #1, homework1
dText = dText & homework1 & ", "
Loop
Text1.Text = dText
End Sub
It is currently May 7th, 2024, 5:33 pm
vb6 to rainmeter
-
- Posts: 7
- Joined: January 22nd, 2013, 9:35 pm
vb6 to rainmeter
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 5407
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: vb6 to rainmeter
Some of what you want to do can be done in native rainmeter, but determining the length of text is not a native ability.
Not to worry, Rainmeter uses the Lua scripting language to perform processes not native to Rainmeter.
Take a look at this for starters and references.
Not to worry, Rainmeter uses the Lua scripting language to perform processes not native to Rainmeter.
Take a look at this for starters and references.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 7
- Joined: January 22nd, 2013, 9:35 pm
Re: vb6 to rainmeter
Thank you for your quick reply, I found the desired lua script, however I have had some trouble implimenting it, please can you help?
[h/w-check]
Measure=Script
ScriptFile=wc.lua
function wc(C:\Users\Sam\Documents\Rainmeter\Skins\Mine
\Blank2\homework.txt)
if words= >1 then
Excecute [!ShowMeter Checkn] [!HideMeter Checkp] [!Redraw]
else
Excecute [!ShowMeter Checkp] [!HideMeter Checkn] [!Redraw]
return
end
Also, how can you open up a text file through a action? thanks again!
[h/w-check]
Measure=Script
ScriptFile=wc.lua
function wc(C:\Users\Sam\Documents\Rainmeter\Skins\Mine
\Blank2\homework.txt)
if words= >1 then
Excecute [!ShowMeter Checkn] [!HideMeter Checkp] [!Redraw]
else
Excecute [!ShowMeter Checkp] [!HideMeter Checkn] [!Redraw]
return
end
Also, how can you open up a text file through a action? thanks again!
-
- Rainmeter Sage
- Posts: 5407
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: vb6 to rainmeter
I see Smurfier was able to help you in the Lua forum...
For those interested in the answer, look here...
For those interested in the answer, look here...
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 7
- Joined: January 22nd, 2013, 9:35 pm
Re: vb6 to rainmeter
Thank you for your help!
-
- Posts: 7
- Joined: January 22nd, 2013, 9:35 pm
Re: vb6 to rainmeter
Here is the finished rainmeter package, incase anybody wants it.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 7
- Joined: January 22nd, 2013, 9:35 pm
Re: vb6 to rainmeter
here it is if anybody wants it.
http://newuserguy.deviantart.com/art/Homework-Check-1-0-350295580?ga_submit_new=10%253A1359050473
http://newuserguy.deviantart.com/art/Homework-Check-1-0-350295580?ga_submit_new=10%253A1359050473