📄 hitanykey.sci
字号:
function HitAnyKey(arg)
// HitAnyKey -- Tool for pausing in scripts
// Usage
// HitAnyKey([arg])
// Inputs
// arg optional value to store into global HitKeyMemory
//
// Description
// Hit any key to continue
//
// Copyright Aldo I Maalouf
global HitKeyMemory
[lhs,rhs]=argn();
if rhs == 1,
HitKeyMemory = arg;
end
drawnow();//xbasr() ;
if ~string(HitKeyMemory)=='SkipPauses',
if ~string(HitKeyMemory)=='AutoPrint',
disp('Awaiting Input; Hit P to print before continuing')
disp(' Hit X to suppress further pauses')
disp(' Hit any other key to continue ')
chare = input("input P,X, or other?","s");
if (chare ~= [])
if string(chare(1))=='P',
warning('The print function is not provided with now!')//xsave(cptour1)//print
if string(chare(1))=='X',//elseif string(chare(1))=='X',
HitKeyMemory = 'SkipPauses';
end
end
else
warning('The print function is not provided with now!')// xsave(cptour1)
end
end
end
endfunction
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -