<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : Durdurma</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Durdurma]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 08:57:49 +0000</pubDate>
  <lastBuildDate>Mon, 12 Aug 2024 13:50:40 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=858</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[Durdurma : MerhabaMyGameFormRunTimer diye...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=858&amp;PID=1617#1617</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 858<br /><strong>Gönderim Zamanı:</strong> 12&nbsp;Ağustos&nbsp;2024 Saat 13:50<br /><br />Merhaba&nbsp;<div><span style=": rgb251, 251, 253;">MyGameForm&nbsp;</span><span style=": rgb251, 251, 253;">RunTimer diye bir property si yok. BU işlem için timer kullanabilirsin.</span><br><div><a href="https://www.docs.clomosy.com/index.php/TClTimer" target="_blank" rel="nofollow">https://www.docs.clomosy.com/index.php/TClTimer</a></div></div>]]>
   </description>
   <pubDate>Mon, 12 Aug 2024 13:50:40 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=858&amp;PID=1617#1617</guid>
  </item> 
  <item>
   <title><![CDATA[Durdurma : var MyGameForm:TclGameForm; MyMQTT...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=858&amp;PID=1615#1615</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=217">AhmetUnuvar</a><br /><strong>Konu:</strong> 858<br /><strong>Gönderim Zamanı:</strong> 12&nbsp;Ağustos&nbsp;2024 Saat 13:40<br /><br /><div>var</div><div>&nbsp; MyGameForm:TclGameForm;</div><div>&nbsp; MyMQTT : TclMQTT;</div><div>&nbsp; BtnBasla,BtnDur: TclButton;</div><div>&nbsp; SndFire:Integer;</div><div>&nbsp; mainPnl,imgMainPnl,imgPnl,imgIciPnl,descriptionPnl : TclProPanel;</div><div>&nbsp; iconImg,iconGiftImg,iconIndicatorBarImg,captionImg : TClProImage;</div><div>&nbsp; CekilisTimer:TClTimer;</div><div>&nbsp; dondur : Integer;</div><div>&nbsp; InformationLbl : TClProLabel;</div><div>&nbsp; CekilisBtn : TClProButton;</div><div>&nbsp; QMemList:TclJSonQuery;</div><div>&nbsp; winUserGUID,executiveUserGUID : String;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>void MyMQTTStatusChanged;</div><div>{</div><div>&nbsp; if (Not MyMQTT.Connected )&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp;MyMQTT.Connect;</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('İnternet bağlantınızı kontrol ediniz... ' + 'Exception Class: ' + LastExceptionClassName + ' Exception Message: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div>void MyMQTTPublishReceived;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (Not Clomosy.PlatformIsMobile)&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; if (CekilisTimer.Enabled &amp;&amp; (MyMQTT.ReceivedMessage == 'durdur'))</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (Clomosy.AppUserProfile == 1)&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CekilisBtn.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (not Clomosy.PlatformIsMobile)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CekilisBtn.Enabled = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; CekilisTimer.Enabled = False;</div><div>&nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div><br></div><div>&nbsp; &nbsp; } Else&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MyGameForm.AddNewEvent(CekilisBtn,tbeOnClick,'BtnCekilisYapClick');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; }</div><div>&nbsp;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div><br></div><div>&nbsp;void ProcOnCekilisTimer;</div><div>&nbsp; {</div><div>&nbsp; &nbsp;// InformationLbl.Caption = QMemList.FieldByName('Member_Name').AsString;</div><div>&nbsp; &nbsp; //Clomosy.ProcessMessages;</div><div>&nbsp; &nbsp; //QMemList.Next;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (QMemList.EOF)</div><div>&nbsp; &nbsp; QMemList.First;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (dondur &gt;= 360)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; dondur = 50;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;iconImg.RotationAngle =&nbsp; dondur;</div><div>&nbsp; &nbsp; &nbsp;dondur = dondur - 20;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div><br></div><div>void BtnCekilisYapClick;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; MyMQTT.Send('durdur');</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div><br></div><div><br></div><div>void randomNumber</div><div>&nbsp; var number:Float;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; number = Random() * 100;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>void CekilisTimerStop;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; &nbsp; CekilisTimer.Enabled = False;</div><div>&nbsp; &nbsp; &nbsp; MyMQTT.Send('durdur');</div><div>&nbsp; }</div><div><br></div><div><br></div><div><br></div><div>void BtnIsimKaristirClick;</div><div>&nbsp; {</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (Not CekilisTimer.Enabled)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; QMemList = Clomosy.DBCloudQueryWith(ftMembers,'','ISNULL(PMembers.Rec_Deleted,0)=0 AND PMember_Profile &lt;&gt; 1 ORDER BY NEWID()');//her seferinde karışık member listesi al</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; //CekilisTimer.Enabled = Not CekilisTimer.Enabled;</div><div>&nbsp; &nbsp; CekilisTimer.Enabled = True;</div><div>&nbsp; &nbsp; InformationLbl.Caption = '';</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; MyMQTT.Send('basladi');</div><div>&nbsp; &nbsp; MyGameForm.RunTimer("CekilisTimerStop", randomTime * 1000); // Rastgele süre sonunda timer'ı durdur</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div><br></div><div>{</div><div><br></div><div><br></div><div>&nbsp; dondur = -50;</div><div>&nbsp; MyGameForm = TclGameForm.Create(Self);</div><div>&nbsp; MyGameForm.SetFormBGImage('<a href="https://i.hizliresim.com/q9396ef.png" target="_blank" rel="nofollow">https://i.hizliresim.com/q9396ef.png</a>'); // arka plan&nbsp;</div><div>&nbsp; MyGameForm.LytTopBar.Visible =True;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; MyMQTT = MyGameForm.AddNewMQTTConnection(MyGameForm,'MyMQTT');</div><div>&nbsp; MyGameForm.AddNewEvent(MyMQTT,tbeOnMQTTStatusChanged,'MyMQTTStatusChanged');</div><div>&nbsp; MyGameForm.AddNewEvent(MyMQTT,tbeOnMQTTPublishReceived,'MyMQTTPublishReceived');</div><div>&nbsp; MyMQTT.Channel = 'cekilis';//project guid + channel</div><div>&nbsp; MyMQTT.Connect;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; mainPnl=MyGameForm.AddNewProPanel(MyGameForm,'mainPnl');</div><div>&nbsp; clComponent.SetupComponent(mainPnl,'{</div><div>&nbsp;&nbsp;</div><div>&nbsp; "Align" : "Center",</div><div>&nbsp; "MarginBottom" : 80</div><div>&nbsp; }');</div><div>&nbsp;&nbsp;</div><div>&nbsp;</div><div><br></div><div>&nbsp;&nbsp;</div><div>&nbsp; imgMainPnl=MyGameForm.AddNewProPanel(mainPnl,'imgMainPnl');</div><div>&nbsp; clComponent.SetupComponent(imgMainPnl,'{"Align" : "Top","MarginTop":30,"MarginLeft":'+IntToStr(mainPnl.Width/9)+',"MarginRight":'+IntToStr(mainPnl.Width/9)+',</div><div>&nbsp; "Height":'+IntToStr(mainPnl.Height/3)+'}');</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; imgPnl=MyGameForm.AddNewProPanel(imgMainPnl,'imgPnl');</div><div>&nbsp; clComponent.SetupComponent(imgPnl,'{"Align" : "Center","Width":'+IntToStr(imgMainPnl.Height)+',</div><div>&nbsp; "Height":'+IntToStr(imgMainPnl.Height)+'}');</div><div>&nbsp;&nbsp;</div><div>&nbsp; iconImg = MyGameForm.AddNewProImage(imgPnl,'iconImg');</div><div>&nbsp; clComponent.SetupComponent(iconImg,'{"Align" : "Center",</div><div>&nbsp; "Width" : 200,</div><div>&nbsp; "Height" : 200,</div><div>&nbsp; "ImgUrl":"<a href="https://i.hizliresim.com/pc71kjt.png" target="_blank" rel="nofollow">https://i.hizliresim.com/pc71kjt.png"</a>,</div><div>&nbsp; "ImgFit":"yes"}');</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; imgIciPnl=MyGameForm.AddNewProPanel(imgPnl,'imgIciPnl');</div><div>&nbsp; clComponent.SetupComponent(imgIciPnl,'{"Align" : "Center","Height":'+IntToStr(imgPnl.Height/3)+',"Width":'+IntToStr(imgPnl.Width)+'}');</div><div>&nbsp;&nbsp;</div><div>&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; InformationLbl = MyGameForm.AddNewProLabel(mainPnl,'InformationLbl','');</div><div>&nbsp; clComponent.SetupComponent(InformationLbl,'{"Align" : "Top","MarginTop":10,"Height":'+IntToStr(mainPnl.Height/9)+',"MarginLeft":'+IntToStr(mainPnl.Width/9)+',"MarginRight":'+IntToStr(mainPnl.Width/9)+',</div><div>&nbsp; "TextColor":"#f50505","TextSize":16,"TextVerticalAlign":"center", "TextHorizontalAlign":"center","TextBold":"yes"}');</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; CekilisBtn = MyGameForm.AddNewProButton(mainPnl,'CekilisBtn','');</div><div>&nbsp; clComponent.SetupComponent(CekilisBtn,</div><div>&nbsp; '{</div><div>&nbsp; "Align" : "Center",</div><div>&nbsp; "MarginTop":500,</div><div>&nbsp; "TextColor":"#2705eb",</div><div>&nbsp; "TextBold":"yes",</div><div>&nbsp; "RoundHeight":3,</div><div>&nbsp; "RoundWidth":3,</div><div>&nbsp; "BackgroundColor":"#e3c76b",</div><div>&nbsp; "Height":'+IntToStr(mainPnl.Height/2)+',"MarginLeft":'+IntToStr(mainPnl.Width/2)+',"MarginRight":'+IntToStr(mainPnl.Width/2)+'}');</div><div>&nbsp; CekilisBtn.Visible = True;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; QMemList = Clomosy.DBCloudQueryWith(ftMembers,'','ISNULL(PMembers.Rec_Deleted,0)=0 ORDER BY NEWID()');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (not Clomosy.PlatformIsMobile)</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; winUserGUID = Clomosy.AppUserGUID;</div><div>&nbsp; &nbsp; QMemList.Filter = 'Member_GUID &lt;&gt; '+QuotedStr(winUserGUID);</div><div>&nbsp; &nbsp; QMemList.Filtered = True;</div><div>&nbsp; &nbsp; MyGameForm.AddNewEvent(CekilisBtn,tbeOnClick,'BtnIsimKaristirClick');</div><div>&nbsp; &nbsp; CekilisTimer= MyGameForm.AddNewTimer(MyGameForm,'CekilisTimer',1000);&nbsp;&nbsp;</div><div>&nbsp; &nbsp; CekilisTimer.Interval = 100;</div><div>&nbsp; &nbsp; CekilisTimer.Enabled = False;</div><div>&nbsp; &nbsp; MyGameForm.AddNewEvent(CekilisTimer,tbeOnTimer,'ProcOnCekilisTimer');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;</div><div>&nbsp; } else</div><div>&nbsp;&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (Clomosy.AppUserProfile == 1)</div><div>&nbsp; &nbsp; {&nbsp;</div><div>&nbsp; &nbsp; &nbsp; InformationLbl.Text = 'Information Label';</div><div>&nbsp; &nbsp; &nbsp; executiveUserGUID = Clomosy.AppUserGUID;</div><div>&nbsp; &nbsp; &nbsp; QMemList.Filter = 'Member_GUID &lt;&gt; '+QuotedStr(executiveUserGUID);</div><div>&nbsp; &nbsp; &nbsp; QMemList.Filtered = True;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; } else</div><div>&nbsp; &nbsp; {&nbsp;</div><div>&nbsp; &nbsp; &nbsp; InformationLbl.Text = 'Information Label Else';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(Clomosy.PlatformIsMobile)&nbsp;</div><div>&nbsp; MyGameForm.Run;</div><div>&nbsp; else</div><div>&nbsp; MyGameForm.RunModal;</div><div>}<br><br><br>Merhabalar Butona Basıldığı zaman ekrandaki resmim dönmeye başlıyor , butona tekrar tıkladığım zaman dönmeyi bırakıyor. ben bu işlemi random bir değer atayarak , o atanan random değer süresi boyunca resmin dönüp süre bitince durmasını istiyorum ancak yazdığım kodda hata alıyorum&nbsp;</div>]]>
   </description>
   <pubDate>Mon, 12 Aug 2024 13:40:52 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=858&amp;PID=1615#1615</guid>
  </item> 
 </channel>
</rss>