Arsip: SendKeys
more 17 years ago
clark
Tanya nih.. Ada yang Pernah pake perintah SendKeys Di Delphi ga? g ada sedikit masalah nih.. kalau kita menggunakan perintah sendkeys, aplikasi yang dikenakan perintah sendkeys itu kan harus dalam keadaan active, bagaimana caranya supaya aplikasi yang dikenakan perintah sendkeys itu ga dalam keadaan active? Jadi Form delphi kita (yang meberikan perintah sendkeys tsb) tetap selalu dalam keadaan active.
more 17 years ago
Tbawor
kalau gak salah Sendkeys pakai parameter Handle, nah gunakan sj Handle aplikasi yg mau di Sendkeys. utk mencari Handle bisa pakai FindWindow; CMIIW
more 17 years ago
clark
Pake perintah handle? gimana caranya ya..
saya udah coba tapi kok kayaknya gagal.. code yan saya coba kayak gini nih :
....
findwindow('Calculator',nil);
sendkeys('123',true);
...
tapi kok ga terjadi apa2 ya..
Bisa tolong berikan sedikit codeny ga?
more 17 years ago
p2bf
neh dapet nemu tapi lupa lg dimana muga aja bantu
tapi buat kirim ke notepad, ya selanjutnya silahkan berkreasi
procedure TForm1.Button1Click(Sender: TObject);
var
wnd: HWND;
i: Integer;
s: string;
begin
wnd := FindWindow('notepad', nil);
if wnd <> 0 then
begin
wnd := FindWindowEx(wnd, 0, 'Edit', nil);
s := 'woiiiiiiiiiiiiiiiiii';
for i := 1 to Length(s) do
SendMessage(wnd, WM_CHAR, Word(s[i]), 0);
PostMessage(wnd, WM_KEYDOWN, VK_RETURN, 0);
PostMessage(wnd, WM_KEYDOWN, VK_SPACE, 0);
end;
end;
more 17 years ago
clark
wnd := FindWindowEx(wnd, 0, 'Edit', nil);
Parameter 'Edit' Fungsinya untuk apaan ya?
more 17 years ago
xerion
letakin cursor di kata FindWindowEx lalu teken F1.
apa katanya hayooooo .....
more ...
- Pages:
- 1
reply |
Report Obsolete
Last Articles
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 4 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 5 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 12 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 12 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 12 years ago
Random Topic
- kirim instruksi antar exe
by Chocoloco in Tip n Trik Pemrograman more 17 years ago - Menentukan harga Pembelian
by selviani_id in Tutorial & Community Project more 15 years ago - cara instal suipack di delphi gimana?
by 113050251 in Tip n Trik Pemrograman more 16 years ago - convert c++ ke delphi
by sahrul in Hal umum tentang Pascal Indonesia more 18 years ago - model di client warnet
by lekmo in Tip n Trik Pemrograman more 17 years ago - detect hidden process
by xerion in Tip n Trik Pemrograman more 17 years ago - MASTER_DETAIL
by desidian in Lain-lain more 13 years ago - Socket Error # 10054 Connection reset by peer
by reza_elka in Network, Files, I/O & System more 13 years ago - Validasi Huruf
by saysansay in Hal umum tentang Pascal Indonesia more 19 years ago - logika/coding/sql untuk membreakdown suatu produk
by paskal14 in Tutorial & Community Project more 15 years ago