{"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