Announcement

Collapse
No announcement yet.

Running IrfanView Commands With ActiveX

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Running IrfanView Commands With ActiveX

    How I can run irfan commands with activex dll ?

    #2
    Please post in the right forum and use more accurate thread titles.
    Before you post ... Edit your profile • IrfanView 4.67 • Windows 10 Home 19045.2486

    Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

    Comment


      #3
      irfanview as activex

      run irfanview as activex
      I asked this question before,

      is there an option to run irfanview as activex ?
      means to make instance of some .dll in irfanview folder ?
      and use it as properties/methods ... ?

      rgrds
      rani

      Comment


        #4
        Since nobody answered before, maybe this time you could explain a bit better what you're trying to do. Your question means nothing at all to me, but I'm not a programmer.
        Before you post ... Edit your profile • IrfanView 4.67 • Windows 10 Home 19045.2486

        Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

        Comment


          #5
          Hi Bikku

          I mean
          in MS (windows) environment, it's called COM objects,
          if you(author) write a program as Activex DLL compile , from any program like: VB,C++ or else any prof. can activate th 'Irfan.dll' .
          you can make new instance of the 'irfan.dll'
          and aproach the properties and methods the author implemented as 'public'

          this I mean ActiveX dll

          rgrds
          rani

          Comment


            #6
            Still waiting for an explanation that makes sense.
            Its: Belongs to "It"
            It's: Shortened form of "It is"
            ---------------------
            Lose: Fail to keep
            Loose: Not tight

            ---------------------
            Plurals do not require apostrophes

            Comment


              #7
              I'm going to take a wild guess and say..... "Maybe Rani is looking for an Irfanview SDK or API?"

              I'm not a programmer.... This is just a wild guess.

              Comment


                #8
                rani,

                I'm not sure what you are asking for either. Why do you want to do this with IrfanView? Since IrfanView is closed source, I don't see how you could tap into its functionality other than maybe becoming a plugin developer. Even so, that won't probably be what your planning to do.

                Don't understand what the 'irfan.dll' is either; IrfanView is just a single executable (EXE) program. Any other dll file is just an add-on.

                Comment


                  #9
                  Originally posted by rani View Post
                  run irfanview as activex
                  I asked this question before,

                  is there an option to run irfanview as activex ?
                  means to make instance of some .dll in irfanview folder ?
                  and use it as properties/methods ... ?
                  No, you can't. IrfanView is not an ActiveX server, it's just a win32 native application that doesn't exposes any classes (and BTW I think it doesn't even makes large use of COM).
                  IrfanPaint developer
                  The latest stable IrfanPaint version is the 0.4.13.70.
                  IrfanPaint is now open-source (released under BSD license).

                  Comment


                    #10
                    Not API/SDK, but this can help...

                    Ah, I wanted to do the same thing: automating actions with IrfanView. Pressing a js-file on my computer, and zou-zou-zou, plenty of automated actions.

                    I came up with a workaround: launching automatically IrfanView from the shell object, and sending some "keys"

                    The example below save the content of the clipboard.
                    ---------------
                    var objShell = new ActiveXObject("WScript.Shell");

                    var strCommand = "\"C:\\Program Files\\IrfanView\\i_view32.exe\"";

                    objShell.Run(strCommand,1,false);

                    WScript.Sleep (1000);

                    objShell.SendKeys ("^v"); // PASTE : CTRL+V

                    WScript.Sleep (1000);

                    objShell.SendKeys ("s"); // SAVE AS

                    WScript.Sleep (1000);

                    objShell.SendKeys ("C:\\someFolder\\myfile.gif"); // FILE NAME

                    WScript.Sleep (1000);

                    objShell.SendKeys ("{ENTER}"); // COME ON! SAVE!

                    objShell.SendKeys ("y"); // OVERWRITE :-)

                    WScript.Sleep (1000);

                    objShell.SendKeys ("%{F4}"); // EXIT
                    ---------------

                    It's not very "neat" solution, but it worked for me, and I am happy of it. I hope it can work for you!

                    /Paul

                    Comment


                      #11
                      Hi,

                      why don´t you use the commandline features in vbs or whatever?

                      steve

                      Comment

                      Working...
                      X