AutoHotkey Community

It is currently May 27th, 2012, 6:54 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 61 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject:
PostPosted: February 11th, 2006, 10:00 pm 
Did you unzip all files? The programm folder must look like this:

Code:
Your folder:
 + ico              ; subfolder containing the icons
    delete.bmp
    edit.bmp
    .
    .
 + notes            ; subfolder will be created at first script start
    .
    .
 main.ahk           ; run this file to use the program
 functions.ahk


Cheers
AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2006, 10:02 pm 
Ahh forgot. :oops:

config.ini has to be in your program folder too, just like main.ahk and functions.ahk

Cheers
AGU


Report this post
Top
  
Reply with quote  
 Post subject: I double checked
PostPosted: February 12th, 2006, 2:28 am 
Offline

Joined: July 23rd, 2005, 2:13 am
Posts: 52
I double checked and all the files are where they should be. I still am getting the error. When I double click main.ahk I get the error.

I attempted to double click function.ahk and received no error. Yet I'm not sure how to use your program. Would you give me instuctions on how to use it, like hot keys if there are some. Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2006, 5:14 pm 
That's strange. Hmm - Ok step by step. ;)

The error says main.ahk can't find functions.ahk. Cause I use some functions in main.ahk that are defined within functions.ahk.
btw. it must read functions.ahk not function.ahk if this is the error.

What program did you use for extracting the zip file? Maybe the program didn't obey the paths given within the zip file? I tested the zip again. I downloaded it and extracted it to a folder on my desktop any everything works just fine. So I don't understand this error.
Maybe you can try to extract the zip file again to another folder and then try to run main.ahk?

What's your AHK version by the way?
Quote:
Would you give me instuctions on how to use it, like hot keys if there are some. Thanks.
There are just the two hotkeys mentioned at the first posting. Nothing more (Win+C; Win+G).
At successful script start all you can see is a custom tray icon. Then the script is running and the hotkeys are functional.

Here again how your CopyPassage App folder has to look like.
Code:
ico          ; folder
notes        ; folder
config.ini
functions.ahk
main.ahk


Cheers
AGU


Report this post
Top
  
Reply with quote  
PostPosted: February 12th, 2006, 7:15 pm 
Offline

Joined: July 23rd, 2005, 2:13 am
Posts: 52
It's been a while since I have looked at this awesome program. Your logic was impecable I was using an older version. I updated and it worked thank you for your help.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2006, 12:03 pm 
Offline

Joined: January 13th, 2006, 10:28 am
Posts: 36
Location: Brisbane, Australia
Works well in Firefox. This will be an awesome script for research on the net and citing...

It's a pity they use IE at school. I wonder, how did you copy the URL, I haven't had the time to properly browse the script. This is the only problem i can find in IE.

_________________
The rapidity of particle flow alone determines power: LRH


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2006, 6:31 pm 
Hello Maelgwyn,

Quote:
It's a pity they use IE at school. I wonder, how did you copy the URL

Every browser has a shortcut to put focus to the address bar. Like Alt+D or Alt+S for the Internet Explorer.
Unfortunately the shortcut varies even between different versions of the same browser. Especially IE. I've listed all shortcuts I found out in the script.
Open "?" - "Browser Shortcuts" to see a list of them.

Take one of these shortcuts and write it in the edit control in "File" - "Preferences". You have to click the radio button for IE first to activate the edit control. After typing your shortcut in the edit control simply close the preferences GUI to save the changes. But remember to use the syntax needed by the send command. That's why I put a link there.

In case none of the shortcuts works with your version of IE you have to find it out yourself. Open IE on your system and try to find out the shortcut for highlighting the addressbar. It's possibly an ALT + "Some key" combination or at least one of the F-Keys.

After the URL is highlighted I simply send CTRL+C (copy to clipboard) and save the URL to a variable. That's it. ;)

Cheers
AGU

btw. if you find out a new combination I would be glad if you report back this shortcut, so that I can put it on the list, too. :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 23rd, 2006, 5:48 pm 
Offline

Joined: May 2nd, 2005, 8:02 am
Posts: 12
This is a very cool script. Thank you for sharing it. May i make 4 suggestions?

