in reply to Respect for user data and how perl saved the day

Hmmm, I've been thinking I need an excuse to learn Tk and WWW::Mechanize. Should be possible to make a perl app that edits/saves/loads text on a web page, eh?
  • Comment on Re: Respect for user data and how perl saved the day

Replies are listed 'Best First'.
Re^2: Respect for user data and how perl saved the day
by Errto (Vicar) on Feb 14, 2006 at 00:02 UTC

    Yes, but not using those modules. WWW::Mechanize is designed to act like a web browser, but if I understand your idea correctly, you need a Perl program to interact with the web browser you the user are already using. For this you can use programmatic control modules. For IE this would be Win32::OLE with the 'InternetExplorer' class or perhaps SAMIE. For Firefox there's some equivalent but I haven't looked into it.

    My personal workaround is when I'm about to submit a big text block, I copy and paste it in a text editor before hitting the button. But that also is a bit of a pain.

Re^2: Respect for user data and how perl saved the day
by diotalevi (Canon) on Feb 14, 2006 at 00:09 UTC

    You could write a Sniffer::HTTP program that makes backups of your posts without requiring any changes to your browser at all.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      Or you could install a mouse/keystroke logger or take screenshots of X every few minutes and then we could get rid of those annoying "Are you sure you want to discard your changes" dialogs from all our applications :)

        Oh sure, if you want to have to retype everything. I kind of like the keystroke logger idea though. That's nice.

        ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      That relies on your browser sending the information. If you click the "back" button, no data is sent.

      davis
      Kids, you tried your hardest, and you failed miserably. The lesson is: Never try.