Jump to content

On Right Clik


korasoglu
 Share

Recommended Posts

Arkadaşlar ben inputtan CTRL+S ile sağ clikinde işlem yaptırmak istiyorum

clikine duzenle diye bir değişken atadım onada butonun ismi yükledim

 

duzenle = "b1" -- tıklanan butonun adı

if e_Modifiers.ctrl and e_Key == 83 then
Page.SetObjectScript(duzenle, "On Right Clik", "");

--Page.SetObjectScript("b1", "On Right Clik", ""); böylede olmadı
Page.ClickObject("b1");
Input.SetSelection("Input2", 1, -1);
end

 

Doğrusu nasıl olmalıdır

 

Link to comment
Share on other sites

Şimdi öncelikle duzenle diye bir nesne olmalı ve onun On Right Click evresinde kodlar olmalı. Ayroca syntax hatası yapmışsınız On Right Clik değil On Right Click olacak. Aynı hata bu konu başlığında da var. Ama bu işlem tamamen başka bir şey için. ha Page.GetObjectScript() ile o nesnedeki scripti alıp kullanabilirsiniz o ayrı.

Link to comment
Share on other sites

Hocam önerilerinizi inceledim maalesef yapamadım

k2 = Input.GetText("Input2");
sql.baglan(); -- veritabanına bağlan
SQLite3Connection:execute("UPDATE kodlar SET k2='" .. k2 .. "' WHERE id='" .. sira .. "'")
sql.kapat()

sql.baglan()
db, err = SQLite3Connection:execute("SELECT * FROM kodlar WHERE id='" .. sira .. "'");
tVeri = db:fetch({}, "a");
while tVeri do
Input.SetText("Input2", tVeri.k2);
tVeri = db:fetch({}, "a");
end
sql.kapat();
Dialog.TimedMessage("Bilgi", "Kayıt Başarıyla Değiştirildi", 2000, MB_ICONINFORMATION); 

Butonun Sağ cliği bu fakat 10 tane buton Inputa veri gönderiyor değişiklik yaparsam CTRL+s diyeceğim

 

 

Kullandığım Kombinasyonlar

if e_Modifiers.ctrl and e_Key == 83 then
result = Page.GetObjectScript("b1", "On Right Click");
--Page.ClickObject("b1");
--Page.SetObjectScript("b1", "On Right Click", result);
--Page.SetObjectScript("b1", "", result);

Input.SetSelection("Input2", 1, -1);
end

Edited by korasoglu
Link to comment
Share on other sites

 

Hocam önerilerinizi inceledim maalesef yapamadım

k2 = Input.GetText("Input2");
sql.baglan(); -- veritabanına bağlan
SQLite3Connection:execute("UPDATE kodlar SET k2='" .. k2 .. "' WHERE id='" .. sira .. "'")
sql.kapat()

sql.baglan()
db, err = SQLite3Connection:execute("SELECT * FROM kodlar WHERE id='" .. sira .. "'");
tVeri = db:fetch({}, "a");
while tVeri do
Input.SetText("Input2", tVeri.k2);
tVeri = db:fetch({}, "a");
end
sql.kapat();
Dialog.TimedMessage("Bilgi", "Kayıt Başarıyla Değiştirildi", 2000, MB_ICONINFORMATION); 

Butonun Sağ cliği bu fakat 10 tane buton Inputa veri gönderiyor değişiklik yaparsam CTRL+s diyeceğim

 

 

Kullandığım Kombinasyonlar

if e_Modifiers.ctrl and e_Key == 83 then
result = Page.GetObjectScript("b1", "On Right Click");
--Page.ClickObject("b1");
--Page.SetObjectScript("b1", "On Right Click", result);
--Page.SetObjectScript("b1", "", result);

Input.SetSelection("Input2", 1, -1);
end

Anlayamadığım 2 şey var.

 

b1 deki scripti neden tekrar b1 e aktarıyorsunuz?

 

2-e_Modifiers.Ctrl şeklinde olması gerekmiyormu? Önemseniyor çünkü.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...