delay.via
来自「用VB6写的真正的32位高级语言可视程序编译器」· VIA 代码 · 共 29 行
VIA
29 行
// Delay.lnl
application PE GUI;
include "win32a.inc";
MSG msg;
frame DoEvents();
if(PeekMessage(@msg, NULL, 0, 0, FALSE)=TRUE) {
TranslateMessage(msg);
DispatchMessage(msg);
}
end;
frame Delay(dword MS);
dword Wait;
Wait = GetTickCount() + MS;
while (GetTickCount() < Wait) { DoEvents(); }
end;
entry
MessageBox(0,"Start..","Delay..",$20);
Delay(2000);
MessageBox(0,"..End!","Delay..",$20);
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?