Please close all chat windows

Close All Windows или как закрыть все запущенные программы одним кликом

Нередко при работе в Windows мы открываем столько приложений, что бывает не так легко закрыть их все одновременно. Уточним, мы рассматриваем именно операцию закрытия запущенных программ, а не их свёртывания в Панель задач (свернуть все окна можно комбинацией клавиш Win + M). Крошечная утилита Close All Windows позволяет выполнить закрытие всех открытых приложений одним кликом.

Close All Windows не требует установки, так что просто подготовим этот удобный инструмент для дальнейшего использования. Распакуем архив в любую папку, лучше всего создать папку под названием Close All Windows где-нибудь в Program Files. Отметим, в архиве имеется как версия для 32-разрядной Windows, так и версия для 64-разрядной винды в подпапке x64.

Помещаем ярлык программы в панели быстрого запуска или создаём ярлык на Рабочем столе. Владельцам Windows 7 достаточно будет прикрепить исполняемый файл Close All Windows к панели задач.

Вот и всё! Теперь, когда потребуется быстро закрыть все активные приложения, кликаем по ярлыку Close All Windows. В случае, если в каких-то программах к этому моменту останутся несохранённые данные, появится запрос для сохранения их перед закрытием.

Появляется вопрос, а как исключить некоторые приложения из процесса одновременного закрытия? Например, необходимо, чтобы любимый браузер при использовании Close All Windows оставался открытым. В этом случае добавляем следующую команду в свойствах ярлыка:

CloseAll.exe -x=«explorer.exe|firefox.exe|Totalcmd.exe»

Здесь в кавычках перечисляем названия исполнимых файлов именно тех приложений, закрытие которых нежелательно. Разделяем названия символом «|». Сохраняем внесённые изменения и проверяем.

Здесь же, в свойствах ярлыка можно добавить сочетание клавиш, и тогда закрывать окна можно будет также быстро и легко, как и сворачивать.

Характеристики:
Язык интерфейса: английский
ОС: Windows XP, Vista, 7
Размер файла: 36 Кб
Лицензия: бесплатная

Please close all chat windows

Вопрос

Lync seems to behave a little bit differently from the Communicator regarding lost network connectivity.

As soon as Lync looses the connection to the server (e.g. by switching from LAN to WLAN) it logs off and closes all chat windows — which is the main annoyance.

Can this behaviour be changed somehow so chat windows stay open and their content isn’t lost?

Due to legal restrictions automatic saving of chat history is disabled — so that’s no alternative to access the lost chats.

Any help/ideas appreciated.

Ответы

Unfortunately,As soon as Lync looses the connection to the server (e.g. by switching from LAN to WLAN) it logs off and closes all chat windows this is by desgin,however you can check the conversation history when you switch from Contacts windows to Conversation windows in Lync client control panel and then click on the contacts to open the conversation windows with missed conversation history.See below screenshot

Читайте также:  Linux deepin загрузочная флешка

Also if you deployed Exchange and you can check the conversation history in your outlook conversation history folder.

TechNet Community Support

Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.

How to close current tab in a browser window?

I want to create a link on a webpage that would close the currently active tab in a browser without closing other tabs in the browser.
When the user clicks the close link, an alert message should appear asking the user to confirm with two buttons, «YES» and «NO». If the user clicks «YES», close that page and If «NO», do nothing.

How can it be done? Any suggestions?

I might be late here but this is prevented by the browsers for a reason.

Think of yourself trying to close a window again and again and it’s not closing as its doing the «if no» part from your question which is ‘do nothing’.

This will be irritating for sure ! – Muhammad Osama Mar 16 ’19 at 8:54

16 Answers 16

You will need Javascript to do this. Use window.close() :

Note: the current tab is implied. This is equivalent:

or you can specify a different window.

You return false here to prevent the default behavior for the event. Otherwise the browser will attempt to go to that URL (which it obviously isn’t).

Now the options on the window.confirm() dialog box will be OK and Cancel (not Yes and No). If you really want Yes and No you’ll need to create some kind of modal Javascript dialog box.

