Print Screen

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Analog Kid
    Forum Member
    • Dec 2003
    • 13

    Print Screen

    Can I use "Application.RunScriptFile" to send a screen print to the printer?

    Why wouldn't that work? Of course, I've tried it and it doesn't work.

    I save a NotePad file as a .lua, using javascript "window.print" and call that file on mouse click.

    That really ought to work unless I don't have a clear understanding of the process. It works fine for the "Hello World" alert.

    What am I doing wrong? I've tried window.print(); - (window.print) - javascript(window.print); .... nothing.

    Any help?
  • Lorne
    Indigo Rose Staff Member
    • Feb 2001
    • 2729

    #2
    You can't run javascript with Application.RunScriptFile.

    As it says in the help file:

    Executes the contents of an external script file (.lua).

    A script file is simply a text file containing AutoPlay script.
    --[[ Indigo Rose Software Developer ]]

    Comment

    • Corey
      Indigo Rose Staff Alumni
      • Aug 2002
      • 9745

      #3
      You can execute Javascripts by putting a web browser object on you page, and then just navigate it to the URL:

      javascript: print();

      should work...

      Corey Milner
      Creative Director, Indigo Rose Software

      Comment

      • Analog Kid
        Forum Member
        • Dec 2003
        • 13

        #4
        Hmmmm..... Would that print what was in the browser or can it be tricked to print a screen shot?

        Comment

        • Corey
          Indigo Rose Staff Alumni
          • Aug 2002
          • 9745

          #5
          That would depend on your Javascript, I was merely pointing out they can be executed using a browser object. I have no experience taking screencaps dynamically...

          Corey Milner
          Creative Director, Indigo Rose Software

          Comment

          Working...
          X