forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Can I do this?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Wed Apr 10, 2002 3:29 pm    Post subject: Can I do this? Reply with quote

IF i wanted to check to see if Internet Explorer is running and then be able to Terminate or close it.

I would like to do this no matter what website they were on or what the title of the window is!

ANy ideas


Thanks

Rubes_sw


Thanks Guys, that done the trick Smile


Last edited by Rubes_sw on Thu Apr 11, 2002 7:58 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Apr 10, 2002 5:35 pm    Post subject: Reply with quote

As far as I remember the window class name of MSIE is #IEFRAME and you might
use that to control a MSIE window through the WINDOW SEND command.
Code:
window SEND,#IEFRAME,@ALT(@KEY(F4))

That should close your browser window.

If you suspect that there are more than one instance open, you can check for
the existence like this:
Code:

repeat
if @winexists(#IEFRAME)
%A = yes
window SEND,#IEFRAME,@ALT(@KEY(F4))
else
%A = no
end
until @equal(%A,no)

That should close the windows one by one.


Greetz
Dr. Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Wed Apr 10, 2002 6:39 pm    Post subject: Reply with quote

Or optimized for VDS 4:

Code:

  while @winexists(#IEFRAME)
    window SEND,#IEFRAME,@ALT(@KEY(F4))
  wend


Tommy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group