Autonotemaker web Script

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

description

makes notes from pdf

Transcript of Autonotemaker web Script

Page 1: Autonotemaker web Script

/*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:

Page 2: Autonotemaker web Script

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

Page 3: Autonotemaker web Script

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