• 热门标签

当前位置: 主页 > 航空资料 > 国外资料 >

时间:2010-08-18 09:13来源:蓝天飞行翻译 作者:admin
曝光台 注意防骗 网曝天猫店富美金盛家居专营店坑蒙拐骗欺诈消费者

“keyrelease”.
Also, for compound key sequences like “control shift A”, use the keypress (CTRL)
and then shifthit (A) then keyrelease (CTRL).
41
althit|ahit(<key>);
Tells EPIC to press and then release <key> while holding down the Alt key. All
<key> must be a valid key, identified in the TOKENS.DOC and they must be
capitalized. To press and/or release the Alt key by itself, use “keypress” and
“keyrelease”.
setinterkey|interk(<delay>);
This is an advanced hardware control command. It sets the delay between the
“make” (ie. press) and “break” (ie. release) codes to <delay> * 10ms. The default
<delay> is 40 milliseconds.
setpostkey|postk(<delay>);
This is an advanced hardware control command. It sets the “post-break” delay (ie.
the delay between the “break” and the “make” codes) to <delay> * 10ms. The
default <delay> is 30 milliseconds.
addpost(<delay>,<delay1>) ;
This command inserts a delay of <delay> * 10 millisecond between the key release
and CTRL, ALT, or SHIFT for the next ctrlhit, althit, or shifthit. This applies only to
the next command. The range is 0-15 for <delay> and <delay1>. The <delay1>
applies to AFTER the CTRL, ALT, or SHIFT release. Example:
{addpost(5,2);
ctrlhit(A);
ctrlhit(B);
}
This command added 50milliseconds between the “A” release and the CTRL
release and 20 milliseconds after the CTRL released (before the CTRL press for the
“b” key, but does not apply to the ctrlhit(B).
setctrldelay|ctrldel(<delay>)
This command inserts a delay of <delay> * 10 millisecond like above, but applies to
all ctrlhit, althit, and shifthit commands. The range for <delay> is also 0-15.
Example:
:INIT{
setpostkey(2);
setinterkey(2);
setctrldelay(5);
}
The setctrldelay command will inject an extra 50 milliseconds between the
keyrelease and the CTRL, ALT, or SHIFT hits.
scanrow(<module>,<row>)
This command returns the value at <module>, <row>. A “1” means the modrow is
active (on for switches). Module and row must be defined as being scanned using
the definemodule command, otherwise an undefined result will be returned. Result:
example:
42
definemodule(3,FASTSCAN,0,8) //scan module 3 rows 0-7
byte scan;
scan = scanrow(3,2); //will return the current state of switches at module 3, row 2
disablescan|discan(<MRB button>);
disablescan|discan(<MRM>);
These are hardware control commands that disable scanning of button <MRB
button> or masked row <MRM> until enabled. Example:
disablescan(M0R2B4);
disablescan(M0R2M0b00010000); is equivalent to M0R2B4
disablescan(M0R2M0x10); is equivalent to M0R2B4
disablescan(M0R2M0b00001100); will disable bits 2&3 on M0R2
enablescan|enscan(<MRB button>);
enablescan|enscan(<MRM>);
These are hardware control commands that enable scanning of button <MRB
button> or masked row <MRM> that have been disabled with the disablescan
command.
enablescan(M0R2B4);
enablescan(M0R2M0b00010000); is equivalent to M0R2B4
delayscan|delscan(<delay>, <button>, <label1>, <label2>);
This is a hardware control/execution flow command that causes EPIC to delay for
<delay> * 20ms before scanning <button>; if <button> is not pressed, execution will
jump to <label1>; otherwise execution will jump to <label2>. The delayscan should
be preceded by a disablescan of the <button> and both <label1> and <label2>
should include the enablescan of the disabled <button>.
clearflag|fclr(<flagname>) ;
The clearflag command causes <flagname> to be set to “false”. The preferred
method of setting a flag to false is the simply to set the flag to false with an
arithmetic statement: flagname = false;
setflag|fset(<flagname>);
The setflag command causes <flagname> to be set to “true”. The preferred method
of setting a flag to true is the simply to set the flag to true with an arithmetic
statement: flagname = true;
if (<datatype1> <comparison operator> <datatype2> ) call|jump
<label1>; else call|jump <label2>;
This is the EPICenter implementation of the classic, conditional, “If” statement. With
this command, <datatype1> can be any data type except “constant”. If the
comparison evaluates to “true”, <label1> will be executed. If the comparison
 
中国航空网 www.aero.cn
航空翻译 www.aviation.cn
本文链接地址:航空资料18(12)