bybordo Posted August 16, 2013 Share Posted August 16, 2013 (edited) elimizde 3 tane pencere olsun (pencere1, pencere2, pencere3) pencere1 için winwaitactive yazdık diyelim. scriptimiz bu pencereyi beklerken pencere2 önümüze geldi. o zaman scriptimiz pencere2 ile devam etsin. böyle bi kod yazabilecek var mı? Edited August 16, 2013 by bybordo Quote Link to comment Share on other sites More sharing options...
blue_life Posted August 17, 2013 Share Posted August 17, 2013 Basit bir örnek verirsem aşağıdaki gibi bir kodlama yapabilirsin.... Global $Window_1 = "Pencere_1" Global $Window_2 = "Pencere_2" Global $Window_3 = "Pencere_3" While 1 Sleep(100) ;Cpu Safe If WinExists($Window_1) Then _Window_1() ExitLoop ElseIf WinExists($Window_2) Then _Window_2() ExitLoop ElseIf WinExists($Window_3) Then _Window_3() Else ContinueLoop EndIf ExitLoop WEnd Exit Func _Window_1() MsgBox(64, "Kodlar buraya", $Window_1) EndFunc ;==>_Window_1 Func _Window_2() MsgBox(64, "Kodlar buraya", $Window_2) EndFunc ;==>_Window_2 Func _Window_3() MsgBox(64, "Kodlar buraya", $Window_3) EndFunc ;==>_Window_3 Quote Link to comment Share on other sites More sharing options...
bybordo Posted August 17, 2013 Author Share Posted August 17, 2013 BlueLife üstad sanırım yanlış anlattım derdimi. pencereyi beklerken başka pencere gelirse o pencereden devam etmesini istiyorum. verdiğin kodda winwaitactive denedim ama işe yaramadı. Global $Window_1 = "pencere", "title" bi de bu şekilde yazınca hata veriyor. ayrıca yazdığınız kod pencere1 i bekliyor mu? pencere1 i beklerken pencere2 gelirse pencere2 den devam etmesi gerekiyor. ardından pencere3e geçip scripti bitiricek. tabi bu pencerelerin hepsinde controlcommand ayarlıcam. Quote Link to comment Share on other sites More sharing options...
reyiz Posted August 20, 2013 Share Posted August 20, 2013 WinClose("[active]") [active] aktif olan pencerede işlem yapmayı sağlar. Yukarıdaki örnek aktif olan pencereyi kapatacaktı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.