Rank: Newbie
Groups: Approved
Joined: 1/31/2021(UTC) Posts: 8  Location: Liberty Lake Thanks: 4 times Was thanked: 1 time(s) in 1 post(s)
|
Hi Thank you for providing such a great tool and helping us by making our life easier. I have two questions regarding the Sendkeys function. 1) I have one line script attached to a stroke. This is simply to move down to another tab in Google chrome. It switches to the next tab when it is done. Quote:sp.SendKeys ("^{PgDn}"); It was working fine until today when I updated the strokeplus, V0.5.7.4. When I do the stroke, it shows the name of the action so S+ is running it at least. When I manually press Ctrl+Page Down, it does what is expected. Please let me know what could be happening here. Another note is that another stroke with the following command still works. 2) What do I have to mimic "Ctrl+2" key press? This is to specify the second tab from the left by stroking. I tried below but didn't work. Quote: sp.SendKeys("^2"); Thank you in advance!
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,315  Location: Tampa, FL Thanks: 28 times Was thanked: 412 time(s) in 352 post(s)
|
Ctrl Page Down works fine for me. In general, I recommend using the Insert Hotkey button at the top of the script window, since this uses a more direct SendInput method as opposed to Microsoft SendKeys. Click Insert Hotkey, then press the key combination, and it will insert the command at the current location: Code://Control+Page Down
sp.SendModifiedVKeys([vk.LCONTROL], [vk.NEXT]);
//Ctrl 2:
sp.SendModifiedVKeys([vk.LCONTROL], [vk.VK_2]);
|
|
|
|
Rank: Newbie
Groups: Approved
Joined: 1/31/2021(UTC) Posts: 8  Location: Liberty Lake Thanks: 4 times Was thanked: 1 time(s) in 1 post(s)
|
Thank you for your prompt reply. I didn't know "Insert Hotkey" it is much easier because I don't have to find out the key names like "{PgDn}". I figured out what the issue was. It was MS PowerToys. I set up a keyboard key switch between Ctrl and Capital keys using the tool. I revised the code as below and it works as expected. Thank you for your help. Code:sp.SendModifiedVKeys([vk.CAPITAL], [vk.NEXT]);
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close