+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Running IrfanView Commands With ActiveX

  1. #1
    IV Amateur rani is on a distinguished road
    Join Date
    Oct 2008
    Posts
    14
    Rep Power
    2

    Default Running IrfanView Commands With ActiveX

    How I can run irfan commands with activex dll ?

  2. #2
    Moderator Bhikkhu Pesala is on a distinguished road Bhikkhu Pesala's Avatar
    Join Date
    May 2007
    Location
    East London
    Posts
    2,647
    Rep Power
    6

    Default

    Please post in the right forum and use more accurate thread titles.

  3. #3
    IV Amateur rani is on a distinguished road
    Join Date
    Oct 2008
    Posts
    14
    Rep Power
    2

    Default 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

  4. #4
    Moderator Bhikkhu Pesala is on a distinguished road Bhikkhu Pesala's Avatar
    Join Date
    May 2007
    Location
    East London
    Posts
    2,647
    Rep Power
    6

    Default

    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.

  5. #5
    IV Amateur rani is on a distinguished road
    Join Date
    Oct 2008
    Posts
    14
    Rep Power
    2

    Default

    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

  6. #6
    Advanced User matera is on a distinguished road matera's Avatar
    Join Date
    May 2006
    Location
    3 miles below poverty level
    Posts
    1,317
    Rep Power
    6

    Default

    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

  7. #7
    IV Amateur Lex-Mike is on a distinguished road Lex-Mike's Avatar
    Join Date
    Jan 2008
    Location
    Lexington, Kentucky
    Posts
    12
    Rep Power
    3

    Default

    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.

  8. #8
    Professional User Skippybox is on a distinguished road Skippybox's Avatar
    Join Date
    Jul 2008
    Location
    Detroit, MI USA
    Posts
    2,034
    Rep Power
    5

    Default

    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.

  9. #9
    Moderator MItaly is on a distinguished road MItaly's Avatar
    Join Date
    Jul 2007
    Location
    Milan, Italy
    Posts
    511
    Rep Power
    4

    Default

    Quote 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).

  10. #10
    IV Newbie Paulus Camillus is on a distinguished road
    Join Date
    Jan 2009
    Posts
    1
    Rep Power
    0

    Default 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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts