• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 367
  • Last Modified:

Is there a SHIFTDOWN in VB.NET for the SendKeys.SendWait method ?

Hi,

Is there a VB.NET parameter for the SendKeys.SendWait function which will press the shift key down and keep it down until released by another SendKeys call?

I cannot seem to find the .NET way of sending {SHIFTDOWN} or {SHIFTUP}.

TIA.
Wee.
0
Wee_Pecky
Asked:
Wee_Pecky
  • 3
1 Solution
 
iboutchkineCommented:
I believe send shift willbe

Sendkeys.Send("+{END}") ' Shift+End

Sending keystrokes is *very*
unreliable, and usually bad programming practice
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
"and keep it down until released by another SendKeys call?"

No.  With SendKeys there isn't any way to KEEP it down until you specify it be released.

To do that you would need to use Win APIs...
0
 
Wee_PeckyAuthor Commented:
Thanks your comments, I understand sendkeys is dubious coding practice.
Can you suggest another method of ensuring an access database does not launch its opening code when opened by OPENDATABASE method?
0
 
Wee_PeckyAuthor Commented:
No, but the solution to this problem can be found here:

http://blogs.msdn.com/robgruen/archive/2004/04/15/114020.aspx

The code will need tweeking to get a shiftdown experience but it is easy enough to do.
0
 
Wee_PeckyAuthor Commented:
Asker found solution, was paritially assisted by the no answers.
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now