{"id":538,"date":"2011-06-25T09:57:10","date_gmt":"2011-06-24T23:57:10","guid":{"rendered":"http:\/\/www.gssezisoft.com\/main\/?p=538"},"modified":"2013-03-18T21:19:34","modified_gmt":"2013-03-18T11:19:34","slug":"zero-click-scanning-multiple-pages","status":"publish","type":"post","link":"http:\/\/www.gssezisoft.com\/main\/2011\/06\/zero-click-scanning-multiple-pages\/","title":{"rendered":"Zero-Click Scanning Multiple Pages"},"content":{"rendered":"<p>I recently saw a post asking about Automatic Timed Scanning Software at <a href=\"http:\/\/ask.metafilter.com\/138298\/Automatic-Timed-Scanning-Software\">ask.metafiler.com<\/a>.<\/p>\n<p>The question concerned zero-click scanning multiple pages. The idea was to just replace pages and have the computer scan the next.<!--more--><\/p>\n<p>It is actually a pretty good idea. The only &#8220;gotcha&#8221; is telling the computer to stop. Still, this is possible by terminating a looping program (press Ctrl-Break).<\/p>\n<p>One of the people (<a href=\"http:\/\/www.metafilter.com\/user\/18069\">scruss<\/a>) answering suggested using CmdTwain with a time delay which was a pretty good answer. Here is how you could do this:<\/p>\n<div style=\"width: 600; border: 1px solid black; overflow: scroll\">\n<pre>\r\n'\r\n' Zero-click Scanning (after you run this)\r\n'\r\n\r\nNumPages = 10      ' scan upto 10 pages (you might not want this to be 1000)\r\nTimePerScan = 5000 ' 5000 mS ie 5 seconds to change pages\r\n \r\nDim FSO, SH\r\nSet FSO = CreateObject(\"Scripting.FileSystemObject\") \r\nSet SH  = WScript.CreateObject(\"WScript.Shell\")\r\n\r\n' outdir must end with a \\\r\noutdir=SH.ExpandEnvironmentStrings(\"%USERPROFILE%\") & \"\\My Documents\\\"\r\nopts  =\"\/DPI=300 \/JPG100\"\r\nprog  =\"C:\\Program Files\\Gss Ezisoft\\CmdTwain Free\\CmdTwain.exe\"\r\n\r\nfor page = 1 to NumPages\r\n\r\n    ' Get a filename that doesn't already exist\r\n    for i=1 to 10000\r\n        fn=\"scan-\" & right(\"0000\" & i,4) & \".jpg\"\r\n        if not FSO.FileExists(outdir & fn) then exit for\r\n    next\r\n\r\n   ' Quoting allows it to contain spaces\r\n   SH.Run \"\"\"\" & prog & \"\"\" \" & opts & \" \"\"\" & outdir & fn & \"\"\"\",0,true\r\n\r\n   ' Wait for next page\r\n   WScript.Sleep TimePerScan\r\n\r\nnext\r\n\r\nset SH  = nothing\r\nset FSO = nothing\r\n<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Save the above in scan10.vbs on your desktop then:<br \/>\n&#8211; Load the first page,<br \/>\n&#8211; Be ready to load the next nine pages, and<br \/>\n&#8211; Double-click the desktop icon.<\/p>\n<p>Feel free to edit the NumPages and TimePerScan to suit your preferences.<br \/>\nThe pages end up in &#8220;My Documents&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently saw a post asking about Automatic Timed Scanning Software at ask.metafiler.com. The question concerned zero-click scanning multiple pages. The idea was to just replace pages and have the computer scan the next.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/posts\/538"}],"collection":[{"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/comments?post=538"}],"version-history":[{"count":0,"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/posts\/538\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/media?parent=538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/categories?post=538"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/tags?post=538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}