How I can run irfan commands with activex dll ?
How I can run irfan commands with activex dll ?
Please post in the right forum and use more accurate thread titles.
Before you post ... fill in your OS and IV version in your profile.
Irfan Paint • Irfan View Help • IrfanPaint Help • Riot.dll • FastStone Capture • PDF-XChange
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
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 ... fill in your OS and IV version in your profile.
Irfan Paint • Irfan View Help • IrfanPaint Help • Riot.dll • FastStone Capture • PDF-XChange
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
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
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.
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.
IrfanPaint developer
The latest stable IrfanPaint version is the 0.4.13.70.
IrfanPaint is now open-source (released under BSD license).
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
There are currently 1 users browsing this thread. (0 members and 1 guests)