Shop OBEX P1 Docs P2 Docs Learn Events
Easy context-sensitive help for PropTool ? — Parallax Forums

Easy context-sensitive help for PropTool ?

RaymanRayman Posts: 14,853
edited 2009-10-02 20:07 in Propeller 1
Just a suggestion for PropTool creators (because I know they listen sometimes...)

One thing noteably missing is fast help on the keyword that the cursor is currently over when one pushes, e.g., the F1 key...

It would be nice if pressing F1 would bring up the Prop Manual page on that topic...

One way to do this (that I'm thinking of trying myself) is to use some command line parameters when invoking Acrobat reader...

Now, that there's some bookmarks in the Manual, it may be easy to do.

Here's a link with info on how to do it:
http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf





▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm

Comments

  • StefanL38StefanL38 Posts: 2,292
    edited 2009-10-02 20:07
    Hello Rayman,

    good idea !

    I wrote a little script for autohotkey

    that perfoms almost what you want when using the propellertool

    It opens the PDF-manual and does an advanced search for the word the cursor is over

    Click on that entry wich has the word and a lot of dots ................................................................ (in most cases the second entry)
    to jump to the table of contents then click on the line with the blue backround

    F1::
    IfWinActive Propeller Tool
      {
        clipboard =  ; Start off empty to allow ClipWait to detect when the text has arrived.
        send ^{Left}
        send +^{Right}
        Send ^c
        ClipWait 1 ; Wait for the clipboard to contain text.
        send {Left}
      
        IfWinExist Propeller Manual v1.1.pdf - Adobe Reader
        {
          WinActivate Propeller Manual v1.1.pdf - Adobe Reader ;set focus on PDF-file
          send !{F4}  ;terminate that new search does perfom properly
        }
        Run "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" /A "search=%clipboard%" "C:\Program Files\Parallax Inc\Propeller Tool v1.2.6\Propeller Manual v1.1.pdf"
      }
    return
    
    
    



    here are two other scripts (hotstrings) for easy inserting code /code or urls

    without using this annoying CODE and URL-Buttons of the forum-software that always inserts them at the bottom instead of cursorposition

    you just write "cod" and autohotkey inserts code /code

    :B0:cod::[noparse][[/noparse]code]`r`r[noparse][[/noparse] /code]{up 3}{left 3}{bs 4}{down}
    
    :B0:url::[noparse][[/noparse] url=] [noparse][[/noparse] /url]{left 13}{bs 4}{right 5}
    
    
    



    for using you have to remove the spaces in "[noparse][[/noparse] /code]" and in "[noparse][[/noparse] url=]"

    best regards

    Stefan

    Post Edited (StefanL38) : 10/2/2009 8:38:45 PM GMT
Sign In or Register to comment.