Hi.
I'm trying to reconstruct a database archive internet site, using macro scheduler but this macro doesn't concatenate the name with auxiliar variable i to save the page with an a sequential name (ex. napoli27.htm, napoli28.htm etc.etc.)
Can you help me ?
This is the script
**********************************
Let>VAREXPLICIT=0
Let>i=27
Label>Start
If i=100,Fine
SetFocus>http://www3.autorita.energia.it/cgi-bin/ricerca_clienti*
Wait>1
Press Tab
Wait>1
Press Tab
Wait>1
Press Enter
WaitWindowOpen>http://www3.autorita.energia.it/cgi-bin/ricerca_clienti*
WaitReady>0
Wait>20
Press Alt
Send Character/Text>f
Release Alt
Send Character/Text>v
Let>nome=Napoli
Concat>nome,i
Send Character/Text>nome
Press Enter
Let>i=i+1
Goto>Start
Label>Fine
*************************************
Thank you
Merlino
Concat error
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
You didn't describe the problem, but I found two things.
1. Some extra spaces at end of the lines. These may have been from my copy/paste, and may not be in the original, but you should check to make sure. Use Edit, Show All Chars to review, and/or Edit, Remove Trailing Spaces to remove them if you have a newer version of Macro Scheduler.
2. There is an error on line 4, that causes a loop to run continuously.
Change From:
===================
Hope this helps............
1. Some extra spaces at end of the lines. These may have been from my copy/paste, and may not be in the original, but you should check to make sure. Use Edit, Show All Chars to review, and/or Edit, Remove Trailing Spaces to remove them if you have a newer version of Macro Scheduler.
2. There is an error on line 4, that causes a loop to run continuously.
Change From:
Change To:
Add the > after If. Be sure to remove all space characters.
===================
Hope this helps............
Concat Error
Sorry.
The problem is this.
With this script I would save many htm pages, everyone with his name (example: pagename1.htm;pagename2.htm) including a counter at the end of the name.
Can you help me?
Thank you
Merlino
The problem is this.
With this script I would save many htm pages, everyone with his name (example: pagename1.htm;pagename2.htm) including a counter at the end of the name.
Can you help me?
Thank you
Merlino
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
From your example:
In Netscape, you would send ALT-FS to "Save As" a file. ALT-FV does a Print Preview.
In MSIE, you would send ALT-FA to "Save As" a file. ALT-FV does a Print Preview.
At a glance, it looks like the rest of the script is correct. You are just using the wrong ALT-F key.
You could also could add a line like the following:
=========================
Hope this helps..........good luck,
Bob
In the section above you are send ALT-FV, but I don't know what that will do, it depends on the browser you are using..WaitWindowOpen>http://www3.autorita.energia.it/cgi-bin/ricerca_clienti*
WaitReady>0
Wait>20
Press Alt
Send Character/Text>f
Release Alt
Send Character/Text>v
Let>nome=Napoli
Concat>nome,i
Send Character/Text>nome
In Netscape, you would send ALT-FS to "Save As" a file. ALT-FV does a Print Preview.
In MSIE, you would send ALT-FA to "Save As" a file. ALT-FV does a Print Preview.
At a glance, it looks like the rest of the script is correct. You are just using the wrong ALT-F key.
You could also could add a line like the following:
before doingWaitWindowOpen>Save*
The WaitWindowOpen name will depend on your browser.Send Character/Text>nome
Press Enter
=========================
Hope this helps..........good luck,
Bob
Based on the naming for variables used in the code, as well as the URL used, I guess the browser uses an italian language setting. Therefore the shortcuts could be different to the one we use (UK or US)
Assumed the URL is complete (regardles the asterix) ...
"Torna alla pagina iniziale"
http://www3.autorita.energia.it/index_idonei.htm
Cause your script waits for
another slight change
But as Bob already said, you realy don't point out the issue !

Assumed the URL is complete (regardles the asterix) ...
Therefore this link would have the focus:
"Torna alla pagina iniziale"
This page opens ...Press Enter
http://www3.autorita.energia.it/index_idonei.htm
Cause your script waits for
there's no matching window title ...WaitWindowOpen>http://www3.autorita.energia.it/cgi-bin/ricerca_clienti*
another slight change
Code: Select all
Let>nome=Napoli
Concat>nome,%i%
Send Character/Text>%nome%
concat error
I had a script with very strange behavior, like % in values of variables that should not have them and input windows that appeared or reappeared when they should not. (v6 & v7)
It seems that under XP SR1, all patches applied, the following simple script does not work in v7. XP starts to behave strangely, have to reboot.
concat>t,rec
mdl>t
concat>t,-
mdl>t
the first mdl outputs something like rec%%
before the second, MS and XP hangs
I have modified my script by just using cancat with variables i.e
// concat>t,.
Let>DOT=.
concat>t,DOT
Is it 'just my Windows'?
It seems that under XP SR1, all patches applied, the following simple script does not work in v7. XP starts to behave strangely, have to reboot.
concat>t,rec
mdl>t
concat>t,-
mdl>t
the first mdl outputs something like rec%%
before the second, MS and XP hangs
I have modified my script by just using cancat with variables i.e
// concat>t,.
Let>DOT=.
concat>t,DOT
Is it 'just my Windows'?