AutoHotkey Community

It is currently May 27th, 2012, 8:27 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: display pdf in tooltip
PostPosted: February 9th, 2012, 12:16 pm 
Offline

Joined: June 7th, 2007, 1:33 pm
Posts: 1019
hello!

when I hover over an area, in the tooltip, the path of a pdf file is displayed

can I display the actual first page of that pdf in the tooltip?

thanks!


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 9th, 2012, 12:37 pm 
Offline

Joined: July 10th, 2008, 8:49 am
Posts: 1865
Location: Brussels, Belgium
azure wrote:
hello!

when I hover over an area, in the tooltip, the path of a pdf file is displayed

can I display the actual first page of that pdf in the tooltip?

thanks!


To keep it simple : no.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2012, 1:00 pm 
You probably could actually. With AutoHotkey_L's ActiveX Gui option it might be possible (either show PDF in IE browser or specific pdf ActiveX viewer).
Now before you ask "how" or "any hints": I have no clue how to make such a thing.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2012, 1:06 pm 
Offline

Joined: July 10th, 2008, 8:49 am
Posts: 1865
Location: Brussels, Belgium
And he asks in a "ToolTip"...
It means : extract the text from the PDF...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2012, 1:29 pm 
@codekiller: you don't understand. You can "extract" the PATH from the tooltip, use that info to show the PDF (you have the path remember) in a AutoHotkey Gui with Activex control. You make design + position the Gui anyway you please.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2012, 1:30 pm 
Oh and if it is "just the text" it is really a piece cake, no activex required.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2012, 1:39 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
an old script to see pdf -files
http://de.autohotkey.com/forum/post-652 ... 8e47#65201


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2012, 2:38 pm 
Offline

Joined: July 10th, 2008, 8:49 am
Posts: 1865
Location: Brussels, Belgium
Ouch... What a script !!! :shock:
All of that to use PDF...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2012, 3:15 pm 
Offline

Joined: June 7th, 2007, 1:33 pm
Posts: 1019
CodeKiller wrote:
And he asks in a "ToolTip"...
It means : extract the text from the PDF...


no, I mean to show the first page of the pdf when I hover over that area


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2012, 11:49 pm 
Offline

Joined: June 7th, 2007, 1:33 pm
Posts: 1019
garry wrote:


thanks garry

how this script displays pdf files? it should use a pdf rendering library, right?

from a little research I did, MuPDF seems to be the fastest rendering app, so maybe using this to achieve this, will be faster?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2012, 9:39 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
the pdf or xps files are in a folder , needs lbbrowse3.dll ( ahk_script downloads if not exist )
( small modifications to read also other extensions )
usually I use FoxitReader
Code:
TMR     =c:\M_DOCTXT     ;-- your path , here are files pdf / xps
EXT1    =pdf,xps
;......................
LV_Delete()
Loop, %tmr%\*.*, 0, 1
  {
  SplitPath,A_LoopFileFullPath, name, dir, ext, name_no_ext, drive
  If Ext In %ext1%
     LV_Add("",A_LoopFileName,A_LoopFileFullPath)
  }
;......................



( I use FoxitReader )

http://de.autohotkey.com/forum/post-652 ... 8e47#65201

Image


Last edited by garry on February 13th, 2012, 9:38 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2012, 5:48 pm 
Offline

Joined: June 7th, 2007, 1:33 pm
Posts: 1019
garry wrote:
the pdf or xps files are in a folder , needs lbbrowse3.dll ( ahk_script downloads if not exist )
( small modifications to read also other extensions )
usually I use FoxitReader
Code:
TMR     =c:\M_DOCTXT     ;-- your path , here are files pdf / xps
EXT1    =pdf,xps
;......................
LV_Delete()
Loop, %tmr%\*.*, 0, 1
  {
  SplitPath,A_LoopFileFullPath, name, dir, ext, name_no_ext, drive
  If Ext In %ext1%
     LV_Add("",A_LoopFileName,A_LoopFileFullPath)
  }
;......................


I cant find which part of the code exactly reads the pdf document

anyway, I am planning to use MuPDF, as the supposed fastest pdf rendering app, but to complete my project I need to:

1) identify whats under the cursor to trigger appropriately the MuPDF
2) load that specific pdf file to MuPDF

which commands do I need for each?

thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2012, 9:27 pm 
Offline

Joined: June 7th, 2007, 1:33 pm
Posts: 1019
isnt there a way to parse a file location to a program and open that file with that program?

also isnt there a way to use on-hover events as triggers?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Google Feedfetcher, immunity, sjc1000 and 72 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