1
A
回答
1
//API function declaration to simulate keystrokes GLOBAL EXTERNAL FUNCTION
subroutine keybd_event(uint bVk,uint bScan,long dwFlags,long dwExtraInfo) library 'user32.dll'
public function integer of_presskey (integer ai_key);//Calls an API function to simulate a key press
keybd_event(ai_key,0,0,0)
return 1
end function
public function integer of_releasekey (integer ai_key);//Calls an API function to simulate a key release
keybd_event(ai_key,0,2,0)
return 1
end function
//Put the following in the KEY event if available. Otherwise create a custom event using //the Event ID pbm_keydown for regular objects or the Event ID pbm_dwnkey for DataWindows.
CONSTANT INT VK_SHIFT = 16 //Keycode for the SHIFT key
CONSTANT INT VK_TAB = 09 //Keycode for the TAB key
//Simulates a TAB keystroke when the DOWN ARROW OR ENTER is pushed as long
//as it isn't on the last column or the last row. Kills the DOWN ARROW
//keypress
if ((key = KeyDownArrow! OR key = KeyEnter!)) then
ibl_noenter = false
of_presskey(VK_TAB)
of_releasekey(VK_TAB)
Yield()
return 1
//Simulates a SHIFT + TAB keystroke when the UP ARROW is pushed.
//Kills the UP ARROW keypress
elseif (key = KeyUpArrow!) then
ibl_noenter = true
//Simulating SHIFT + TAB Keystroke
of_presskey(VK_SHIFT)
of_presskey(VK_TAB)
of_releasekey(VK_SHIFT)
of_releasekey(VK_TAB)
Yield()
//Allows a TAB keypress to go through
elseif (key = KeyTab!) then
return 0
end if
+0
非常感謝你^^ – Cechinel
相關問題
- 1. 如何觸發Android鍵盤上的shift鍵?
- 2. Shift鍵,觸發時我試圖點擊Shift + Tab組合
- 3. 如何用SendKeys發送一個Shift鍵?
- 4. 如何用Selenium2發送鍵盤快捷鍵ALT SHIFT z(熱鍵)?
- 5. intro.js - 添加shift +?鍵盤熱鍵/快捷鍵支持啓動(或觸發)introJs()。start()
- 6. 爲什麼按下shift鍵時不會觸發'click'事件?
- 7. 在Flash應用程序中使用SHIFT鍵不斷觸發Windows StickyKeys對話框
- 8. 如何檢測JavaScript中的shift +鍵?
- 9. 如何禁用fabricjs中禁用shift鍵?
- 10. 如何檢測c中的shift鍵?
- 11. 如何觸發回車鍵
- 12. 如何觸發按鍵
- 13. 有沒有辦法在Javascript中觸發「Ctrl + Shift + P」事件?
- 14. GWT中的Shift鍵?
- 15. 如何發送按Ctrl + Shift + F1使用發送鍵
- 16. 如何發佈/觸發事件到PowerBuilder中的不可見控件?
- 17. 如何觸發鍵盤的'Enter'鍵
- 18. 如何在JavaScript中觸發鍵盤快捷鍵功能?
- 19. 帶「Ctrl,Shift或Alt」的Keydown事件不會在Windows上觸發
- 20. 如何觸發在java中
- 21. Shift鍵autohotkey
- 22. 啓用SHIFT鍵
- 23. shift +箭頭鍵
- 24. 在單行編輯控件中,點擊事件沒有在PowerBuilder中觸發
- 25. 如何禁用「Alt + Shift」組合鍵但保留「Alt + Shift + others」?
- 26. 在PowerBuilder中右鍵單擊(菜單)
- 27. 在javascript或JQuery中觸發或返回shift + tab
- 28. C# - 如何使用SendKeys.Send發送帶SHIFT鍵的小寫字母?
- 29. 映射和shift鍵在vim
- 30. 如何取消綁定jQuery keydown(shift鍵)?
您對軟件的Shift-Tab鍵有什麼期望? – Seki