Code: Select all
//Modify buffer size if required ...
Let>SPAN70_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,70,0,SPAN70,r
]Let>15=SPAN70*.10
WaitReady>1
Let>WIN_REGEX=1
SetFocus>notepad*
WaitWindowOpen>Notepad*
wait>2
Send>15
Thanks for your help
Moderators: Dorian (MJT support), JRL
Code: Select all
//Modify buffer size if required ...
Let>SPAN70_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,70,0,SPAN70,r
]Let>15=SPAN70*.10
WaitReady>1
Let>WIN_REGEX=1
SetFocus>notepad*
WaitWindowOpen>Notepad*
wait>2
Send>15
needs to be multiplied by .10 in order to remove the last two zeros.
Code: Select all
Let>SPAN70=0.03
Let>Result=SPAN70*.1
MessageModal>Result
Not sure what you want to do here..... multiplying by 10 will move the decimal point one place to the right. Multiplying by 0.10 will move the decimal point one place to the LEFT.needs to be multiplied by .10 in order to remove the last two zeros.
Code: Select all
// Generated by MacroScript WebRecorder 2.1
// Recorded on Wednesday, August 18, 2010, at 12:23 PM
//Move the mouse cursor out of harm's way to avoid causing mouseover events to interrupt
MouseMove>0,0
Let>delay=1
IE_Create>0,IE[0]
IE_Navigate>%IE[0]%,http://www.ksl.com/index.php?nid=443,r
IE_Wait>%IE[0]%,r
Wait>delay
IE_Wait>%IE[0]%,r
Wait>delay
IE_Wait>%IE[0]%,r
Wait>delay
IE_Wait>%IE[0]%,r
Wait>delay
IE_Wait>%IE[0]%,r
Wait>delay
IE_Wait>%IE[0]%,r
Wait>delay
IE_Wait>%IE[0]%,r
Wait>delay
//Modify buffer size if required ...
Let>SPAN14_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,14,0,SPAN14,r
*
//Modify buffer size if required ...
Let>SPAN18_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,18,0,SPAN18,r
//Modify buffer size if required ...
Let>SPAN22_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,22,0,SPAN22,r
//Modify buffer size if required ...
Let>SPAN26_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,26,0,SPAN26,r
//Modify buffer size if required ...
Let>SPAN30_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,30,0,SPAN30,r
//Modify buffer size if required ...
Let>SPAN34_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,34,0,SPAN34,r
//Modify buffer size if required ...
Let>SPAN38_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,38,0,SPAN38,r
//Modify buffer size if required ...
Let>SPAN42_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,42,0,SPAN42,r
//Modify buffer size if required ...
Let>SPAN46_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,46,0,SPAN46,r
//Modify buffer size if required ...
Let>SPAN50_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,50,0,SPAN50,r
//Modify buffer size if required ...
Let>SPAN54_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,54,0,SPAN54,r
//Modify buffer size if required ...
Let>SPAN58_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,58,0,SPAN58,r
//Modify buffer size if required ...
Let>SPAN62_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,62,0,SPAN62,r
//Modify buffer size if required ...
Let>SPAN66_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,66,0,SPAN66,r
//Modify buffer size if required ...
Let>SPAN70_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,70,0,SPAN70,r
WaitReady>1
Let>Result=SPAN70*.01
MessageModal>Result
Code: Select all
This is the result i get from message Modal:
$1,50000 *.01
now that i think about it i wonder if it is not calculating due to the $ sign or the space after $1,50000. Any way around that?
I'm obviously new and i'm not sure if there is another route i should be looking into in order to get these screen scraped variables multiplied.
Thanks again
Code: Select all
Let>temp=$1,50000%SPACE%
Trim>temp,temp
StringReplace>temp,$,,temp
Let>comma=,
StringReplace>temp,comma,,temp
Let>result=temp*.01
MessageModal>result