- 構文(VBA)
- Declare Function EnableWindow Lib "user32" Alias "EnableWindow" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
- 構文(UWSC)
- DEF_DLL EnableWindow(hwnd, bool): long: user32.dll
- 引数
- 戻り値
プログラム実行例
メモ帳のマウス入力とキーボード入力を一時的に無効化する
DEF_DLL EnableWindow(hwnd, bool): long: user32.dll
DIM hwnd = IDTOHND(EXEC("notepad"))
PRINT EnableWindow(hwnd, FALSE)
SLEEP(3.000)
PRINT EnableWindow(hwnd, TRUE)