dequeen Posted April 10, 2011 Share Posted April 10, 2011 [codebox]HotKeySet("{home}","_start") Func _start() GUICtrlSetData($Label1,"açık") ToolTip('AÇIK',0,0) Sleep(2000) ToolTip("") For $1 = 1 To 3 Step +1 Send(GUICtrlRead($Input1)) Sleep(1000*Number(GUICtrlRead($Input2))) $1 = 1 Next EndFunc HotKeySet("{end}","_stop") Func _stop() GUICtrlSetData($Label1,"kapalı") ToolTip('KAPALI',0,0) Sleep(2000) ToolTip("") EndFunc[/codebox] elimde böyle bir kod var home tuşuna bastığımda yapılanlar belli ekranda mesaj ile açık yazıyor ve for döngüsü başlıyor fakat stop tuşuna basdığımda for döngüsünü durduramıyorum durdurmak istiyorum olmuyor Quote Link to comment Share on other sites More sharing options...
SimpsoN_Bart Posted April 10, 2011 Share Posted April 10, 2011 (edited) Sanırım böyle yapmak istiyorsun [codebox] HotKeySet("{END}","_stop") HotKeySet("{HOME}","_start") _start() Func _start() Local $Label1 Local $Input1 Local $Input2 GUICtrlSetData($Label1,"açık") ToolTip('AÇIK',0,0) Sleep(2000) ToolTip("") For $1 = 1 To 3 Step +1 Send(GUICtrlRead($Input1)) Sleep(1000 * Number(GUICtrlRead($Input2))) $1 = 1 Next EndFunc _stop() Func _stop() Local $Label2 GUICtrlSetData($Label2,"kapalı") ToolTip('KAPALI',0,0) Sleep(2000) ToolTip("") Exit EndFunc [/codebox] Edited April 10, 2011 by SimpsoN_Bart Quote Link to comment Share on other sites More sharing options...
dequeen Posted April 10, 2011 Author Share Posted April 10, 2011 yok kardeş böyle değil home basınca güzel bi şekilde açık yazıp form üzerindeki label1 e açık yazıyor sonra input1 de yazan harf sayı neyse artık onu input2 deki zaman aralığında basıyor yani input1 de "deneme" yazarsan input2 yede "2" yazarsan ve home tuşuna basarsan 2sn de bir "deneme" yazıyor buraya kadar herşey normal sorun burda başlıyor bi yere kadar yazıcak neticede durdurmam lazım icab edecek end tuşuna basdığımda ise artık 2 sn de bir yazmaması lazım takii bir daha home tuşuna basana kadar Quote Link to comment Share on other sites More sharing options...
SimpsoN_Bart Posted April 10, 2011 Share Posted April 10, 2011 Dediklerinden pek birsey anlamadım ilk yazdığınla bu yazdığın çelişiyor bence.Benim anladığım şöyleydi.Home tuşuna bastığında AÇIK yazacak End tuşuna bastığında Kapalı yazack ve for döngüsünden çıkacak ben böyle anladım ve ona göre kodladım.Bu dediğin daha farklı sanırım.Ne yapmak isteğini doğru ve tam şekilde açıklamalısın.Arkadaslar ancak sana böyle yardımcı olacaklardır Kolay gelsin. Quote Link to comment Share on other sites More sharing options...
dequeen Posted April 10, 2011 Author Share Posted April 10, 2011 sorun çözüldü for ve next yerine do until kullandım istediğimi hallettim konu kapanmıştır Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.