How I can run irfan commands with activex dll ?
Announcement
Collapse
No announcement yet.
Running IrfanView Commands With ActiveX
Collapse
X
-
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 Paint • Irfan View Help • IrfanPaint Help • Riot.dll • More Skins • FastStone Capture • Uploads
-
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 Paint • Irfan View Help • IrfanPaint Help • Riot.dll • More Skins • FastStone Capture • Uploads
Comment
-
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
-
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
-
Originally posted by rani View Postrun 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 ... ?IrfanPaint developer
The latest stable IrfanPaint version is the 0.4.13.70.
IrfanPaint is now open-source (released under BSD license).
Comment
-
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
Comment