Hi,
Is it possible to have squeak run the default web browser and have it go to a url?
Hi Mike,
MV> Is it possible to have squeak run the default web browser and have it MV> go to a url?
Yes.
You need the FFI package. Assuming you are in Windows Win32Shell>>shellExplore: aPathString gives you an example to open the Windows explorer on a path. This can be tailored to open your favourite web browser.
There is an alternative in the OSProcess and CommandShell packages which I never used myself.
Cheers,
Herbert
On 20.11.2009, at 09:09, Herbert König wrote:
Hi Mike,
MV> Is it possible to have squeak run the default web browser and have it MV> go to a url?
Yes.
You need the FFI package. Assuming you are in Windows Win32Shell>>shellExplore: aPathString gives you an example to open the Windows explorer on a path. This can be tailored to open your favourite web browser.
There is an alternative in the OSProcess and CommandShell packages which I never used myself.
Cheers,
Herbert
The ScratchPlugin has an openUrl primitive, too. It's going to be included in the VM soonish, for now you could get it from Scratch or Etoys:
http://tracker.squeakland.org/browse/SQ-354 http://squeakland.org/updates/2291ScratchPlugin-jm.cs
- Bert -
beginners@lists.squeakfoundation.org