Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: My first script, ... how do I translate this stuff ...< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: July 19 2006,16:50 QUOTE

By the way, I believe if it were to output a proper 6-character html color, the format should be
Code Sample
color_selected = format("%.2X%.2X%.2X",r,g,b)

As it is now, an R, G, or B value of 0 is converted to a hex value of 0 instead of 00


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
newby Offline





Group: Members
Posts: 171
Joined: June 2006
Posted: July 20 2006,10:25 QUOTE

Quote (crusadingknight @ July 19 2006,11:13)
For the first two, yes, those are the actions performed in the given segments (Though, you seem to have the format wrong for the second?).

So, I'll have a .lua file with the contents:

Code Sample
updateXserverrc(" 800x600x16")

xsri --color=#99,66,60


How do I call it?
Just click on it from emelFM?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: July 20 2006,13:34 QUOTE

No, to everything.

You didn't read my carefully-and-slowly-typed response, which explain at least the first two things I see wrong with your .lua file.

As far as how you call it....it depends on how the file was written and whether or not it's executeable.

You really should read a little bit about the process of scripting.
This applies to bash, but it's the same concept:
http://www.linuxcommand.org/wss0010.php


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
newby Offline





Group: Members
Posts: 171
Joined: June 2006
Posted: July 20 2006,18:55 QUOTE

Quote (mikshaw @ July 20 2006,09:34)
No, to everything.

Sorry, too many answers from too many different people.  I'm getting confused as a result.

No offense intended.  Thanks for the URL.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: July 21 2006,02:36 QUOTE

no offense taken.  As usual, my response was lighthearted, although i probably should use more smilies.

I hope you find scripting to be a pleasure.  It is a constant learning experience and a joy to make something useful to yourself and others, although it can also be frustrating at times.  Fortunately the positive greatly outweighs the negative.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
9 replies since July 19 2006,04:04 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: My first script

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code