![]() However what I have done to get the API function to work with Advanced Scripting is mutate the function by basically changing all these argument types to Long because Advanced Scripting isn't able to implement things like DWORD (which is a unique Microsoft variable type for Windows) very easily. These are the arguments in the brackets e.g. However what you will notice is that the four arguments (variable types) for the standard function are actually types BYTE, BYTE,DWORD and ULONG. You can find a reference to it, for example, here: Remove VK_CTRL and VK_ALT to open in the current tab.ĭarren, keybd_event is just another Windows API function that allows you to emulate keypresses etc. Remove the VK_CTRL lines to open in a new tab. This will open the spoken link in a new window. Keybd_event(VK_NUMPAD+single_digit,0,2,0) Keybd_event(VK_NUMPAD+single_digit,0,0,0) Single_digit = Mid(spoken_id_number, i, 1) ' I'm not sure if VB has array type access to strings To allow multiple digit ids to work via the numeric keypad, modify Lindsay's code to: But of course Sendkeys doesn't differentiate the numeric keypad. Just reading through this thread, Hands-free needed to send numeric keypad keystrokes, however Menace found he couldn't send multiple digit ids with Lindsay's code unless the keybd_events were changed to Sendkeys. I'd decided to give mouseless browsing a miss after trying the grid approach but this Firefox plugin makes it more than viable. Thanks for the heads up about this thread Lindsay. Update: your script works! Using SendKeys ListVars1 instead of keybd_event(VK_NUMPAD+n,0,0,0)did the trick. I'm sorry if my descriptions were not clear previously. I hope I have made my requirements clear this time. They are recognised correctly by Dragon S I can see the commands using the recognition history.yes, I have a custom list set up for numbers between 1 to 1000.Īgain thanks for all your efforts. For some reason, link numbers higher than that are ignored. Using the script you originally supplied, I was able to open links in a new tab but only for links numbered between 1-9. However, I have not been able to get mouseless browsing to open links in a new tab because of the need to use a modifier key such as ctrl+alt + links number. For example if I want Link 56 all I say is "5", "6", and it will happily select and navigate to it I have absolutely no problems selecting links using mouseless browsing by just saying the numbers. Unfortunately you have misunderstood my requirements. Long, bScan As Long, ByVal Flag As Long, ByVal exInfo As Long) As Long It will choose the link, but it does not open in a new tab.ĭeclare Function keybd_event Lib "user32.dll" (ByVal vKey As _ The script below will work using the standard number keys, but does not work for the numeric keypad. In order to open a link within a new tab, both the Control and the Alternate keys must be held down while pressing the numeric keypad numbers for the link. My problem is that I cannot seem to get the Control and Alternate modifier keys to work with the numeric keypad. So I set the Mouseless Browsing to "use NumPad exclusively." I then tried to modify my DNS scripts to use the numeric keypad. I cannot find an easy way to disable these Windows 7 shortcut keys. Thus, if I issue a Link command using the number two, in addition to going to the link it will move my Firefox window to the other display. However, I use dual displays and Windows 7 seems to use Control+1 and Control+2 to switch the active window between the two displays. The Mouseless Browsing add-on for Firefox has very much streamlined my hands-free browsing on the Internet. How do I get the CTRL & ALT modifier keys to work with the numeric keypad?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |