{"id":8539,"date":"2016-05-15T00:08:10","date_gmt":"2016-05-14T22:08:10","guid":{"rendered":"https:\/\/informatica.uniurb.it\/triennale\/?p=8539"},"modified":"2016-05-15T00:18:24","modified_gmt":"2016-05-14T22:18:24","slug":"crowd-scratching-directpoll","status":"publish","type":"post","link":"https:\/\/informatica.uniurb.it\/triennale-informatica\/crowd-scratching-directpoll\/","title":{"rendered":"Crowd-Scratching with DirectPoll"},"content":{"rendered":"
To celebrate Scratch Day 2016<\/a>, UniUrb<\/a> has developed a simple .NET application, called DirectPollMonitor<\/strong>, to allow the audience of a webinar to control a Scratch project\u00a0in real time. DirectPollMonitor\u00a0takes in input the URL of the result page of a poll made by DirectPoll<\/a>. Each option of the poll is associated with a specific keypress event on the computer in which the app executes, so that every time the option is voted the corresponding keypress event is generated. By default, the keypress events associated with the first 26 options correspond to keys ‘a’ to ‘z’, while all subsequent options (if any) are associated with the ‘space’ key. DirectPoll ‘stop\/reset’, ‘pause’, and ‘play’ events are mapped onto keys\u00a0‘0’, ‘1’, and ‘2’.<\/p>\n When the program executes, keypress events are treated as if they were generated by the local keyboard and received by the focus window.<\/p>\n This provides a very simple and general mechanism to grant collective\u00a0control of any Scratch project to an arbitrary number of people taking part to an instant poll.<\/strong><\/p>\n To use DirectPollMonitor:<\/p>\n In order to make sure that all keypress events are properly received by the Scratch project, it is recommended\u00a0that the window in which the Scratch project executes keeps the keyboard focus for the entire duration of the poll. Hence, it is better\u00a0to control the poll from a different computer, while leaving in background the Command Prompt Terminal in which DirectPollMonitor executes.<\/p>\n A standard poll has been created for testing purposes. It has only 5 options associated with keys A, B, C, D, and E. Hence, it can be used to control any Scratch project designed to react to these keypress events.<\/p>\n Provide\u00a0this link to the audience:\u00a0http:\/\/etc.ch\/SAA2<\/a><\/p>\n Pass this URL to DirectPollMonitor:\u00a0http:\/\/directpoll.com\/r?XDbzPBd3ixYqg8WPz06HavXHDMrW9iAfEQDf3Tuc2U<\/a><\/p>\n Use this\u00a0simple Scratch project reacting to keys A, B, and C to test the remote control:\u00a0https:\/\/scratch.mit.edu\/projects\/109658618\/<\/a>\u00a0(the name of the project has been typed by the audience…).<\/p>\n\n
<\/a><\/p>\n