This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
;#InstallKeybdHook | |
#SingleInstance | |
#MaxHotkeysPerInterval 1000 | |
VolumeSet(number) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function archive_all(testOnly) { | |
messages = $("._5blh") | |
console.log("Found", messages.length, "messages on messsenger."); | |
if (!testOnly) { | |
for (i = 0; i < messages.length; i++) { | |
try { | |
messages[i].click()// open dialog | |
$("li:contains('Archive')").last().click() |