FindWindowExA

構文(VBA)
Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
構文(UWSC)
DEF_DLL FindWindowExA(long, long, string, string): long: user32.dll
引数
戻り値

プログラム実行例

DLLを使ってメモ帳にメッセージを送信する

DEF_DLL FindWindowA(string, string): long: user32.dll
DEF_DLL FindWindowExA(long, long, string, string): long: user32.dll
DEF_DLL SendMessageA(long, long, long, string): long: user32.dll

EXEC("notepad")

hNotePad = FindWindowA("Notepad", NULL)
hEdit = FindWindowExA(hNotePad, 0, "Edit", NULL)
PRINT SendMessageA(hEdit, 12, 0, "送信するメッセージ")
  1. user32.FindWindowA
  2. user32.FindWindowExA
  3. user32.SendMessageA
  4. EXEC