Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read a text files contents as a variable
#5
Here is the version that is dynamically equipt to handle any pdf you provide to it. Here is a video showing what it solves for us and demonstrating some of its mechanism.
video
Code:
Copy      Help
str pdfPage pdfPath pdfName n f p
n="C:\fmUtil\pdfName.txt"
f="C:\fmUtil\pdfPath.txt"
p="C:\fmUtil\pdfPage.txt"
pdfName.getfile(n)
pdfPath.getfile(f)
pdfPage.getfile(p)
out pdfName
out pdfPath
out pdfPage

int w1=win(F"{pdfName}" "AcrobatSDIWindow")

if (!w1)

,run F"{pdfPath}"
,int w3=wait(19 win(F"{pdfName}" "AcrobatSDIWindow"))
,'CSn            ;; Ctrl+Shift+N
,int w4=wait(19 win("Go To Page" "#32770"))

,'F"{pdfPage}" Y        ;; Enter
,
else
,
,act w1
,
,'CSn            ;; Ctrl+Shift+N
,int w2=wait(19 win("Go To Page" "#32770"))

,'F"{pdfPage}" Y        ;; Enter


Messages In This Thread
RE: Read a text files contents as a variable - by pctechtv - 04-08-2019, 03:19 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)