Sign in to follow this  
Followers 0
luism

Copy & Past

3 posts in this topic

Hi Guys,

I am reading a PDF book and would like to make some notes as I go along, by extracting the text that I think i need to another file. At the moment I am selecting the text, copying the text to the clipboard (using ctrl-c) and than go to my word document and then use past (ctrl-v). this is slowing me down and its driving me nuts.

What I would like to have is a hot key like F4, that when I select the text on the pdf and then press that key it would automaticly copy the text to my word document.

any help would be apreciated.

Best Regards

Luis

Share this post


Link to post
Share on other sites



Something like:

Opt("WinTitleMatchMode", 2)

HotKeySet("{F4}","Go")

While 1
    Sleep(500)
WEnd

Func _Go() ; Runs when you press F4
    Send("^c") ; Copy!
    Sleep(150) ; Wait
    WinActivate("Word") ; Show word
    Sleep(250) ; Wait longer ( Word can be slow )
    Send("^v") ; Paste!
    Sleep(150) ; Wait
    WinActivate("Adobe") ; Go back to the reader :)
EndFunc

Share this post


Link to post
Share on other sites

Hi Manadar,

That worked a treat except for the GO definition which you declared as _Go.

Thank you very much.

I will becoming back at same stage to look in depth at autoit, as it seems as a great tool.

Best Regards

Luis

Something like:

Opt("WinTitleMatchMode", 2)

HotKeySet("{F4}","Go")

While 1
    Sleep(500)
WEnd

Func _Go() ; Runs when you press F4
    Send("^c") ; Copy!
    Sleep(150) ; Wait
    WinActivate("Word") ; Show word
    Sleep(250) ; Wait longer ( Word can be slow )
    Send("^v") ; Paste!
    Sleep(150) ; Wait
    WinActivate("Adobe") ; Go back to the reader :)
EndFunc

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