{"id":210,"date":"2007-05-12T17:05:05","date_gmt":"2007-05-12T15:05:05","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/nasty-nag-crap\/"},"modified":"2007-05-12T17:05:07","modified_gmt":"2007-05-12T15:05:07","slug":"nasty-nag-crap","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/nasty-nag-crap\/","title":{"rendered":"Nasty nag crap"},"content":{"rendered":"<p>In your FormShow event:<\/p>\n<p>[code lang=&#8221;delphi&#8221;]procedure TForm1.FormShow(Sender : TObject);<br \/>\nvar atom : integer;<br \/>\n    CRLF : string;<br \/>\nbegin<br \/>\n    if<br \/>\n      GlobalFindAtom(&#8216;THIS_IS_SOME_OBSCUREE_TEXT&#8217;) = 0 then<br \/>\n         atom := GlobalAddAtom(&#8216;THIS_IS_SOME_OBSCUREE_TEXT&#8217;)<br \/>\n    else<br \/>\n       begin<br \/>\n          CRLF := #10 + #13;<br \/>\n          ShowMessage(&#8216;This version may only be run once for every Windows Session.&#8217; + CRLF +<br \/>\n                      &#8216;To run this program again, you need to restart Windows, or better yet:&#8217; + CRLF +<br \/>\n                      &#8216;REGISTER !!&#8217;);<br \/>\n          Close;<br \/>\n       end;<br \/>\nend;<br \/>\n{ The advantages here are that you leave all the functionallity at the users disposal, but<br \/>\nthe moment he closes the program, its bootie-time, folks ! All you got to do is write<br \/>\nsome obscure text and save it in the Windows global atom table. }<br \/>\n[\/code]<\/p>\n<p>[tags]Delphi, Shareware[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In your FormShow event: [code lang=&#8221;delphi&#8221;]procedure TForm1.FormShow(Sender : TObject); var atom : integer; CRLF : string; begin if GlobalFindAtom(&#8216;THIS_IS_SOME_OBSCUREE_TEXT&#8217;) = 0 then atom&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[75,120],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-3o","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/210"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=210"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/210\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}