{"id":685,"date":"2006-08-05T02:18:00","date_gmt":"2006-08-05T11:18:00","guid":{"rendered":"http:\/\/www.cloudidentity.com\/blog\/2006\/08\/06\/boost-tabletpc-pen-responsiveness\/"},"modified":"2013-03-15T21:24:04","modified_gmt":"2013-03-16T06:24:04","slug":"689964","status":"publish","type":"post","link":"https:\/\/www.cloudidentity.com\/blog\/2006\/08\/05\/689964\/","title":{"rendered":"Boost TabletPc pen responsiveness"},"content":{"rendered":"<p><P>Weeell. As you know, I love sketching little pictures for supporting my point in my posts, and the tabletpc pen is simply <EM>perfect <\/EM>for that: it&#8217;s really the most natural thing to use!<BR>It&#8217;s very frustrating when you stumple into drawing software that exhibits sorry performance with the pen: however it&#8217;s usually enough to raise the priority of tabtip.exe to get around the issue. I automated the process by using a small exe, that switches the priority from normal to high and from high to normal: I just call it before drawing and after drawing. Actually, rather than &#8220;small&#8221; I should say &#8220;tiny&#8221;: the entire code is:<\/P><br \/>\n<P class=\"MsoNormal\"><SPAN>namespace<\/SPAN><SPAN> PenBooster<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN>{<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN>class<\/SPAN> <SPAN>Program<\/SPAN><\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp; <\/SPAN>{<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN>static<\/SPAN> <SPAN>void<\/SPAN> Main(<SPAN>string<\/SPAN>[] args)<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>{<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN>Process<\/SPAN>[] TabTipArr = <SPAN>Process<\/SPAN>.GetProcessesByName(<SPAN>&#8220;tabtip&#8221;<\/SPAN>);<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN>if<\/SPAN> (TabTipArr.Length != 0)<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>{<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN>Process<\/SPAN> TabTip = TabTipArr[0];<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN>if<\/SPAN> (TabTip.PriorityClass == <SPAN>ProcessPriorityClass<\/SPAN>.Normal)<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>TabTip.PriorityClass = <SPAN>ProcessPriorityClass<\/SPAN>.High;<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN>else<\/SPAN><\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>TabTip.PriorityClass = <SPAN>ProcessPriorityClass<\/SPAN>.Normal;<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN><SPAN>&nbsp;&nbsp;&nbsp; <\/SPAN>}<\/SPAN><\/P><br \/>\n<P class=\"MsoNormal\"><SPAN>}<\/SPAN><\/P><br \/>\n<P><br \/>\n<P>Naturally, fiddling with process priority is never good for the system: if you decide to do the same, you do it at your own risk \ud83d\ude42 the code above is for sample purposes only, comes with no guarantee whatsoever, etc etc<\/P><\/P><\/p>\n<div style=\"clear:both\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Weeell. As you know, I love sketching little pictures for supporting my point in my posts, and the tabletpc pen is simply perfect for that: it&#8217;s really the most natural thing to use!It&#8217;s very frustrating when you stumple into drawing software that exhibits sorry performance with the pen: however it&#8217;s usually enough to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[60],"tags":[],"class_list":["post-685","post","type-post","status-publish","format-standard","hentry","category-wild-ideas"],"_links":{"self":[{"href":"https:\/\/www.cloudidentity.com\/blog\/wp-json\/wp\/v2\/posts\/685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloudidentity.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudidentity.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudidentity.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudidentity.com\/blog\/wp-json\/wp\/v2\/comments?post=685"}],"version-history":[{"count":1,"href":"https:\/\/www.cloudidentity.com\/blog\/wp-json\/wp\/v2\/posts\/685\/revisions"}],"predecessor-version":[{"id":1796,"href":"https:\/\/www.cloudidentity.com\/blog\/wp-json\/wp\/v2\/posts\/685\/revisions\/1796"}],"wp:attachment":[{"href":"https:\/\/www.cloudidentity.com\/blog\/wp-json\/wp\/v2\/media?parent=685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudidentity.com\/blog\/wp-json\/wp\/v2\/categories?post=685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudidentity.com\/blog\/wp-json\/wp\/v2\/tags?post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}