Jump to content

winkill() command


Recommended Posts

Hi All,

What I'm trying to achieve is to force a IE window to close even when IE its processing an online task. This is the code provided by Richard (thanks!!). The program works ok when no process is running on IE website, but nothing happens when IE its running a task.

I'm getting this pop-up message saying:

Posted Image

Thanks in advance

Link to comment
Share on other sites

Hi All,

What I'm trying to achieve is to force a IE window to close even when IE its processing an online task. This is the code provided by Richard (thanks!!). The program works ok when no process is running on IE website, but nothing happens when IE its running a task.

I'm getting this pop-up message saying:

Posted Image

Thanks in advance

For me the image you give covers the code, or at least I assume there is code underneath. Maybe you could edit your post.
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Hey Martin,

Thanks for your quick reply. Actually the code works well without issues. The problem appears when the webpage is doing a process, so winkill() looks like its not closing the IE windows at this specific time.

Thanks

Link to comment
Share on other sites

Will you have more than 1 instance of IE open? if not, you could use ProcessClose() which should end it reguardless of what it is doing.

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

Thanks Guys,

The problem is only 1 IE windows (8 in total) is constantly reading info from server. So only this webpage is not closing with winkill or winclose commands.

I could use ProcesClose() and will works ok, as you guys recommended, but in this way APPEON Server (SQL Anywhere) will leave session opens.

The main reason of this program is to close this sessions from the server.

There's any parameter for winclose() or winkill() to fully force the windows to close?

Again guys, thanks for your help

Link to comment
Share on other sites

I was asking because if he has more than 1 open but only wants to close the one, then ProcessClose would be a bit more difficult to work with

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

Hi Brandonms,

One of the problems is that I can't use ProcessClose() command because my session is not closing from my server. To make the long history short, I paste below a link from our website so you can get a general idea what is this all about it.

Basically, is an application running inside of IE and when this app is busy there's no way to close it, or stop it or KILL IT!!! :unsure:

What I'm trying to do now is to use winkill() and few parameters, but doesn't work.

I am almost giving it up!

Link to webpage

http://img130.imageshack.us/img130/4394/samplebq.png

Anyways, big thanks for the code (Actually works like a charm!!!)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...