1) Would it be possible to load this automatically with FF? maybe through an extension? I like the fact that I could use it almost everywhere; it would also be neat to load it atumatically with FF. integrtion with an extension like "plain text to link" http://www.tommasobeniero.com/pttl/en/ would also be great.

2) Would it be possible to select an editor otehr than notepad? I am thinking of programs like neomem, http://neomem.org/neomem.htm, which allow you to create file datasets. An integration firefox-your script- neomem would be a killer - neomem is opensource, btw :)

3) escape the gui via esc

4) the url is not always passed. For example, in this forum. that may be a problem on ym end, though.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 23rd, 2006, 6:33 pm 
Offline

Joined: May 2nd, 2005, 8:02 am
Posts: 12
This script actually copies stuff from everything! for example, go to your desktop, select any text from any icon (as if you were to rename it), press your copy key, and voila, there is a note with that text. Only that twice, for the url is filled with the selected text too.

I also tried it with pdf documents. Provided you pressed "text select", you also can automatically copy stuff from pdfs. This would make an amazing research tool.

I wonder if something like this could be coded

into preferences:
1) enter file extension
2) define specific key chains. in pdf, for example, whatever key that toggles the "select tool" then crl c. If page number could be captured too, that would be awesome.
3) for url, use a tool like copypath ttp://www.byalexv.co.uk/CopyPath.html to save path instead of url.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 24th, 2006, 7:34 pm 
Hello dmiranda,

