Abdullah 37 Posted July 6, 2010 Share Posted July 6, 2010 Arkadaşlar bir tane çalışma yapıyorum.Harf butonları oluşturarak input içine bu butonlarla yazıyorum.Ama bir sorunum var.Biz klavyede yazarken kelime arasına imleci getirerek harf siler veya boşluk bırakırız ama ben ams de yaptığım butonlarla bunları yapamıyorum..Program işlemleri yerine getiriyor ama imlecin olduğu yere yazmıyor kelimenin sonuna yazıyor bu sorunu nasıl düzeltebilirim. --- A --- strGet = Input.GetText("Input1") Input.SetText("Input1", strGet .. "A") --- B --- strGet = Input.GetText("Input1") Input.SetText("Input1", strGet .. "B") --- C --- strGet = Input.GetText("Input1") Input.SetText("Input1", strGet .. "C") --- Boşluk --- strGet = Input.GetText("Input1") Input.SetText("Input1", strGet .. " ") Link to comment Share on other sites More sharing options...
MostWanted Posted July 6, 2010 Share Posted July 6, 2010 Tam olarak yapmak istediğin şey ne?ona göre daha kolay yardımcı olabiliriz.. Link to comment Share on other sites More sharing options...
Abdullah 37 Posted July 6, 2010 Author Share Posted July 6, 2010 Tam olarak yapmak istediğin şey ne?ona göre daha kolay yardımcı olabiliriz.. Hocam bir tane kullanıcı giriş paneli yapıyorum.Onada sanal klavye türü birşeyler yapmaya çalışıyorum.Apz dosyasını vereceğim ne yapmak istediğimi tam olarak anlarsın. http://hotfile.com/dl/52961680/0711b8b/Panel.apz.html Link to comment Share on other sites More sharing options...
KintaRo Posted July 6, 2010 Share Posted July 6, 2010 ben böyle birşeyin mümkün olduğunu sanmıyorum. neyse spydevil ve talha burda nasıl olsa kafam rahat onlar halleder Link to comment Share on other sites More sharing options...
spydevil Posted July 6, 2010 Share Posted July 6, 2010 Örneği hazırladım kendine göre düzenle local sVeri = Input.GetText("Input1"); local tbPozisyon= Input.GetSelection("Input1"); local sBolum1 = String.Left(sVeri, (tbPozisyon.Start - 1)); local sBolum2 = String.Mid(sVeri, tbPozisyon.Start, -1); local sYeniHarf = "C"; local sSon = sBolum1 .. sYeniHarf .. sBolum2; Input.SetText("Input1", sSon); Link to comment Share on other sites More sharing options...
MostWanted Posted July 6, 2010 Share Posted July 6, 2010 Yine autoiti karıştırdım olaya ama napayım ams çok yetersiz Sana şöyle bir önerim olacak ben denedim çalıştı.Atıyorum T harfine şu kodları koy.. -- kullanıcı paneli ismini değiştirirsen burayı da değiştirmelisin.. if (nSayi == 1) then AutoIt.ControlFocus("Kullanıcı Paneli", "", "Edit1"); elseif (nSayi == 2) then AutoIt.ControlFocus("Kullanıcı Paneli", "", "Edit2"); elseif (nSayi == 3) then AutoIt.ControlFocus("Kullanıcı Paneli", "", "Edit3"); end AutoIt.Send("t", 0) Tabi kodları kullanabilmen için Autoit Pluginini kurman gerek.Onuda plugins bölümünde paylaştım Ben denedim güzelce çalıştı inşallah istediğin olmuştur @spydevil den önce davranamadık E çocuk olunca zor oluyo Link to comment Share on other sites More sharing options...
Abdullah 37 Posted July 6, 2010 Author Share Posted July 6, 2010 Örneği hazırladım kendine göre düzenle local sVeri = Input.GetText("Input1"); local tbPozisyon= Input.GetSelection("Input1"); local sBolum1 = String.Left(sVeri, (tbPozisyon.Start - 1)); local sBolum2 = String.Mid(sVeri, tbPozisyon.Start, -1); local sYeniHarf = "C"; local sSon = sBolum1 .. sYeniHarf .. sBolum2; Input.SetText("Input1", sSon); hocam bu kodu hangi bölüme yazacağım Link to comment Share on other sites More sharing options...
spydevil Posted July 6, 2010 Share Posted July 6, 2010 nasıl bi projen var bilmiyorum anlattığına göre input içine butonlarla yazıyomuşsun, her butona böle uzun uzun yazmamak için bi fonksiyon oluştur Global Functions bölümüne; function GirdiyiYaz(sHarf) local sVeri = Input.GetText("Input1"); local tbPozisyon= Input.GetSelection("Input1"); local sBolum1 = String.Left(sVeri, (tbPozisyon.Start - 1)); local sBolum2 = String.Mid(sVeri, tbPozisyon.Start, -1); local sYeniHarf = sHarf; local sSon = sBolum1 .. sYeniHarf .. sBolum2; Input.SetText("Input1", sSon); end Butonun On Click Evresine; (Mesela A Harfi İçin) G irdiyiYaz("A"); -- Input isimlerini kendi projene göre düzelt .. Link to comment Share on other sites More sharing options...
Abdullah 37 Posted July 6, 2010 Author Share Posted July 6, 2010 nasıl bi projen var bilmiyorum anlattığına göre input içine butonlarla yazıyomuşsun, her butona böle uzun uzun yazmamak için bi fonksiyon oluştur Global Functions bölümüne; function GirdiyiYaz(sHarf) local sVeri = Input.GetText("Input1"); local tbPozisyon= Input.GetSelection("Input1"); local sBolum1 = String.Left(sVeri, (tbPozisyon.Start - 1)); local sBolum2 = String.Mid(sVeri, tbPozisyon.Start, -1); local sYeniHarf = sHarf; local sSon = sBolum1 .. sYeniHarf .. sBolum2; Input.SetText("Input1", sSon); end Butonun On Click Evresine; (Mesela A Harfi İçin) GirdiyiYaz("A"); -- Input isimlerini kendi projene göre düzelt .. Hocam teşekkür ederim.Proje dosyamı vereceğim ama iki tane sorum daha var. 1) Hocam input bir tane değilde 2 yada daha fazla olursa kodları aynen yazıp input isimlerinimi değiştireceğim yoksa başka şeyler gerekiyor mu? 2) Capslock görevini gören bir tuş yapabilirmiyiz? Hocam bu soruları vermiş olduğum apz dosyası üzerinden cevaplarsan sevinirim. Proje dosyası http://hotfile.com/dl/52980153/ae3d316/Copy_of_Panel.apz.html Link to comment Share on other sites More sharing options...
MostWanted Posted July 7, 2010 Share Posted July 7, 2010 Sen bnm projeye bakmasan da ben sana yeni bir proje hazırladım Ama Türkça karakterlerin büyükleri yazılmıyor.Onu Strin.Upper değil de sen kendin yazdıracaksın.Buyur sana yaptığım örnek.. http://rapidshare.com/files/405443632/Panel.edit.talha.apz Caps Lock tuşuna göre ayarladım ve autoit kullanmadım Link to comment Share on other sites More sharing options...
Abdullah 37 Posted July 7, 2010 Author Share Posted July 7, 2010 Sen bnm projeye bakmasan da ben sana yeni bir proje hazırladım Ama Türkça karakterlerin büyükleri yazılmıyor.Onu Strin.Upper değil de sen kendin yazdıracaksın.Buyur sana yaptığım örnek.. http://rapidshare.com/files/405443632/Panel.edit.talha.apz Caps Lock tuşuna göre ayarladım ve autoit kullanmadım Hocam autoit plugini ile verdiğin örneğe dün bakmıştım gayet güzel çalışıyor dediğin gibi.Bunada anca şimdi bakabildim.Eline sağlık. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.