This may help you - it's an example I built a long time ago.
--------------------
Here is a simple example built with version 10 of Macro Scheduler.
Version 12 has MUCH greater control over Dialogs and so you have many more creative options with that version. Version 12 should run this code also since it is backward compatible.
Run it, then fill in a zipcode and click the go button.
Code: Select all
// Show the results of a parsed webpage inside a Dialog
Dialog>Dialog1
Caption=Dialog1
Width=403
Height=301
Top=150
Left=31
Edit=msEdit1,80,40,81,
Label=ZipCode,24,40,true
Button=Go,232,40,75,25,3
Memo=msMemo1,40,96,273,113,
Label=Get Weather Info,64,8,true
EndDialog>Dialog1
Show>Dialog1
Label>MainLoop
GetDialogAction>Dialog1,result
If>result=2,End
If>result=3,GetWeather
Wait>0.01
Goto>MainLoop
SRT>GetWeather
Let>zip_code=Dialog1.msEdit1
Let>URL=http://www.briansutton.com/wx/weather.html?id=%zip_code%&length=10&unit=s&#current
HTTPRequest>URL,,GET,,HTMLResponse
Let>String1=<td width="41%" height="24" align="center" valign="top">
Let>String2=</td>
Length>String1,String1_length
Position>String1,HTMLResponse,1,StartAt
Add>StartAt,String1_length
Position>String2,HTMLResponse,StartAt,EndAt,FALSE
Let>myLen=EndAt-StartAt
MidSTr>HTMLResponse,StartAt,myLen,myWeather
Let>Dialog1.msMemo1=The current weather for zipcode %zip_code% is %CRLF%%CRLF%%myWeather%
ResetDialogAction>Dialog1
END>GetWeather
Label>End