Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Gregory Diebold
49 discussion posts
When using .Sendkeys to stuff the keyboard buffer, I noticed the "+" modifier is the same as holding the [Shift] key and the modifier respects the [Caps-Lock] state: Caps On, Lowecase; Caps Off, Uppercase.

For example, BFS.Input.SendKeys("+({VK_50}{VK_65}){VK_76}{VK_76}+({VK_80})") results:
    Caps OFF: @AllP
    Caps ON: @aLLp

Since this is a case-sensitive password I am stuffing, I need the case to be persistant, regardless of the [Caps-Lock] state. I have tried adding 32 to each ASCII value to stuff with lowercase alphas, but that did not work.

So, is there a modifier I can prefix with to force a lowercase ASC char? Or, is there a way to force [Caps-Lock] Off within a custom script?
Dec 12, 2023 (modified Dec 14, 2023)  • #1
User Image
Gregory Diebold
49 discussion posts
BTW, I have also tried, BFS.Input.SendKeys("@Allp");

[Caps-Lock] state affects it, too. The @ symbol will require the + & ASC code, +({VK_50}.

OFF:2allp
ON: 2ALLP
Dec 12, 2023 (modified Dec 12, 2023)  • #2
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You could do something like this (You'll need to add
using System.Windows.Forms;
to the top of the script):

Code

// Check if CapsLock is enabled, if so, send CapsLock to disable
if (Control.IsKeyLocked(Keys.CapsLock))
{
    BFS.Input.SendKeys("{VK_20}");
}
Dec 14, 2023  • #3
User Image
Gregory Diebold
49 discussion posts
Ahhhh, a windows form namespace. I developed in ASP.Net so didn't have the luxury of using that namespace. I will have to investigate it further now.

I added this snippet and it seems to work fine. My camera cloud system is not working right now so I tested the stuffing with notepad.

if (Control.IsKeyLocked(Keys.CapsLock))
{
BFS.Input.SendKeys("{VK_20}");
BFS.General.ThreadWait(500);
}
Dec 14, 2023  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)