Help

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Pepe
Newbie
Posts: 3
Joined: Fri Mar 28, 2003 3:00 pm

Help

Post by Pepe » Fri Mar 28, 2003 4:07 pm

Just noticed that I should post here... not in beginners section. My bad.

Hello.
I got macro scheduler 6.2.3vb and want to make a macro that opens a browser window, go to a page, get some text and compare it and if it is what I want I get a message about that else it closes.
So far I've manage to do a macro that opens the webpage that I want, I use the mouse to mark the text, copies it with ctrl+c but I don't know how to compare it with another string.
Any ideas out there?

Thank you
Peter

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Fri Mar 28, 2003 5:17 pm

Hi,

Look at GetClipBoard to get the value into a variable. To compare consider using Position to find out if a string is in another string, and where it is, MidStr gets a substring from a string. Use If to do the compare and make the decision.
MJT Net Support
[email protected]

Pepe
Newbie
Posts: 3
Joined: Fri Mar 28, 2003 3:00 pm

Post by Pepe » Fri Mar 28, 2003 9:50 pm

Thank you.

In the if, do I write:
If>Str="New Addy",Prt
or
If>Str=New Addy,Prt
or none of them ??

Peter

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sat Mar 29, 2003 1:26 am

If>Str=New Addy,Prt
is the correct comparison. No Quotes around the string or the variable
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Sat Mar 29, 2003 2:01 am

Pepe,

It depends whether VAREXPLICIT has been set to 0 (default) or 1. Assuming system default, Bob's suggestion is correct. Just make sure no space before AND after the comma.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts