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
Samuel Terrazas
12 discussion posts
I'm working with a program where I need to send to the key combination CTRL+B but sometimes the key press isn't being registered. So I tried using

Code

BFS.Input.SendKeyDown("^({VK_66})");
BFS.General.ThreadWait(25);
BFS.Input.SendKeyUp("^({VK_66})");


But the SendKeyUp isn't registering.

I have also tried to do

Code

while(!BFS.Input.SendKeys("^({VK_66})")) {
   BFS.General.ThreadWait(25)
}


but that doesn't work because SendKeys always returns true in my experience.

Any insight here would be greatly appreciated.
Sep 19, 2015  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We'll test this out here and see what we can find out :)

Thanks!
Sep 21, 2015  • #2
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Could you try increasing the ThreadWait to 100ms? We've run into issues in the past where the keys were being pressed too quickly and weren't being picked up by the application that was waiting for them.
Sep 22, 2015  • #3
User Image
Samuel Terrazas
12 discussion posts
I've tried increasing the wait to 100ms in both cases but the CTRL+B release command is never sent. And in the while loop the key always reports that it was sent even though the application doesn't receive it.
Sep 23, 2015  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Which application is receiving the keystroke? Just wondering if it's something we can test here.
Sep 24, 2015  • #5
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)