luism Posted February 19, 2009 Share Posted February 19, 2009 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 Link to comment Share on other sites More sharing options...
jvanegmond Posted February 19, 2009 Share Posted February 19, 2009 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 github.com/jvanegmond Link to comment Share on other sites More sharing options...
luism Posted February 20, 2009 Author Share Posted February 20, 2009 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now