From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



為什麼在LabVIEW 6.1中Alt鍵不能觸發"Key Down" Event



主要軟體:
主要軟體版本: 6.1
主要軟體修正版本: N/A
次要軟體:

問題: 我在LabVIEW 6.1中使用Event Structure,並設定成反應Key Down Event。結果是如果我按Alt鍵時不會有反應,其它鍵如字母、數字、shift等則正常反應。

解答: 這是Windows處理系統鍵(Alt)的方式的問題。按這個鍵時作業系統不會送出訊息給LabVIEW,所以不會有反應。但是,你仍然可以藉由讀取Key down event中的PlatMods cluster來判斷是否Alt和其它鍵被組合按下。這個cluster中有一個布林變數代表當這個事件發生時是否Alt鍵被按下。

相關連結:

附加檔案:





報告日期: 05/03/2002
最後更新: 05/22/2003
文件偏號: 2L2GIBDV