vb中用keybd?
經測試成功實現,不過不同鍵盤不同系統可能有所區別,需要的話可以修改注釋的那行keybd_eventasc("["),MapVirtualKey(asc("["),0),0,0不過我的改了不行,變成windows鍵了,所以看情況吧OptionExplicitPrivateDeclareSubkeybd_eventLib"user32"_(ByValbVkAsByte,ByValScanAsByte,ByValdwFlagsAsLong,ByValdwExtraInfoAsLong)PrivateConstVK_OEM_4AsLong=&HDBPrivateDeclareFunctionMapVirtualKeyLib"user32"_Alias"MapVirtualKeyA"_(ByValwCodeAsLong,_ByValwMapTypeAsLong)_AsLongPrivateSubForm_Load()Timer1.Interval=1000EndSubPrivateSubTimer1_Timer()keybd_eventVK_OEM_4,MapVirtualKey(VK_OEM_4,0),0,0'模擬按下"["鍵,此處可以改為ascll碼EndSub
上一篇已備案域名安全嗎
下一篇pwna是什么品牌衣服