Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
43 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
option Explicit | ||
|
||
dim myBrowser, i, s, allData, data, line | ||
|
||
set myBrowser = CreateObject ("seeshell.browser") | ||
|
||
i = myBrowser.open(true) | ||
|
||
|
||
i = myBrowser.echo ("first macro") | ||
i = myBrowser.Play("testtab1") | ||
|
||
if i < 0 then msgbox "Error playing macro: " + cstr(i) + vbCrLf + vbCrLf +"Text: "+myBrowser.getLastError() | ||
|
||
'Get URL | ||
allData = myBrowser.GetExtractImageData() | ||
|
||
'The data is separated by [DATA] for each EXTRACTADD command | ||
data = Split(allData, "[DATA]") | ||
msgbox "Next macro will use this URL: " +data(0) 'FIRST element has index = 0 | ||
|
||
'Restart SeeShell (optional) | ||
i = myBrowser.close() | ||
i = myBrowser.open(true) | ||
|
||
i = myBrowser.setVariable ("starturl", data(0)) | ||
|
||
i = myBrowser.play("TestTab2") | ||
if i < 0 then msgbox ("Play error: " + cstr (i) +" " +myBrowser.getLastError()) | ||
|
||
msgbox ("Press OK to close the SeeShell Browser.") | ||
i = myBrowser.close() | ||
|
||
WScript.Quit(i) |
Binary file not shown.
Binary file not shown.