Page 1 of 1

getting started - nothing happens

Posted: Fri Apr 26, 2019 1:33 pm
by jdrew
I downloaded the trial version (1.62), and I must be missing something obvious because I can't get a basic script to run. Any suggestions?

When I click "compile," I briefly see a status bar appear in "scripts status." The status bar disappears, and the status window returns to its empty state. When I click "run," the same thing happens. There is no prompt. There is no output. The script I'm trying is from the documentation:

Code: Select all

Output.Clear;

WebPage = Input('Source Viewer', 'Enter a URL to view...', 'http://');
if WebPage = nothing then Terminate;

Link = New(URL);

if not Link.Get(WebPage) then begin
  Display('Error', Link.ErrorText, IconStop);
  Terminate;
end;

if Link.ServerCode >= 400 then begin
  Display('Error', Link.ServerText, IconStop);
  Terminate;
end;

Output(Link.Data);

Re: getting started - nothing happens

Posted: Fri Apr 26, 2019 1:43 pm
by Support
when I click on Run or press the F9 key, I get a message asking me for a URL, I put one in and it downloads and display it in the output window.

Re: getting started - nothing happens

Posted: Mon Apr 29, 2019 8:53 am
by jdrew
Thank you for the quick follow-up.

The issue for me turned out to be the comments that were in my script, above the code I pasted in my forum post. Unfortunately, I saved over my comment-bearing copy of the script and I don't recall where I got the example script that originally contained those comments. When I deleted the whole commented chunk, the program worked as expected.

Re: getting started - nothing happens

Posted: Mon Apr 29, 2019 10:13 am
by Support
oh ok, make sure your comments are grayed out, use // before them.