Jump to content

Lock Ebook


Recommended Posts

Hi, I'm new here.

Could anybody can help me. Below is scenario

1. I have a pdf file which have a password, let's say that password is abc123

2. I dont want anybody know the password but anybody MUST read that file.

3. Thus, anybody can help me how autoit can do for open this file?

I mean, when people click execute file that develepod with autoit, user can open pdf file without know the password.

If user open pdf file directly without using execute file (developed using autoit), they need enter the password but sure they fail because they do not know the password.

Hopefully all briliant here can help me. Please

*sorry for not good in english.

Link to comment
Share on other sites

first we need to collect some info from the "inputs" on Adobe acrobat.. specifically the password box.. so

try this...

in SciTe run this code ( replace the file name/location)

$PDF_loc = FileGetShortName( @MyDocumentsDir & "\networth.pdf"); your file name/location
Run(@ComSpec & " /c Start " & $PDF_loc, "", @SW_HIDE)
WinWaitActive("")
Sleep(1000)
Send("password")

8)

NEWHeader1.png

Link to comment
Share on other sites

  • Moderators

first we need to collect some info from the "inputs" on Adobe acrobat.. specifically the password box.. so

try this...

in SciTe run this code ( replace the file name/location)

$PDF_loc = FileGetShortName( @MyDocumentsDir & "\networth.pdf"); your file name/location
Run(@ComSpec & " /c Start " & $PDF_loc, "", @SW_HIDE)
WinWaitActive("")
Sleep(1000)
Send("password")

8)

Personally I would just use FileInstall with it inside the AutoIt.exe... Show it when I need when running my AutoIt.exe, and delete it when I exited the AutoIt.exe

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

@SmOke

how does that help with the password protection???

8)

Don't have to password protect it if it only works with the AutoIt file open :think:

Edit:

Of course, I don't play with PDF files, so password protecting may protect against copying? That's the only benefit I can see over what I've suggested.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...