0% found this document useful (0 votes)
86 views

Autonotemaker Web Script

This document contains the source code for an AutoHotkey script that creates a tray menu with options to open/empty a temporary storage file, pause/reload the script, and exit. It also contains code to double click to copy text in certain windows and append it to the storage file, displaying a notification. The script is distributed under the GNU GPL license.

Uploaded by

venkat032
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views

Autonotemaker Web Script

This document contains the source code for an AutoHotkey script that creates a tray menu with options to open/empty a temporary storage file, pause/reload the script, and exit. It also contains code to double click to copy text in certain windows and append it to the storage file, displaying a notification. The script is distributed under the GNU GPL license.

Uploaded by

venkat032
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

/*Created by Mrunal.

org
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. <http://www.gnu.org/licenses/>.
*/
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey
releases.
SendMode Input ; Recommended for new scripts due to its superior speed and
reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#Persistent ; Keep the script running until the user exits it.
#SingleInstance,force ;prevent multiple scripts from running.
Menu, tray, NoStandard
Menu, tray, add,Open_Storage
Menu, tray, add,Empty_Storage
Menu, tray, add, ;seperator
Menu, tray, add, Pause_Program
Menu, tray, add, Reload_Program
Menu, tray, add, Exit_Program
return
Open_Storage:

run,%A_scriptdir%\Temporary_Storage_File.txt
return
Empty_Storage:
FileDelete,%A_scriptdir%\Temporary_Storage_File.txt
FileAppend,,%A_scriptdir%\Temporary_Storage_File.txt
TrayTip,Clean!,Temporary storage =empty.
return
Pause_Program:
Suspend
return
Reload_Program:
Reload
return
Exit_Program:
ExitApp
return
#If WinActive("ahk_class Chrome_WidgetWin_1") or WinActive("ahk_class
MozillaWindowClass") or WinActive("ahk_class Chrome_WidgetWin_0") or
WinActive("ahk_class IEFrame")
DClickT := DllCall("GetDoubleClickTime")
~LButton::
if (A_TickCount-DClickT < LastClickTick ) {
Sleep 50
Send ^c
}
LastClickTick := A_TickCount
MouseGetPos X0, Y0

KeyWait LButton
MouseGetPos X, Y
If (Abs(X-X0)+Abs(Y-Y0) < 5)
Return
Sleep 10
Send ^c
Gosub,textcleaner
return
textcleaner:
;Clipboard:=RegExReplace(Clipboard,"\R++(?<!\n\n|\r\n\r\n)"," ") Not needed for
HTML pages
FileAppend, %Clipboard%`n,%A_scriptdir%\Temporary_Storage_File.txt
TrayTip,Copied!,%Clipboard%
return

You might also like