Note: there is browser-specific differences with the above. If you opened the window with Javascript (via window.open() ) then you are allowed to close the window with javascript. Firefox disallows you from closing other windows. I believe IE will ask the user for confirmation. Other browsers may vary.

This method works in Chrome and IE:

As far as I can tell, it no longer is possible in Chrome or FireFox. It may still be possible in IE (at least pre-Edge).

Sorry for necroposting this, but I recently implemented a locally hosted site that had needed the ability to close the current browser tab and found some interesting workarounds that are not well documented anywhere I could find, so took it on myself to do so.

Note: These workarounds were done with a locally hosted site in mind, and (with the exception of Edge) require the browser to be specifically configured, so would not be ideal for publicly hosted sites.

Context: In the past, the jQuery script window.close() was able to close the current tab without a problem on most browsers. However, modern browsers no longer support this script, potentially for security reasons.

Google Chrome:

Chrome does not allow the window.close() script to be to be run and nothing happens if you try to use it. By using the Chrome plugin TamperMonkey however we can use the window.close() method if you include the // @grant window.close in the UserScript header of TamperMonkey.

For example, my script (which is triggered when a button with is clicked and if ‘yes’ is pressed on the browser popup) looks like:

Note: This solution can only close the tab if it is NOT the last tab open however. So effectively, it cannot close the tab if it would cause window to closes by being the last tab open.

Firefox:

Firefox has an advanced setting that you can enable to allow scripts to close windows, effectively enabling the window.close() method. To enable this setting go to about:config then search and find the dom.allow_scripts_to_close_windows preference and switch it from false to true.

This allows you to use the window.close() method directly in your jQuery file as you would any other script.

For example, this script works perfectly with the preference set to true:

Читайте также:  Megaraid storage manager linux x64

This works much better than the Chrome workaround as it allows the user to close the current tab even if it is the only tab open, and doesn’t require a third party plugin. The one downside however is that it also enables this script to be run by different websites (not just the one you are intending it to use on) so could potentially be a security hazard, although I cant imagine closing the current tab being particularly dangerous.

Disappointingly Edge actually performed the best out of all 3 browsers I tried, and worked with the window.close() method without requiring any configuration. When the window.close() script is run, an additional popup alerts you that the page is trying to close the current tab and asks if you want to continue.

Edit: This was on the old version of Edge not based on chromium. I have not tested it, but imagine it will act similarly to Chrome on chromium based versions

Final Note: The solutions for both Chrome and Firefox are workarounds for something that the browsers intentionally disabled, potentially for security reasons. They also both require the user to configure their browsers up to be compatible before hand, so would likely not be viable for sites intended for public use, but are ideal for locally hosted solutions like mine.

Admin ability to view history for all channels, direct messages and private channels #2869

Comments

gt50 commented Apr 13, 2016

Your Rocket.Chat version: 0.26.0

I would like to be able to view all conversations that have occurred on the RocketChat server. I would like to use it in an work environment. There is no expectation of privacy and the information would be accessed when needed for auditing purposes.

I imagine this either being added to the history area, or allowing an admin to view a room, or add themselves to a room from the rooms area in adminstration.

The text was updated successfully, but these errors were encountered:

edman545 commented Apr 19, 2016

I agree, there is some expectation from upper management that all electronic communication is being logged somewhere. Even if if it just dumped every message sent to a log file somewhere, that would be enough for our purposes. It is very rare that I have to dig into such information, but sometimes there is good reason.

tholu commented Apr 19, 2016

Could be implemented in the admin rooms view (where all direct messages are already listed as well), when clicking on the room to show the logs of it. Or in a separate audit view.

kdahmani commented Apr 23, 2016

I also think that from a compliance point of view it would be very important to be able to access all chats on the server

heytimc commented May 13, 2016

Definitely need logging for compliance here. Anything would be great; text, syslog, d/b, don’t care how. We won’t be able to go live until this is available.

dereckhall commented May 27, 2016

same requirement for our office as well. currently utilizing openfire jabber for interoffice communication w/ their archive plugin. something similar or anything really would be great.

thelilmatt commented Jun 10, 2016

