Win 7/32 下可以运行的:
Clear
Declare Integer BlockInput In user32 Integer fBlockIt
=BlockInput(1)
? "*** 阻塞键盘及鼠标事件"
For I =1
To 10
Do Dataproc
Endfor
=BlockInput(0)
? "*** 解除阻塞键盘及鼠标事件"
Function Dataproc
* it is just an emulation of a time-consuming procedure
Local I
Wait Window Nowait "正在创建游标..."
Create Cursor cs (Id N(6), dt D)
For I = 1 To 10000
Insert Into cs Values (I, Date() - I)
Endfor
Wait Clear
? Chr(9) + "- 游标创建日期和时间 : " + Ttoc (Datetime())
Use In cs
Return
Endfunc