manmoncang Posted May 4, 2006 Share Posted May 4, 2006 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 More sharing options...
Valuater Posted May 4, 2006 Share Posted May 4, 2006 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) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 4, 2006 Moderators Share Posted May 4, 2006 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 More sharing options...
manmoncang Posted May 4, 2006 Author Share Posted May 4, 2006 wow.... tq so much Valuater. You are so proooooooo. Solute you. Tq Link to comment Share on other sites More sharing options...
Valuater Posted May 4, 2006 Share Posted May 4, 2006 (edited) @SmOke how does that help with the password protection??? 8) Edited May 4, 2006 by Valuater Link to comment Share on other sites More sharing options...
Valuater Posted May 4, 2006 Share Posted May 4, 2006 wow.... tq so much Valuater. You are so proooooooo. Solute you. TqWelcome8) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 4, 2006 Moderators Share Posted May 4, 2006 (edited) @SmOkehow does that help with the password protection???8)Don't have to password protect it if it only works with the AutoIt file open 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 May 4, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now