+1 for this. It’s the only thing holding us back from implementing RocketChat

dupree972 commented Jun 10, 2016

I would love this functionality too.

+1 for this. It’s the only thing holding us back from implementing RocketChat


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #2869 (comment), or mute the thread https://github.com/notifications/unsubscribe/AOVtMEqR3suEpU_gECJHTbf_otfHbdZdks5qKcrGgaJpZM4IGrw8.

widget7h15 commented Jun 16, 2016

Rocketchat is a fantastic platform but I would really like to see this feature implemented so we can use this in our organization. Pretty much every other chat style program has at least one way to audit conversations for HR purposes.

dupree972 commented Jun 22, 2016

Is there any progress or has anyone even found a work around for this. We are a SEC and CFTC regulated entity and our compliance officer has the need to randomly review a certain small percentage of messages per month. Also we have the need to archive messages. It does not need to be fancy, even if they all dropped into a text file or something that could be ingested somewhere like a smarsh or other archive that would be terrific.

Читайте также:  Linux list processes with path

slowbiz commented Aug 17, 2016

This is also functionality we will need before moving to production in our environment.

heytimc commented Sep 18, 2016

Yay! Merged to develop 🙂

slowbiz commented Sep 21, 2016

I see the Smarsh Connector in the latest build, which is great. Is there any plan to offer a built-in log/archive/history page to audit conversations?

patit72 commented Dec 19, 2016

Here too, we need that function before moving to production

megabit-computing commented Jan 15, 2017

This functionality is vital before we can consider using rocket Chat hosted version!

rajsardhara commented Feb 13, 2017

Nepoxx commented Feb 15, 2017 •

You can already do this by connecting to your Mongo database.

List the rooms with db.rocketchat_room.find(<>) , grab the ID of the room you want the history for.

It’s not as intuitive as a web interface, but auditing your users’ chat logs should seldom be done therefore this is a viable workaround in the meantime.

This topic attracts a great deal of controversy, as it should. That being said, this method is a workaround until there is a corresponding UI. This also means that you are already being recorded when chatting using RocketChat since your messages are saved in the database unencrypted (unless you use OTR). If you allow your users to edit/delete their messages, they are indeed modified/deleted from the database, so take that into account.

dereckhall commented Feb 15, 2017 •

@Nepoxx For the majority of users here this is a business requirement.

Also, your method doesn’t take into account that users can still edit their original message, which modifies the original within mongo.

philippevk commented Feb 15, 2017 •

@dereckhall He just gave us a workaround. You can disagree about the spying part (I don’t), but where I’m from when someone help you, you say «thank you»

xandershelley commented Feb 16, 2017

If this feature is enabled it should be made clear the chat is being recorded. RocketChat is already being used for private chat servers as well.

patit72 commented Feb 16, 2017

It might be required for forensic audit, and its use should be logged too. For sure it is a feature needed in business environments

christopherturner commented Mar 30, 2017

Are there still plans to integrate this into the UI?

sebastientaggart commented Mar 30, 2017

devact commented Apr 18, 2017

To have history for audit is one of the major mandatory business requirements for any company. So +1 for an easy UI interface. 10x!

Nemra1 commented Apr 27, 2017

we need that for admins only..we dont know what bad planes happend in direct rooms

evaldoprestes commented Jun 7, 2017

sasha2002 commented Dec 26, 2018

TWO years of +1 and no attention. yeah serious company.
Disappointed!

engelgabriel commented Dec 26, 2018

@sasha2002 @necil2201 @rmetzler @FaizanZahid and other, please send your details to contact@rocket.chat and our team will get in contact to talk to you regarding the History Audit app.

ellisgeek commented Feb 7, 2019

Any news on when this will be available?

sasha2002 commented Feb 8, 2019

@engelgabriel WE choose to switch to another software because of multiple bugz and feature that is not present, and near future of this features is also unclear!
To all users, think twice before install!

vynmera commented Feb 8, 2019

@sasha2002 Sorry to hear that. Where official support is lacking, I still very much enjoy using the APIs and JS to integrate my own code. I feel that’s the power of RC.

Оцените статью