AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bookmark - ebook by Rajat

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Guest
Guest





PostPosted: Fri Jun 25, 2004 2:15 pm    Post subject: Bookmark - ebook by Rajat Reply with quote

Looks so interesting, but unable to quite get it to work.
I did manage it to recognize Notepad, and now get that msg ...Add Bookmark, but everything I tried, did not work.
Could someone provide an exact example for say, Notepad as the editor, atest.txt is the file name, a line to bookmark could be say "Exit".
Back to top
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Fri Jun 25, 2004 3:28 pm    Post subject: Reply with quote

There are 2 reqmts for an editor to be compatible with my script:

1. Editor showing full path of file being edited in titlebar.
2. having a GoTo line feature.

most editors have them, like to adapt my script for Edit+, all I needed to do was replace 'TextPad' with 'EditPlus' once at the top of script. that's all!

the first reqmt is made so that it requires minimal effort while creating shortcuts, otherwise one'd have to deal with FileSelect dialogs every time he had to make a bookmark.

the second reqmt can be replaced with 'Send, ^{home}{Down %GetLine%}

so its best to get a better editor (many are free) or (though i don't advice this as it'll be irritating) tweak the script to make it FileSelect every time a bookmark is to be added.
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Jun 25, 2004 4:07 pm    Post subject: Reply with quote

If you'd like a free plain text editor that makes a great replacement for notepad, Metapad has been praised by others here and I use it myself:
http://www.liquidninja.com/metapad/

It also shows the full path of the script in the title bar (with leading asterisk if the file has been modified) so hopefully will work with the above script.
Back to top
View user's profile Send private message Send e-mail
Guest
Guest





PostPosted: Fri Jun 25, 2004 4:31 pm    Post subject: Bookmark - ebook by Rajat Reply with quote

I only mention Notepad, just so I can understand it, and then can adapt it to anything else.

I still can not add bookmark. What exactly does one type into that dialog box that opens up?
Back to top
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Fri Jun 25, 2004 4:38 pm    Post subject: Reply with quote

ANY line from file<delimiter>friendly name for bookmark

the <delimiter> is two asterisks ie. **
_________________
Back to top
View user's profile Send private message
Guest
Guest





PostPosted: Fri Jun 25, 2004 5:30 pm    Post subject: Bookmark - ebook by Rajat Reply with quote

Not working.
Entered four lines one, two, three, four, saved it.
Ran your script and seen yellow menu "...Add Boomark."
I then typed in "two**". Then ran the script again. Only thing that shows is the same "...Add Boomark". Did this in both Notepad and Workpad. What am I doing wrong?
Back to top
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Fri Jun 25, 2004 6:14 pm    Post subject: Reply with quote

not "two**"

just "**"

Laughing

and it WON'T work with notepad!

and i don't know nothin' about workpad.
_________________
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Mon Jun 28, 2004 7:15 am    Post subject: Reply with quote

i think i misunderstood something here. and i'm sorry for that. you entered "two**" because the file had a line "two", that's fine... after that you need to give a friendly name that you might remember.

eg.
two**my second line
two**two
two**2

i'm sure this won't work with notepad. but if workpad has the 2 features i mentioned then it'll work fine.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group