Sign in to follow this  
Followers 0
knobi

Sending selected text to notepad by use of mouse right button

4 posts in this topic

Hello All...

I'm not sure if it's the right place to post this question... ....anyway... Is there a way to have a text which is displayed by Mozilla Firefox to be sent to a notepad file by use of mouse right button or by use of menu ???

I've checked some add-ons on mozilla's forum page, but didn't find anything related.

any help is welcome!..... thanks,

Share this post


Link to post
Share on other sites



Well, you have to select it youself... but after that couldn't you just say:

Send ( ^c )

...

open notepad

...

Send ( ^v )

Ctrl+c is copy, Ctrl+v is paste.. that seems reasonable to me.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

or a better way....

$MozzText = FileOpen("MozzilaText.txt", 1) 
; Variable to open the Text File

If $MozzText = -1 Then
    MsgBox(0, "Error", "Failed to Open File")
 ; Gives a Error if it Cant find MozzText

    Exit 
EndIf

HotKeySet("^9", "MozzTextCopy") 
; When "Control + 9" is pressed Runs The Function

Func MozzTextCopy() 
; Func Start

Send("^c") 
; Sends Control + C

$Clip = ClipGet() 
; Sets $Clip to Equal whats on the Clipboard

FileWrite($MozzText, $Clip & @CRLF) 
; it writes in the file($MozzText), It Writes $Clip(Whats on ClipBoard), and  @CRLF which will put a break in the .txt(like hitting Enter) 

EndFunc
; Ends the Function

While 1
     Sleep(500)
WEnd
; Loop to keep autoit running

that is probably what your looking for... everything there is in the help files so dont forget to use it!

Edited by lopolop

Share this post


Link to post
Share on other sites

$MozzText = FileOpen("MozzilaText.txt", 1) 
; Variable to open the Text File

If $MozzText = -1 Then
    MsgBox(0, "Error", "Failed to Open File")
; Gives a Error if it Cant find MozzText

    Exit 
EndIf

HotKeySet("^9", "MozzTextCopy") 
; When "Control + 9" is pressed Runs The Function

Func MozzTextCopy() 
; Func Start

$Clipb4 = ClipGet() 
; Get to put it back later

Send("^c") 
; Sends Control + C

$Clip = ClipGet() 
; Sets $Clip to Equal whats on the Clipboard

FileWrite($MozzText, $Clip & @CRLF) 
; it writes in the file($MozzText), It Writes $Clip(Whats on ClipBoard), and  @CRLF which will put a break in the .txt(like hitting Enter) 

Clipput($Clipb4)
; Set the clipboard to what it was

EndFunc
; Ends the Function

While 1
     Sleep(500)
WEnd
; Loop to keep autoit running
It now won't get rid of what the clipboard was before.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0