When using this line I get a loop...It just keeps loading the .ppt file over and over.![]()
Ideas?
File.Run("Autoplay\\PowerPoint Viewer\\PPTVIEW.EXE", "Autoplay\\Docs\\EHS 1-2003.ppt", "", SW_SHOWNORMAL, false);
Professional Software Development Tools
When using this line I get a loop...It just keeps loading the .ppt file over and over.![]()
Ideas?
File.Run("Autoplay\\PowerPoint Viewer\\PPTVIEW.EXE", "Autoplay\\Docs\\EHS 1-2003.ppt", "", SW_SHOWNORMAL, false);
Where is the action executed?
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
hey Bruce, wild guess.. should the 'false be changed to 'true
wait for 'proggie to finish running before continung ? or something similar
is the code line part of loop of some kind..
maybe file.open instead ?
my 2 cents..
Last edited by SUF6NEWBIE; 04-28-2004 at 07:30 PM.
No, good idea though SUF6 I tried that... Tigg, on page show.
Originally Posted by SUF6NEWBIE
can you open the file normally with pptviewer?
Is there other code that would open the file or interfer with the File.Run action?
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Yes I can and no their is nothing that would interfer. The next and only other code line is a page jump. This all has it's own page.
Don't know. Have you used the Debug commands to show what is going on as it opend the ppt?Originally Posted by Bruce
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
If you put a Dialog.Message() action before your File.Run() action does it get executed as well? If so the event that you have your File.Run() action seems to be in an endless loop.Originally Posted by Bruce
MSI Factory The Next Generation Intelligent Setup Builder
Ok the dialog is doing the same thing!!! What am I doing wrong!![]()
Anyone have sone insight?...
Hey Bruce,
Something similar to this happpened to me when I was using the Fade In/Out effect. For some reason, AMS was firing the On Show event more than once. I never figured out why, but was able toget around it with something like this.
If you want the PPTViewer to fire the next time that page is shown, make sure to set blnPPTStarted to false before jumping back to that page.Code:--Check to see if PPT has already been fired, if so skip the File.Run if (blnPPTStarted == nil) or (blnPPTStarted == false) then File.Run("Autoplay\\PowerPoint Viewer\\PPTVIEW.EXE", "Autoplay\\Docs\\EHS 1-2003.ppt", "", SW_SHOWNORMAL, false); blnPPTStarted = true; end
Originally Posted by Bruce
Thanks Worm!
No problem.
Still, it's odd that AMS fires the On Show more than once. Out of curiousity, are you doing anything out of the ordinary on the load of the page/app?
Originally Posted by Bruce
No, but I do have some Global goodies going on. That shouldn't be an issue.
Debug.SetTraceMode(true)Originally Posted by Bruce
Debug.ShowWindow(true)
Use those on project startup to open a window and see what code is being executed and causing your commands to loop.
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine