{"id":22988,"date":"2016-06-24T03:01:18","date_gmt":"2016-06-23T17:01:18","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=22988"},"modified":"2016-06-24T19:17:59","modified_gmt":"2016-06-24T09:17:59","slug":"windows-screenshot-autohotkey-automation-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/windows-screenshot-autohotkey-automation-primer-tutorial\/","title":{"rendered":"Windows Screenshot AutoHotKey Automation Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Windows\/quarter_hour_timer.jpg\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Windows Screenshot AutoHotKey Automation Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Windows\/quarter_hour_timer.jpg\" title=\"Windows Screenshot AutoHotKey Automation Primer Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Windows Screenshot AutoHotKey Automation Primer Tutorial<\/p><\/div>\n<p>Hope you haven&#8217;t been put off a Windows venture into timekeeping using the same web application idea we&#8217;ve been talking about the last couple of days, with the last being <a title='Mac OS X MAMP Timekeeping Web Application Email Tutorial' href='#moxtwaet'>Mac OS X MAMP Timekeeping Web Application Email Tutorial<\/a>, with a bias towards Mac OS X?  To make things work in Windows for this same web application needs a batch process screen capture background process, and you&#8217;d think it would be easier in Windows than Mac OS X.  We, here, also believe this to be true, as Windows has been designed with the PrintScreen button of such great use for instantaneous screen capture with no applications involved &#8230; just &#8220;user intervention&#8221;.  But, today, to fit in with our ideas we don&#8217;t want &#8220;user intervention&#8221; so we started looking for ideas on the web and got to this <a target=_blank title='Useful link' href='http:\/\/superuser.com\/questions\/75614\/take-a-screen-shot-from-command-line-in-windows'>useful link<\/a> full of interesting ideas &#8230; thanks.  But &#8230; and there&#8217;s always a <i>but<\/i> &#8230; we prefer to fall back on one of our favourite Windows pieces of software in the world &#8230; and perhaps worlds beyond &#8230; that being <a target=_blank title='AutoHotKey' href='http:\/\/www.autohotkey.com'>AutoHotKey<\/a>.  Words apart from &#8220;Auto&#8221; and &#8220;Hot&#8221; and &#8220;Key&#8221; cannot explain how good AutoHotKey is &#8230; though we&#8217;ve been <i>trying<\/i> <a target=_blank title='AutoHotKey tutorials here' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/autohotkey'>here<\/a>!  We use it to record Mouse and Keyboard Windows desktop &#8220;procedures&#8221;.  The wonderful thing about AutoHotKey is that it doesn&#8217;t tie you down to set &#8220;procedures&#8221; to suit what other people tell you, and so you can &#8220;invent&#8221; your own procedures, allowing &#8220;operator&#8221; types, in the I.T. world some creative licence, we&#8217;ve no doubt.  You can tell reading the forums many people have a lot of a gobsmacked admiration for AutoHotKey.<\/p>\n<p>Let&#8217;s break the &#8220;task at hand&#8221; up though, because even AutoHotKey benefits from a bit of departmentalization, at times.  We want to, for Windows automated (but backgrounded) screen capture, say every fifteen minutes, needs &#8230;<\/p>\n<ul>\n<li>wait until the minutes of the day are 00 or 15 or 30 or 45 &#8230; for Windows would imply the use of one of &#8230;\n<ol>\n<li><a target=_blank title='Task Schedular information' href='http:\/\/windows.microsoft.com\/en-au\/windows\/schedule-task'><i>Task Schedular<\/i><\/a> for some code that runs through once<\/li>\n<li><a target=_blank title='at command information from computerhope' href='http:\/\/www.computerhope.com\/at.htm'><i>at<\/i><\/a> for some code that runs through once<\/li>\n<li>Windows <i>exe<\/i> for a compiled program that loops and perhaps never finishes until user intervention<\/li>\n<li>Windows <i>bat<\/i> for batch interpretive program that loops and perhaps never finishes until user intervention<\/li>\n<\/ol>\n<p>&#8230; and for the purposes of user friendliness we opt for the last once we see that the date and time functionalities are possible and not that convoluted looking &#8230; thanks <a target=_blank title='Useful link' href='http:\/\/stackoverflow.com\/questions\/203090\/how-to-get-current-datetime-on-windows-command-line-in-a-suitable-format-for-us'>here<\/a> for advice &#8230; and we called ours c:\\<a target=_blank title='screenshot.bat' href='http:\/\/www.rjmprogramming.com.au\/Windows\/screenshot.bat_GETME'>screenshot.bat<iframe style='background-color:lightgreen;width:100%;height:500px;' src='http:\/\/www.rjmprogramming.com.au\/Windows\/screenshot.bat_GETME' title='screenshot.bat'><\/iframe><\/a> &#8230; and we use our often used &#8230;<br \/>\n<code><br \/>\n<a target=_blank title='ping command help from computerhope' href='http:\/\/www.computerhope.com\/pinghlp.htm'>ping<\/a> 127.0.0.1 -t -n 10 &gt; nul<br \/>\n<\/code><br \/>\n&#8230; to wait for a while within the Windows <i>bat<\/i> supervisor&#8217;s workings\n<\/li>\n<li><code><br \/>\nif exist c:\\sshot.JPG erase c:\\sshot.JPG<br \/>\n<\/code><br \/>\n&#8230; you&#8217;ll see why later, below<\/p>\n<li>get the screen captured into a clipboard buffer &#8230; we&#8217;ll use AutoHotKey (compiled <i>exe<\/i> program that uses this really simple c:\\<a target=_blank title='PrintScreen.ahk' href='http:\/\/www.rjmprogramming.com.au\/Windows\/PrintScreen.ahk_GETME'>PrintScreen.ahk<iframe style='background-color:lightgreen;width:100%;height:75px;' src='http:\/\/www.rjmprogramming.com.au\/Windows\/PrintScreen.ahk_GETME' title='PrintScreen.ahk'><\/iframe><\/a> AutoHotKey script (we derived, as we do mostly, by using AutoHotKey ScriptWriter&#8217;s <i>Record<\/i> button usage) &#8230; we don&#8217;t often leave it as the (running of an) AutoHotKey script, though that is possible too) &#8230; then &#8230;<\/li>\n<li>get clipboard buffer to be saved into a <i>jpg<\/i> image &#8230; and we determine Windows <a target=_blank title='Windows PaintBrush information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Microsoft_Paint'>Paintbrush<\/a> is the generic out-of-the-box way to go here, and settle for it always saving its image content to c:\\sshot.JPG &#8230; and this is where you may have to change? &#8230; we opt for an AutoHotKey script &#8230; compiled to a Windows <i>exe<\/i> that uses this really simple c:\\<a target=_blank title='sshot.ahk' href='http:\/\/www.rjmprogramming.com.au\/Windows\/sshot.ahk_GETME'>sshot.ahk<iframe style='background-color:lightgreen;width:100%;height:500px;' src='http:\/\/www.rjmprogramming.com.au\/Windows\/sshot.ahk_GETME' title='ssgot.ahk'><\/iframe><\/a> AutoHotKey script we call from the Windows <i>bat<\/i> supervisor, as mentioned above &#8230; because lots of Windows environments disallow PaintBrush to Save As to a file in c:\\ root directory<\/li>\n<li>once we know that c:\\sshot.JPG exists our Windows <i>bat<\/i> supervisor &#8230;<br \/>\n<code><br \/>\nrename c:\\sshot.JPG screen-%2-%3.jpg<br \/>\n<\/code><br \/>\n&#8230; via a call of itself using the Windows <a target=_blank title='start command help from computerhope' href='http:\/\/www.computerhope.com\/starthlp.htm'><i>start<\/i><\/a> \/b switch option of use<\/li>\n<\/ul>\n<p>&#8230; and so, we hope you see that the whole <i>shebang<\/i> can be supervised by one Windows <i>bat<\/i> supervisor &#8230;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.rjmprogramming.com.au\/Windows\/quarter_hour_timer.gif\" title='Preparation'><\/img><\/p>\n<p> &#8230; which, itself, can work its functionality via any of &#8230;<\/p>\n<ul>\n<li>being run, at the user&#8217;s discretion from the Windows command line &#8230; our anticipated usage method &#8230; but could be the <i>action parameter<\/i> to &#8230;<\/li>\n<li>&#8220;as soon as you &#8230;&#8221; &#8230; read more at this <a target=_blank title='Useful link' href='http:\/\/ss64.com\/nt\/syntax-autoexec.html'>useful link<\/a> about Startup folders and Windows registry ideas<\/li>\n<li>Task Schedular<\/li>\n<li>at<\/li>\n<li>others &#8230; for example, another program already &#8220;tasked&#8221; could call our screenshot.bat as above, or the existance of a file &#8220;plonked&#8221; locally or remotely could control its use<\/li>\n<\/ul>\n<p>You can see some of what we did for this Windows screenshotting automation with today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Windows\/quarter_hour_timer.jpg\" title='click picture'>tutorial picture<\/a> as the result of the use of today&#8217;s background processing work that was achieved by &#8230;<\/p>\n<ul>\n<li>on windows, getting background screenshotting processing working +<\/li>\n<li>visit URL <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\" title='live run'>quarter_hour_timer.html<\/a> (live run) and right-click View Source and Ctrl-A Ctrl-C to copy the code into a Notepad file where we Ctrl-V paste it into a c:\\quarter_hour_timer.html accessed in Firefox via File -&gt; Open File to file:\/\/\/c:\/quarter_hour_timer.html<\/li>\n<\/ul>\n<p><b><i>Did you know?<\/i><\/b><\/p>\n<p>Windows has an order or priority of what it tries to run, should a user not specify everything, and for local hard drive use &#8230; ie. not getting into remote usage possibilities here &#8230; some priorities for today&#8217;s <i>c:\\screenshot.bat<\/i> could be &#8230;<\/p>\n<ul>\n<li>&#8220;screenshot&#8221; as the command would only work if either &#8230;\n<ol>\n<li>you are in c:\\ now and there is no <i>c:\\screenshot.com<\/i> nor <i>c:\\screenshot.exe<\/i> (which take precedence over <i>c:\\screenshot.bat<\/i>) &#8230; which takes precedence over &#8230;<\/li>\n<li>c:\\ root directory is on your path (ie. %PATH% environment variable), and its position in %PATH% is higher than any other &#8220;wrong headed&#8221; <i>screenshot.bat<\/i> files on your current (in our case, c:) drive, and there is no <i>c:\\screenshot.com<\/i> nor <i>c:\\screenshot.exe<\/i><\/li>\n<\/ol>\n<p>&#8230; is the case, assuming you have the priviledge to run it<\/li>\n<li>&#8220;c:\\screenshot&#8221; as the command would work if either &#8230;\n<ol>\n<li>there is no <i>c:\\screenshot.com<\/i> nor <i>c:\\screenshot.exe<\/i> (which take precedence over <i>c:\\screenshot.bat<\/i>)<\/li>\n<\/ol>\n<p>&#8230; is the case, assuming you have the priviledge to run it<\/li>\n<li>&#8220;c:\\screenshot.bat&#8221; as the command would assuming you have the priviledge to run it<\/li>\n<\/ul>\n<hr>\n<p id='moxtwaet'>Previous relevant <a target=_blank title='Mac OS X MAMP Timekeeping Web Application Email Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-x-mamp-timekeeping-web-application-email-tutorial\/'>Mac OS X MAMP Timekeeping Web Application Email Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS X MAMP Timekeeping Web Application Email Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer_email.jpg\" title=\"Mac OS X MAMP Timekeeping Web Application Email Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS X MAMP Timekeeping Web Application Email Tutorial<\/p><\/div>\n<p>The practicalities of yesterday&#8217;s (<a title='Mac OS X MAMP Timekeeping Web Application Primer Tutorial' href='#moxmtwapt'>Mac OS X MAMP Timekeeping Web Application Primer Tutorial<\/a>) timekeeping Mac OS X Web Application, left as they are, would leave you with a somewhat useful web application whose use is only <i>for the here and now<\/i>, but what if you want it to be more accountable?  Well, that is when we, here, at RJM Programming, like to use that tried and trusted <a target=_blank title='Email information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Email'><i>email<\/i><\/a> form of communication.<\/p>\n<p>Today&#8217;s email methods spurn the use of server-side intervention, at least for now.  So what is available to us as tools, if we don&#8217;t include Ajax nor jQuery in that list?  Well, we have, to our minds &#8230;<\/p>\n<ul>\n<li><a target=_blank title='Mailto link information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tryit.asp?filename=tryhtml_link_mailto'>mailto<\/a> links (get us to the email client) +<\/li>\n<li>the body section of that email can have a clipboard image <i>pasted<\/i> into it, for which we can utilize HTML5 <a target=_blank title='HTML Canvas element information from w3schools' href='http:\/\/www.w3schools.com\/tags\/ref_canvas.asp'>canvas<\/a> element&#8217;s <a target=_blank title='HTML5 canvas element toDataURL method information' href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/HTMLCanvasElement\/toDataURL'>toDataURL<\/a>() method, teamed up with a <a target=_blank href='http:\/\/www.w3schools.com\/jsref\/met_win_open.asp' title='window.open information from w3schools'><i>window.open<\/i><\/a> popup window of the <i>toDataURL<\/i> image data, which can be <i>selected<\/i> and <i>copied<\/i>, optionally, by the user themselves, should they wish this to make their email more self explanatory<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer_email.gif\" title='The workings of email creation'><\/img>\n<\/li>\n<\/ul>\n<p>We last discussed this thinking with <a target=_blank title='Canvas Annotation Email Attachment Clipboard Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/canvas-annotation-email-attachment-clipboard-tutorial\/'>Canvas Annotation Email Attachment Clipboard Tutorial<\/a>.<\/p>\n<p>We rely on the <a target=_blank title='crontab information from computerhope ... thanks' href='http:\/\/www.computerhope.com\/jargon\/c\/cron.htm'><i>crontab<\/i><\/a> functionality, being as there is no server-side help, to create the image file, whose contents eventually go to make up the contents that can be selected and copied and pasted by the user into the body section of the email (and sent off to whosoever they feel like sending it too, as you have the full power of the email client available to you with the interaction you have with an actual email client program).<\/p>\n<p>Here is the HTML and Javascript <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html-GETME\">quarter_hour_timer.html<\/a> which changed to cater for today&#8217;s email functionality in <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html-GETME\">this way<\/a>, and, as per the <b><i>Stop Press<\/i><\/b> from yesterday, we&#8217;ll also have a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\" title='Click picture'>live run<\/a> link here today.<\/p>\n<hr>\n<p id='moxmtwapt'>Previous relevant <a target=_blank title='Mac OS X MAMP Timekeeping Web Application Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-x-mamp-timekeeping-web-application-primer-tutorial\/'>Mac OS X MAMP Timekeeping Web Application Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.jpg\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS X MAMP Timekeeping Web Application Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.jpg\" title=\"Mac OS X MAMP Timekeeping Web Application Primer Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS X MAMP Timekeeping Web Application Primer Tutorial<\/p><\/div>\n<p>Sometimes when you program, especially for administrative type functionality, there are useful programs to write, that are able to become web applications, but in a limited set of platforms.  So it is today with our timekeeping web application that relies on &#8230;<\/p>\n<ul>\n<li><i>Mac OS X<\/i> operating system +<\/li>\n<li>Existance of [\/usr\/sbin\/]<a target=_blank title='screencapture command information from Apple' href='https:\/\/developer.apple.com\/legacy\/library\/documentation\/Darwin\/Reference\/ManPages\/man1\/screencapture.1.html'><i>screencapture<\/i><\/a> +<\/li>\n<li><a target=_blank title='crontab information from computerhope ... thanks' href='http:\/\/www.computerhope.com\/jargon\/c\/cron.htm'><i>crontab<\/i><\/a> active and editable via <i>crontab -e<\/i> +<\/li>\n<li>One of &#8230;\n<ol>\n<li><a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'><i>MAMP<\/i><\/a> installed to, in our case, <i>\/Applications\/MAMP\/htdocs\/<\/i> (as is mentioned in the relevant <i>crontab<\/i> background task that snapshots the user&#8217;s screen every quarter hour) that maps to the MAMP web application URL <i>http:\/\/localhost:8888\/<\/i> &#8230; or &#8230;<\/li>\n<li><i>crontab<\/i> directory mention that corresponds to a URL call of our web application like for our Google Chrome example (where the <i>directory<\/i> below, used, could be a place of your choosing (that matches what is in your <i>crontab<\/i> task entry)) &#8230;<br \/>\n<code><br \/>\nfile:\/\/<i>\/Applications\/MAMP\/htdocs\/<\/i>quarter_hour_timer.html?localplace=<br \/>\n<\/code><br \/>\n&#8230; or just, via the web browser&#8217;s File -&gt; Open File menu &#8230;<br \/>\n<code><br \/>\nfile:\/\/<i>\/Applications\/MAMP\/htdocs\/<\/i>quarter_hour_timer.html<br \/>\n<\/code><br \/>\n<img decoding=\"async\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.gif\"><\/img>\n<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p> &#8230; pretty restrictive, huh? &#8230; but pretty useful for our quarter hour timekeeping purposes today.<\/p>\n<p>We want to have a web application that is running at the user&#8217;s discretion, and when first fired up, looks for outputs from <i>crontab<\/i> tasks above &#8230;<\/p>\n<p><code><br \/>\n0,15,30,45 * * * * \/usr\/sbin\/screencapture -Cd -tjpg <i>\/Applications\/MAMP\/htdocs\/<\/i>screen-`date +\"\\%Y\\%m\\%d-\\%H\\%M\"`.jpg<br \/>\n<\/code><\/p>\n<p> &#8230; for the current day in question and if existant show &#8230;<\/p>\n<ol>\n<li>a date and time stamp +<\/li>\n<li>the snapshot of what you were doing at the quarter hour, that is clickable to make bigger for more in depth viewing +<\/li>\n<li>an HTML textarea element in which you can optionally type in more specifics about that quarter hour<\/li>\n<\/ol>\n<p>So, as much as we like to think of Mac OS X Terminal application&#8217;s <a target=_blank title='Berkeley Software Distribution information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Berkeley_Software_Distribution'>BSD<\/a> (a unix derivative) operating system, as being a lot like Linux, there are some commands and usage that &#8230;<\/p>\n<ul>\n<li>adds Mac OS X specific command line functionality to a Linux or unix base set of functionality, like for today&#8217;s <a target=_blank title='screencapture command information from Apple' href='https:\/\/developer.apple.com\/legacy\/library\/documentation\/Darwin\/Reference\/ManPages\/man1\/screencapture.1.html'><i>screencapture<\/i><\/a> command &#8230; and we&#8217;ve included another such example, below, with the command <a target=_blank title='say command information from Apple' href='https:\/\/developer.apple.com\/legacy\/library\/documentation\/Darwin\/Reference\/ManPages\/man1\/say.1.html'><i>say<\/i><\/a> featuring in <a title='Mac OS X Text to English Speech Primer Tutorial' href='#moxttspt'>Mac OS X Text to English Speech Primer Tutorial<\/a> as shown below<\/li>\n<li>changes switches on Linux or unix commands<\/li>\n<li>won&#8217;t have some Linux or unix commands that other platforms do<\/li>\n<\/ul>\n<p>In the great tradition of <i>behoving<\/i> &#8230; we <i>behove<\/i> &#8230; we <i>behove<\/i> thee <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html_GETME\">quarter_hour_timer.html<\/a> if you like, my liege.  On this occasion you&#8217;ll have gleaned that there is no <i>live run<\/i> link, because the RJM Programming web server is not Mac OS X &#8230; so command line <a target=_blank title='screencapture command information from Apple' href='https:\/\/developer.apple.com\/legacy\/library\/documentation\/Darwin\/Reference\/ManPages\/man1\/screencapture.1.html'><i>screencapture<\/i><\/a> has no meaning for a CentOS web server&#8217;s operating system command line.  You&#8217;ll see in the code that rather than use <a target=_blank title='\"Client Pre-emptive Iframe\" at this blog' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/?s=client-pre-emptive-iframe'>&#8220;Client Pre-emptive Iframe&#8221;<\/a> concepts to check for existence of <i>crontab<\/i> screen capture images, we, instead use the <a target=_blank title='Javascript onerror event information from w3schools' href='http:\/\/www.w3schools.com\/jsref\/event_onerror.asp'><i>onerror<\/i><\/a> event for HTML <a target=_blank title='HTML img tag information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tag_img.asp'>img<\/a> elements to check for non-existance.<\/p>\n<p><b><i>Stop Press<\/i><\/b><\/p>\n<p>Just noticed that, perhaps, after all, a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\">live run<\/a> from the RJM Programming website can make sense if you have a Mac OS X laptop, for instance, that is running that suggested <i>crontab<\/i> entry as explained in tutorial above.  That type of live run managed to latch on to our local <i>crontab<\/i> screencaptures on my MacBook Pro.<\/p>\n<hr>\n<p id='moxttspt'>Previous relevant <a target=_blank title='Mac OS X Text to English Speech Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-x-text-to-english-speech-primer-tutorial\/'>Mac OS X Text to English Speech Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/audio_video.html?clickit=submitmb\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS X Text to English Speech Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/say.jpg\" title=\"Mac OS X Text to English Speech Primer Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS X Text to English Speech Primer Tutorial<\/p><\/div>\n<p>We&#8217;ve got a few new ideas today &#8230;<\/p>\n<ol>\n<li>Text to English Speech via Mac OS X&#8217;s command line <a target=_blank title='say command information from Apple' href='https:\/\/developer.apple.com\/legacy\/library\/documentation\/Darwin\/Reference\/ManPages\/man1\/say.1.html'><i>say<\/i><\/a> command used by PHP via <a target=_blank title='PHP exec() method information' href='http:\/\/php.net\/manual\/en\/function.exec.php'><i>exec<\/i><\/a> to make <a target=_blank title='say.php' href='http:\/\/www.rjmprogramming.com.au\/PHP\/say.php_GETME'>say.php<\/a> (which is useful as a download to a Mac OS X laptop using <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>) which, today, does not have a live run because the web server of domain <i>rjmprogramming.com.au<\/i> is a CentOS Linux server &#8230; Linux equivalent of Mac OS X&#8217;s <i>say<\/i>? &#8230; read <a target=_blank title='Useful link' href='https:\/\/github.com\/usc-isi-i2\/festival-text-to-speech-service\/blob\/master\/README.md'>here<\/a><\/li>\n<li>Trying to present this brought up the usual movie production problem with <a target=_blank title='iMovie for Mac information from Apple' href='http:\/\/www.apple.com\/au\/mac\/imovie\/'>iMovie<\/a> overlaying the audio on top of the video (though you may want to try, and you could start reading with <a target=_blank title='Semi useful link' href='http:\/\/video.stackexchange.com\/questions\/2579\/can-you-link-an-audio-track-to-a-video-track-in-imovie'>this link<\/a>) versus <a target=_blank title='QuickTime information from Apple' href='https:\/\/support.apple.com\/downloads\/quicktime'>QuickTime Player<\/a> talent to catch both audio and video tracks (and that we ended up using), but not of the &#8220;screen goings on&#8221;, alas versus <a target=_blank title='MPlayer OSX Extended information' href='http:\/\/mplayerosx.ch\/'>MPlayer OSX Extended<\/a> which can play separately but not two tracks on top and doesn&#8217;t do any reconstituting &#8230; so &#8230;<\/li>\n<li>Improved on our inhouse Video\/Audio synchronizing efforts by allowing <a target=_blank title='audio_video.html' href='http:\/\/www.rjmprogramming.com.au\/PHP\/audio_video.html---GETME'>audio_video.html<\/a> supervisor (changed in <a target=_blank title='audio_video.html' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/audio_video.html---GETME'>this way<\/a>) be able to be called to press one of its preconceived synchronization buttons <i>onload<\/i> which we do with (the newly added) <a target=_blank title='Macbeth Act 1 Scene 1' href='http:\/\/www.rjmprogramming.com.au\/PHP\/audio_video.html?clickit=submitmb'>Macbeth Act 1 Scene 1<\/a> &#8230; in a small <a target=_blank title='Birthday of Shakespeare' href='http:\/\/www.shakespeare.org.uk\/visit-the-houses\/whats-on.html\/birthday-celebrations.html'>celebration<\/a> of the Bard &#8230; who, am thinking (in that Falstaff way), would have got a huge chuckle out of &#8220;anonymous&#8221; instead of &#8220;anon&#8221; during the Three Witches scene &#8230; we <i>had<\/i> to do something to say Happy Birthday<\/li>\n<\/ol>\n<p>Along the way we tried filming the MacBook Pro with the iPad to a <a target=_blank title='YouTube' href='http:\/\/youtube.com'>YouTube<\/a> &#8230;<\/p>\n<p><iframe loading=\"lazy\" width=\"420\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/9-Hvlz8g1Mg\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p> &#8230; but weren&#8217;t happy with the audio quality, alas (too\/two).<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d21904' onclick='var dv=document.getElementById(\"d21904\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/text-to-speech\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d21904' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d22942' onclick='var dv=document.getElementById(\"d22942\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/time\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d22942' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d22960' onclick='var dv=document.getElementById(\"d22960\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/email\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d22960' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d22988' onclick='var dv=document.getElementById(\"d22988\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/autohotkey\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d22988' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hope you haven&#8217;t been put off a Windows venture into timekeeping using the same web application idea we&#8217;ve been talking about the last couple of days, with the last being Mac OS X MAMP Timekeeping Web Application Email Tutorial, with &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/windows-screenshot-autohotkey-automation-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,29,37],"tags":[118,135,1875,234,274,327,380,576,652,707,714,723,725,738,744,1922,997,1103,1161,1252,1279,1921,1319,1339,1435],"class_list":["post-22988","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-operating-system","category-tutorials","tag-autohotkey","tag-batch","tag-bsd","tag-command-line","tag-crontab","tag-did-you-know","tag-email","tag-html","tag-javascript","tag-linux","tag-local-web-server","tag-mac","tag-mac-os-x","tag-mail","tag-mamp","tag-onerror","tag-programming","tag-screen-capture","tag-snapshot","tag-terminal","tag-time","tag-timekeeping","tag-tutorial","tag-unix","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/22988"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=22988"}],"version-history":[{"count":15,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/22988\/revisions"}],"predecessor-version":[{"id":23029,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/22988\/revisions\/23029"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=22988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=22988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=22988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}