1. Launching a document with it's default viewer
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Apr 08, 2001
- 470 views
Hey! The subject line pretty much says it all> I want to launch a named document using it's default viewer from a win32lib program, system() will do it but it brings up an ugly console window... Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying
2. Re: Launching a document with it's default viewer
- Posted by Travis Beaty <travisbeaty at arn.net> Apr 08, 2001
- 426 views
Howdy! Give this piece of code a whirl. It uses shellExecute from win32lib.ew. This should give you some idea of how to do what you're wanting ...-- How to launch something with shellExecute include win32lib.ew constant window = create(Window, "Launch Euphoria site", 0, Default, Default, Default, Default, 0), btn = create(Button, "Let's see site", window, 0, 0, 100, 100, 0) procedure onClick_btn() shellExecute("Open", "www.rapidEuphoria.com", SW_SHOWNORMAL) end procedure onClick[btn] = routine_id("onClick_btn") WinMain(window, Normal) Happy Hunting, Travis Beaty Claude, Texas.