Search found 13 matches

by paranova9
Mon Oct 18, 2010 1:39 pm
Forum: Technical / Scripting
Topic: rounding
Replies: 5
Views: 7317

wow JRL how did you figure that one out?

thanks again adroege :)
by paranova9
Mon Oct 18, 2010 4:35 am
Forum: Technical / Scripting
Topic: rounding
Replies: 5
Views: 7317

thanks, I made this too for cutting off decimals, it can be modified to round too. I just don't understand why common math functions are so difficult to get to in macrosheduler; I've also had to build my own factorial script too; so frustrating to do that when one ! is all I want teach a man to fish...
by paranova9
Sun Oct 17, 2010 10:36 am
Forum: Technical / Scripting
Topic: rounding
Replies: 5
Views: 7317

rounding

sorry if this is right in front of my nose, but how do I round numbers? or maybe specify to cut off decimals?
by paranova9
Fri Sep 24, 2010 5:46 am
Forum: Technical / Scripting
Topic: readln writeln messing up
Replies: 6
Views: 6821

Thanx mtettmar! isn't that weird it was working at all?
by paranova9
Thu Sep 23, 2010 7:04 pm
Forum: Technical / Scripting
Topic: readln writeln messing up
Replies: 6
Views: 6821

also, before (and i wasn't doing much different), it was only printing the last 3 numbers after each comma and separating the lines
by paranova9
Thu Sep 23, 2010 6:58 pm
Forum: Technical / Scripting
Topic: readln writeln messing up
Replies: 6
Views: 6821

source

1
00:00:01,240 --> 00:00:02,590
¤£¤Ó¦n

2
00:00:06,520 --> 00:00:07,790
¤°¤\¥s¤£¤Ó¦n


output

1
240 --> 00:00:02,590
¤£¤Ó¦n
0
2
520 --> 00:00:07,790
¤°¤\¥s¤£¤Ó¦n
0
by paranova9
Thu Sep 23, 2010 6:51 pm
Forum: Technical / Scripting
Topic: readln writeln messing up
Replies: 6
Views: 6821

let>e=0
let>l=0




label>entry
add>e,1
label>line
add>l,1

ReadLn>D:\DESKTOP\subs\1.srt,l,a
if>a=##EOF##,end




writeln>D:\DESKTOP\new text document1.txt,a

if>le=l,entry

label>end
by paranova9
Thu Sep 23, 2010 8:31 am
Forum: Technical / Scripting
Topic: readln writeln messing up
Replies: 6
Views: 6821

readln writeln messing up

I am trying to copy a line from one text to another but
00:00:01,240 is being replaced with 240
and blank lines are replaced with 0

can that be fixed?
by paranova9
Wed Sep 08, 2010 8:42 am
Forum: Technical / Scripting
Topic: how do I do factorial?
Replies: 5
Views: 7337

i saw that page b4 I posted, tried it, couldn't get it to work. no bother though, i wrote my own subroutine to do the job. still just hoping there is an easier way. seems quite strange to need to do all this for a fairly common mathematical function
by paranova9
Tue Sep 07, 2010 4:23 am
Forum: Technical / Scripting
Topic: how do I do factorial?
Replies: 5
Views: 7337

as in for example, how do I script:

4!
by paranova9
Tue Sep 07, 2010 4:11 am
Forum: Technical / Scripting
Topic: how do I do factorial?
Replies: 5
Views: 7337

how do I do factorial?

how do I do factorial?
by paranova9
Sat Dec 05, 2009 9:34 am
Forum: Technical / Scripting
Topic: how to auto variables
Replies: 7
Views: 7089

thank you everyone, I have found this works with no need to mess with varexplicit

Code: Select all

Let>l=1
Let>n=3

let>lv2=a%l%v%n%
let>a%l%v%n%=9

Mdl>%lv2% %a1v3%
// displays a1v3 9
by paranova9
Wed Jul 29, 2009 9:35 pm
Forum: Technical / Scripting
Topic: how to auto variables
Replies: 7
Views: 7089

how to auto variables

I'm trying to do something like this

Let>k=1
Let>a=1
let>k+ a=1

where let>k+ a=1 will produce a variable called 11
Sign up to our newsletter for free automation tips, tricks & discounts