wow, that's a lot of stuff I've to think about. Concerning your first posting and your 4 suggestions:

  1. I'm not very good at Firefox extensions. I don't hardly know anything about writing one, changing one, coding one, ... A possible workaround would be some kind of batch file. With it you can start FF and CopyPassage by clicking this shortcut. Maybe even s.th like an Autohotkey script. What do you think about this idea?
    Code:
    Run, C:\program files\mozilla firefox\firefox.exe
    Run, C:\YourFolder\CopyPassage\main.ahk


    Concerning PTTL extension - any idea how this should work? I don't know this extension. Do you think there should be another menu entry in the right click context menu?
  2. Of course I can think about other editors. E.g. an edit control in Preferences that lets you specify a path to the .exe of your prefered editor.
    But you have to assure that this editor can handle .txt files.

    Concerning Neomem: Looks interesting. Do you know any command line parameters that let you add text to categorys or s.th like that?`I haven't installed this program yet so I don't know anything about it. Can you open NeoMem with a text file passed on the commandline? E.g. Neomem.exe C:\MyFiles\text.txt?
    And what about a direct connection between Neomem and Firefox? In this way you wouldn't need CopyPassage at all.
  3. That won't be a problem at all. :D It's just one line of code.
  4. I think this is may in fact be a problem on your side. The forum urls work on my system. Have you checked it again? Please report back. Maybe we can find the error.


Now to your second posting:

I've encountered the problem you described. I'm thinking of using SetTitleMatchMode, 2 and searching for words like Mozilla, Opera or Internet Explorer in the WinTitle. When any of these words is found, the URL is copied. In all other cases the URL shall be filled with "-". Or do you have an idea of what can be taken instead of the URL. The WinTitle maybe? Is it signifant enough?

That thing with specific key chains sounds very complicated. Why would you need it? When CopyPassage runs all you need is your configured Copy Hotkey. It doesn't matter which app holds the highlighted text as long as the text is highlighted and the app supports the clipboard (Ctrl+C). Capturing the page number sounds really hard. How would you automate that? Is there maybe an option within Acrobat Reader that puts the current page number in the WinTitle or s.th like this? Then it would be possible to catch the page number. Otherwise it will be very hard I think. Cause there is no hard coded scheme where the page number is listed within a pdf document. It can be in the bottom line, top line, ...

And how should CopyPath contribute to the project? Could you give me some more details please? I don't see the point here at the moment. Sorry. :)

____________
Cheers
AGU a.k.a AGermanUser


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 25th, 2006, 12:38 am 
AGU wrote:
wow, that's a lot of stuff I've to think about.


Thanks for taking the time!

Once i realized this script could take text from anything, I got very excited. for somebody doing any serous research, this could become a killer application.

Imagine you are looking for stuff in the internet, and in local documents (mostly html, txt, pdf, doc, xls) and related types. To copy and paste stuff to a centalized location (say "mywork.doc"), you need to select the text, control c, open mywork.doc, control v, add details or where you got that stuff from.

With this script of yours, as it is now, I select the text, press my selected "copykey", and everything is saved in "somenote.txt" I can then edit that note for "mywork.doc" Good stuff.

This is what your script made me think of, though:

1a) Add/improve the capability of capturing not just url, but real path for local files. SetTitleMatchMode sounds good for detecting browsers, but then some people, ahemm, take that info out. What about "if url starts with www-http-ftp-https, do the default"?

1b) If that is ruled out, then use some variation of copypath to determine local path, and print it as url. I do not know how difficult can this one be. Worse scenario, wintitlle would do. Path and wintitle (plus file extension) would be ideal. This is relevant when you care to remember very well where you get info from. Like when you quote from some source, or when you want to further analyze a piece of code.

2a) If file extension could be determined by the script, then it would be possible to add extension specific commands. These could be:

2b) First define default app (openoffice or office, acrobat or foxit, notepad or pspad) per extension. Necessary to customize 2c, below.

2c) If extension is pdf in 2a), and 2b) is acrobat, attach to my "copykey"
application specific commands to collect info like page number, column-row info, what have you. I have not thought this one through, but assuming you can extract via command some info that could be relevant to the stuff you are quoting, it would be great to have fuinctionality like this. It will asically depend in whatever metadata could one extract, via command, from an specific application.

3) Now, on second thought, and given the above, all the stuff about a FF extension and such is not as relevant. I like the idea of
Code:
Run, C:\program files\mozilla firefox\firefox.exe
Run, C:\YourFolder\CopyPassage\main.ahk
, but again, this would be unnecessary if the stuff above were to happen, for then you would run copypassage in startup.

4) As per how to edit the saved notes, I like Neomem becue it is a text database thingie that feels better than all other text database systems I have tried. I have just begun testing it, so I am not sure how to enter stuff in it via command. But I will try to figure that one out. Basically, we need to teach neomem to treat copypassage properly. Tht is to say, a plugin.

thanks again for your attentin and time!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 26th, 2006, 1:15 am 
Offline

Joined: February 12th, 2005, 8:31 pm
Posts: 82
Hello again dmiranda,

made a small update to fix some of the issues discussed. But don't get dissapointed if it's not that much for now. ;) Details in first posting.

But lets go on with your last posting:

When you e.g. copy some informations from a local document (doc, pdf, xls) I think the displaying app (Word, Excel, Acrobat Reader) is already up and running - displaying the file we're talking about. Where would you use CopyPath within this scenario to determine the path of the file? The file is already open. So where comes the input for CopyPath?

As far as I understand CopyPath you have to pass s.th to the commandline of CopyPath to get a result in the clipboard. You would have to do s.th before calling the file you're interested in, to work with CopyPath, wouldn't you? I think I need some clarification on this point to go one with the whole idea.

Same with the extension. Maybe you can clarify the whole work process and what you thought about it?

btw. you used my sig in your last posting :mrgreen:

_________________
Cheers
BBCodeWriterToDo-ListCopyPassage


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 27th, 2006, 10:27 am 
AGermanUser wrote:
Hello again dmiranda,
When you e.g. copy some informations from a local document (doc, pdf, xls) I think the displaying app (Word, Excel, Acrobat Reader) is already up and running - displaying the file we're talking about. Where would you use CopyPath within this scenario to determine the path of the file? The file is already open. So where comes the input for CopyPath?
You are rigth. I dont know how that info could be gathered, if at all.


Quote:
btw. you used my sig in your last posting :mrgreen:


yeah, I realized I did that only too late: as a gurest you cant edit!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2006, 7:41 am 
Offline

Joined: May 2nd, 2005, 8:02 am
Posts: 12
Well neomem can easily import the text files generated by copypassage. I have to figure the command.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 4th, 2006, 1:28 am 
Just a short braindump on this.

Just in case you really find out some kind of command line switch to pass the text into Neomem I could think for example of another context menu entry.
E.g. s.th. like "Send to Neomem".

Calling this entry can for example call another GUI that lets you specify a category (used within your neomem database) and can in this way automatically pass the text to the right category within Neomem.

This was just a short thought on this topic. Nevertheless there needs to be this command line switch to let this work.

_____________
Cheers
AGU


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 61 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 18 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group