U287ur199evik Posted March 28, 2013 Share Posted March 28, 2013 Beklemede kaldık üstad, hiç umut yok mu ? Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted March 30, 2013 Editor Share Posted March 30, 2013 Akşam bi örnek fonksiyon yazalım. Quote Link to comment Share on other sites More sharing options...
U287ur199evik Posted April 8, 2013 Share Posted April 8, 2013 Uzun zamandır çalışmalarıma ara vermek zorunda kaldım üstadlar. Örnek kodlama alma şansım olacak mı acaba ? Quote Link to comment Share on other sites More sharing options...
KintaRo Posted April 8, 2013 Share Posted April 8, 2013 paşalar büyük sıkıntılar var başımda, onları bir atlatayım yardımcı olucam hepinize, az kaldı. Quote Link to comment Share on other sites More sharing options...
U287ur199evik Posted April 8, 2013 Share Posted April 8, 2013 paşalar büyük sıkıntılar var başımda, onları bir atlatayım yardımcı olucam hepinize, az kaldı. Hocam sen yeter ki olur de ben beklerim. İşlerimin düzelmesi umudunu da bu işe bağladım desem yalan olmaz. Eğer farklılık yakalayamazsam diğer kafelerin arasında ezilip gidicem. Quote Link to comment Share on other sites More sharing options...
U287ur199evik Posted April 12, 2013 Share Posted April 12, 2013 xButton.SetEnabled(this, false) File.Run("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "", "C:\\Program Files (x86)\\Google\\Chrome\\Application\\", SW_SHOWNORMAL, true) xButton.SetEnabled(this, true) Kullandığım bu kod simgeye tıkladığımda programın tek bir tane açılmasını sağlıyor ama program kapatılmadığı sürece diğer tüm simgeler deaktif oluyor diğerlerini kullanamıyorum. Quote Link to comment Share on other sites More sharing options...
reyiz Posted April 12, 2013 Share Posted April 12, 2013 (edited) xButton.SetEnabled(this, false) File.Run("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "", "C:\\Program Files (x86)\\Google\\Chrome\\Application\\", SW_SHOWNORMAL, false) xButton.SetEnabled(this, true) Böyle deneyiniz. Edited April 12, 2013 by reyiz Quote Link to comment Share on other sites More sharing options...
U287ur199evik Posted April 12, 2013 Share Posted April 12, 2013 xButton.SetEnabled(this, false) File.Run("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "", "C:\\Program Files (x86)\\Google\\Chrome\\Application\\", SW_SHOWNORMAL, false) xButton.SetEnabled(this, true) Böyle deneyiniz. Olmadı, kaç kere tıklarsam o kadar chrome açıldı :D Quote Link to comment Share on other sites More sharing options...
reyiz Posted April 12, 2013 Share Posted April 12, 2013 (edited) Tamam da siz diğer simgelerin devre dışı kalmasından şikayet ettiniz ben de onu düzelttim. Diğer kodları ellemedim. Onun için ayrı kod gerekiyor. İstediğinizi gerçekleştirmek için de ayrı kod hazırlıyorum konuya bakmayı unutmayın arada. Edited April 12, 2013 by reyiz Quote Link to comment Share on other sites More sharing options...
reyiz Posted April 12, 2013 Share Posted April 12, 2013 (edited) Chrome butonuna aşağıdaki kodu koymanız gerekiyor: instances_of_file = 0; file_to_check_for = "chrome.exe"; processes = Window.EnumerateProcesses(); for j, file_path in pairs(processes) do file = String.SplitPath(file_path); if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then instances_of_file = instances_of_file + 1; end end if instances_of_file > 0 then -- Eğer Chrome açık ise çalışacak kod else File.Run("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "", "C:\\Program Files (x86)\\Google\\Chrome\\Application\\", SW_SHOWNORMAL, false) end Elektrik kesintisi sebebiyle cevap veremedim, kusuruma bakmayın. Edited April 12, 2013 by reyiz Quote Link to comment Share on other sites More sharing options...
U287ur199evik Posted April 14, 2013 Share Posted April 14, 2013 O kadar uğraş veriyorsunuz çok sağ olun ama hocam bu da olmadı. Peki alternatif olarak şöyle bir şey olabilir mi ? Butonlar tek değil de iki defa tıkladığımızda belirlediğimiz exe yi çalıştırsa yada kısayol u çalıştırsa mümkün olur mu ? Tek tıklama ile çalışmasın da çift tıklamayla çalışsın. En azından masaüstüne aşina olan insanları da zorlamamış olurduk. Quote Link to comment Share on other sites More sharing options...
reyiz Posted April 14, 2013 Share Posted April 14, 2013 Ben çift tıklamayı hesaba katmamıştım. Daha önce program açıksa tekrardan açılmasını engellemek için kod yazmıştım. Program tıklar tıklamaz hemen açılmadığı için çift tıklamada iki kere açıyor. Başına Application.Sleep(1000) ekleyerek çözebilirsiniz. Tabi timer fonksiyonu kullanmak daha uygun olacaktır diye düşünüyorum. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted April 14, 2013 Editor Share Posted April 14, 2013 U287ur199evik projenizin son halini özel değilse paylaşabilirseniz yardımcı olayım sizlere. Quote Link to comment Share on other sites More sharing options...
U287ur199evik Posted April 14, 2013 Share Posted April 14, 2013 U287ur199evik projenizin son halini özel değilse paylaşabilirseniz yardımcı olayım sizlere. Özel değil tabi ki paylaşırım. Upload edince link atarım. 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.