Arsip: mhn bantuan bisa akses kode ascii untuk "CTRL & ALT

more 13 years ago
ard33
salam kenal untuk semua, ku orang baru yang baru nimbrung disini n ku mau tanya tentang bagai mana akses kode ascii untuk ctrl n alt
mungkin kalo ada yang bisa bantuin q donk.
sekian n makasi.

more 13 years ago
zuyo
coba cari di Delphi help : Virtual Key Codes, dalam Windows keystroke untuk tombol2 tertentu sudah didefinisikan sebagai konstanta

more 13 years ago
faathir
mei bi (mungkin/meureun) gini kali...
bisa cobain aja pake ini..
VK_LSHIFT = 160;
VK_RSHIFT = 161;
VK_LCONTROL = 162;
VK_RCONTROL = 163;
VK_LMENU = 164;
VK_RMENU = 165;

more 13 years ago
vistanita
Klo yang dimaksud untuk simulasi penekanan ctrl + alt ,so here they are
//procedure untuk mensimulasikan penekanan tombol
procedure VKeyDown(wVK : WORD;extended : boolean);
var a: TInput;
begin
a.Itype := 1;
a.ki.Wvk := wVK;
a.ki.wScan := 0;
if extended then
a.ki.dwFlags := KEYEVENTF_EXTENDEDKEY
else
a.ki.dwFlags := 0;
a.ki.time := 0;
a.ki.dwExtraInfo := getMessageExtraInfo;
sendInput(1,a,sizeof(TInput));
end;
//procedure untuk mensimulasikan pelepasan tombol
procedure VKeyUp(wVK : WORD;extended : boolean);
var a: TInput;
begin
a.Itype := 1;
a.ki.Wvk := wVK;
a.ki.wScan := 0;
a.ki.dwFlags := KEYEVENTF_KEYUP;
if extended then
a.ki.dwFlags := a.ki.dwFlags + KEYEVENTF_EXTENDEDKEY;
a.ki.time := 0;
a.ki.dwExtraInfo := getMessageExtraInfo;
sendInput(1,a,sizeof(TInput));
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
{
contoh - simulasi penekanan dan pelepasan ctrl + alt + a
}
VKeyDown(VK_LCONTROL,false);
VKeyDown(VK_LMENU,false);
VKeyDown(65,false);
VKeyUp(VK_LMENU,false);
VKeyUp(VK_LCONTROL,false);
VKeyUp(65,false);
end;
--------------------
keep on move on :)
--------------------
more ...
- Pages:
- 1
reply |
Report Obsolete
Last Articles
- Project Group dalam Lazarus
- FastPlaz Database Explorer
- Release: FastPlaz Super Mom v0.12.22
- PascalClass #3: Web Development with Free Pascal
- Makna Pascal di Pascal Indonesia
- Kulgram : Instalasi Lazarus di Perangkat Berbasis ARM
- PascalClass #1: Analisa Database dan Machine Learning
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
- Mengenal OXYGENE – Pascal For .NET
- PascalTalk #5: UX: Research, Design and Engineer
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 4 months ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 5 months ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 5 months ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 5 months ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 5 months ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 5 months ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 1 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 8 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 8 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 8 years ago
Random Topic
- Mencerahkan Image
by supermuam in Hal umum tentang Pascal Indonesia more 10 years ago - Compress eXecutable for U friends
by ImanD in Enginering more 15 years ago - Midas yang aneh....Ada yang tahu jawabannya ?
by EkoIndri in Tip n Trik Pemrograman more 14 years ago - ODBC, ADO dan run programnya
by mssetyawati in Hal umum tentang Pascal Indonesia more 14 years ago - Hitung bandwidth......
by EkoIndri in Hal umum tentang Pascal Indonesia more 14 years ago - mau tanya cara copy table..???
by agoes in Hal umum tentang Pascal Indonesia more 13 years ago - Handle Error Store Procedure
by supermuam in MsSQL more 12 years ago - Dua masalah yang bertentangan...
by Random in Hal umum tentang Pascal Indonesia more 13 years ago - [HELP IMPORTANT] REPORT BUAT FIREBIRD (ZEOS)
by andrypein in FireBird more 10 years ago - Delphi vs VB
by kodok_bancret in OOT more 14 years ago