Jump to content

Javier

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by Javier

  1. 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!!! 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!!!)
  2. 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
  3. Any Help? Thanks
  4. Any Help? Thanks
  5. 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
  6. The code Opt("WinTitleMatchMode", 2) $windows = WinList("WebHotelEXPERT 6.0 -") For $i = 1 to $windows[0][0] WinClose($windows[$i][1]) ; I changed to winkill (same results) Next
  7. 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: Thanks in advance
  8. Internet Explorer detects activity in that webpage and its telling me if I want to close or not the webpage. I was using winkill() to force this windows to close the webpage without success.
  9. Hi Richard, Your explanation solved the problem. Big thanks for that! The only one now is when I closing the windows, sometimes, I'm getting this error message below and doesn't allow to close it. I tryed winkill command with same resultDo you have any other idea? Thanks in advance
  10. Sure, this is one of the common WebHotelEXPERT 6.0 -
  11. Thanks Richard, WinClose("[CLASS:Notepad]", "") With this command (using notepad), also works but I cannot make it with internet explorer. Can you please, explain how. Here's a little bit more details about this project. I'm using APPEON in a our website to load the application. When you open this webpage (appeon add-on) on our appeon manager shows one new session opens. So far so good. When you close the webpage using windows close button, this session ends intermediately. Perfect, this is the way that suppose to work. Here is my problems, when you do it using commands like taskkill (DOS) or process.close() etc, it doesn't work. The session still opens in our Appeon manager Any idea how I can try? Thanks Javier
  12. Hi All, What i'm trying to do is to replicate the command action equal to windows close button (red X on windows). I tryed already few options with no sucess. This is what i'm using, from AutoIt examples ; WMI Example ; ; Kill a process ; ; Derived from a KiXtart script ENDPROC by Conrad Wheeler ; See also: http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=82164 ; execute a program Func EndProc($proc, $strComputer=".") $oWMI=ObjGet("winmgmts:{impersonationLevel=impersonate}!\\" & $strComputer & "\root\cimv2") $oProcessColl=$oWMI.ExecQuery("Select * from Win32_Process where Name= " & '"'& $Proc & '"') For $Process In $oProcessColl $Process=$Process.Terminate Next EndFunc ; Example usage Endproc ("iexplore.exe") ; Kills all instances of the Internet Explorer :-) This code works like a charm, closing all windows explorer. For some reason is not the same when you just click on the red button closing the windows. Please any help will be appreciated Thanks in advance. Javier
×
×
  • Create New...