Forums Home | FAQ | Search  
Forums > iGetter for Windows
iGetter's COM CALL
< Last Thread     Next Thread >
Author
Thread    Post New Thread     Post A Reply

07-05-2010 11:03 PM

Posted by:
yissyo

Find more posts by yissyo

Hi,
I'm making an app with iGetter integration, i need to call it by COM(not from ie), and it's not work with no error.
So i tested use html source below, the vbs works but the js not.
Can anyone tell me the reason ?

Thanks.

<html>
<body>
<script type="text/javascript">
function js() {
var IGETObj = new ActiveXObject("IGMONObj.IGMONObj.1");
var vArr = [2];
vArr[0] = "http://www.google.com/a.zip";
vArr[1] = "azip";
IGETObj.NewURL(vArr, "http://www.google.com");
}
</script>
<script type="text/vbscript">
Sub vb()
Set IGETObj = CreateObject("IGMONObj.IGMONObj.1")
ReDim vArr(1)
vArr(0) = "http://www.google.com/a.zip"
vArr(1) = "azip"
Call IGETObj.NewURL(vArr, "http://www.google.com")
End Sub
</script>
<button onclick="vbscript:vb()">VBS</button><button onclick="javascript:js();">JS</button>
</body>
</html>

07-06-2010 05:35 PM

Posted by:
iGetter Support

Find more posts by iGetter Support

yissyo,
The COM object that you are trying to use works only in IE with VBScript. In Javascript the array construction is different (type and data) than VBScript and the iGetter component doesn't accept it.

If you can call the iGetter exe, you can use it to add one or more URLs to iGetter. You can find the path to the installed iGetter.exe in the following registry key "HKCU\Software\iGetter". The command line switches are explained here: http://www.igetter.net/forums/showthread.php3?threadid=1243

Regards,
iGetter Support

07-07-2010 12:44 AM

Posted by:
yissyo

Find more posts by yissyo

I tested those switchs but "-f" is not work for me, the iGetter.exe even not access the text file i told it(checked by Process Monitor).
Would you please give me an example about "-f" ?

Thanks.

07-07-2010 01:25 PM

Posted by:
iGetter Support

Find more posts by iGetter Support

yissyo,
Indeed, -f option will not work unless there is a -b option. I edited the above post with that requirement. In addition, iGetter v2.6 and above supports the Chrome browser with the "-b 6" switch. Also, if you want to put session cookies for each URL in the URLs file, you can use the ~%iget^= delimiter in the comment field.
This is an example of a file with three URLs (all lines end with \r\n):

quote:
http://www.igetter.net/downloads.html
http://www.igetter.net/search/downloads/iGetter2.6.exe

http://www.igetter.net/search/downloads/iGetter2.6.1_De.exe
iGetter 2.6.1 German
http://www.igetter.net/search/downloads/iGetter2.6.1_Ru.exe
iGetter 2.6.1 Russian~%iget^=some cookie text;


So, to add one or more URLs to iGetter with the -f switch and set the Chrome browser for the cookies option, you can use this command:
"C:\Program Files\iGetter\iGetter.exe" -f "<path to file with URLs>" -b 6

Regards,
iGetter Support



All times are CT (US)    Post New Thread     Post A Reply
Forum Jump:
< Last Thread     Next Thread >



| Home | News | iGetter | Downloads | Forums |

| Privacy Policy | Contact us |

All contents of these forums are copyright © 2001-2016 Presenta Ltd. All rights reserved.
Forums are moderated by Presenta Ltd.

Powered by: vBulletin Lite Version 1.0.0 Lite
Copyright © Jelsoft Enterprises Limited 2000.