Page 1 of 1 1
Topic Options
#76282 - 2003-08-08 12:38 AM IE shortcut with no address bar, etc.
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Using Richard's KiXCrypt, I have created an EXE with the following (also included the WKIX32.EXE with the EXE as well)..

Anyway, here is the code -
code:
$ie=createobject('internetexplorer.application') ;Create Object
$ie.width=800
$ie.height=600
$ie.addressbar=0
$ie.menubar=0
;$ie.toolbar=0
$ie.statusbar=0
$ie.navigate('http://www.pullcreditreports.com')
$ie.visible=1
;; $=SetTitle('CREDITNET Online')
;; DO SLEEP 1 UNTIL SetFocus('CREDITNET Online')=0
;IF SetFocus('EDI')=0
;DO SLEEP 1 UNTIL SetFocus('CREDITNET Online')=0
;ENDIF
$ie=0 ;release the object

The issue is that I can run the EXE fine once, but if I try to run it again, it does not work. It does not release properly.

Environment this is running in -
NT 4 - SP6
Citrix MetaFrame 1.8
Running through a published app..

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#76283 - 2003-08-08 02:43 AM Re: IE shortcut with no address bar, etc.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
$ie=0 will release the COM object but don't you need to do $ie.quit first?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#76284 - 2003-08-08 03:01 AM Re: IE shortcut with no address bar, etc.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, I was pretty darn close... do I get a cigar?

See Shawn's excellent FAQ
Topic: COM Scripting Primer
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#76285 - 2003-08-08 03:10 AM Re: IE shortcut with no address bar, etc.
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I think so
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#76286 - 2003-08-08 03:25 AM Re: IE shortcut with no address bar, etc.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Not very often I get to tell my co-moderator to RTFF. [Big Grin]

Hmmm... and the FAQ forum moderator to boot! [Razz]

www.topcubans.com
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#76287 - 2003-08-08 07:45 AM Re: IE shortcut with no address bar, etc.
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I don't the $ie.quit is what I need.. I want to be able to launch IE without specific toolbars, etc. and then have the clients go do operations, and close.. The users should then be able to start IE again. I understand that ie is never closed, which is where the root of this problem exists.

Hmm..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#76288 - 2003-08-08 07:52 AM Re: IE shortcut with no address bar, etc.
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
The problem really lies in the fact that our users are running a Loan Entry program in a Citrix session.. There is a call made to Internet Explorer from this session and a credit report pulled for the borrower. Once the report is pulled, Internet Explorer is closed and the client goes on to the next loan.

This is driven by the fact that our Citrix Admin does not want the clients to surf the net while in a Citrix session.

Kent

[ 08. August 2003, 07:56: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#76289 - 2003-08-08 10:01 AM Re: IE shortcut with no address bar, etc.
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
quote:
This is driven by the fact that our Citrix Admin does not want the clients to surf the net while in a Citrix session.
Three solutions, best to worse:
  • You must already have a firewall in place, so simply deny HTTP FTP etc. to the Citrix machines. Easy to implement, and impossible for clients to circumvent. If *some* of the citrix clients need Internet access, implement a proxy. Again this is very simple and has many benefits.
  • Set the proxy settings for Citrix IE clients to a dummy address, and allow direct connections for local addresses, and any external addresses which are deemed acceptable. Any attempt to access an external address will try to use the proxy - as this is a dummy address it will fail and the request will not be serviced.
  • Set the Citrix machines to use an internal only DNS server


[ 08. August 2003, 10:03: Message edited by: Richard H. ]

Top
#76290 - 2003-08-08 02:14 PM Re: IE shortcut with no address bar, etc.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well then you don't need COM at all. Just create a page with a bit of JavaScript and do a redirect.



<script language="JavaScript">
<!--// HP Web JetAdmin Launch
Offsite=window.open("http://ffprint.ff.abicon.com:8000",
"Offsite","toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=0,width=900,height=580");window.focus();
Offsite.focus ();
javascript:history.go (-1);
// HP Web JetAdmin Launch End -->
</script>
<script>
Offsite.focus ();
</script

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#76291 - 2003-08-08 02:53 PM Re: IE shortcut with no address bar, etc.
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Thanks Les..

Getting closer.. [Wink]



<script language="JavaScript">
Offsite=window.open("http://www.pullcreditreports.com",
"Offsite","toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=0,width=800,height=600");window.focus();
Offsite.focus ();
javascript:history.go (-1);
window.close()
</script>



I can understand starting a browser to do this, but when I ask ie to close the original window, it prompts to do so..

I have also tried location.href as well.

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#76292 - 2003-08-08 02:57 PM Re: IE shortcut with no address bar, etc.
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Mebbe try a $ie.quit(1)?
Top
#76293 - 2003-08-08 03:01 PM Re: IE shortcut with no address bar, etc.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What about starting in theatre mode?

iexplore -k http://www.pullcreditreports.com
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#76294 - 2003-08-12 07:28 AM Re: IE shortcut with no address bar, etc.
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Theatre mode or kiosk mode does not work as it would be difficult to close the window. We wound up adding a drive mapping and writing the credit file to the client drive and it is picked up by the browser for processing.

In other words, COM/JavaScript were not used.

Thanks for the insights and help.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#76295 - 2003-08-12 06:40 PM Re: IE shortcut with no address bar, etc.
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
Kyder, when you call windows.close from a javascript, IE does ask you if you really want to. However, it does not ask you if the window is a popup one - strange.!

There is a way around it, but I don't have the code handy.

Another alternitive could be to use frames with Theatre mode. Have a small frame window at the top with a close button, and a large window for the main contents.

That way would might get away from IE not working again, as you would only need to clear the main window and reload it again.

Wiz
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 756 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.065 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org