#76282 - 2003-08-08 12:38 AM
IE shortcut with no address bar, etc.
|
Kdyer
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
|
|
Top
|
|
|
|
#76285 - 2003-08-08 03:10 AM
Re: IE shortcut with no address bar, etc.
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
|
|
Top
|
|
|
|
#76287 - 2003-08-08 07:45 AM
Re: IE shortcut with no address bar, etc.
|
Kdyer
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
|
|
Top
|
|
|
|
#76288 - 2003-08-08 07:52 AM
Re: IE shortcut with no address bar, etc.
|
Kdyer
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 ]
|
|
Top
|
|
|
|
#76289 - 2003-08-08 10:01 AM
Re: IE shortcut with no address bar, etc.
|
Richard H.
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
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
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Thanks Les..
Getting closer..
<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
|
|
Top
|
|
|
|
#76294 - 2003-08-12 07:28 AM
Re: IE shortcut with no address bar, etc.
|
Kdyer
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
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|