sendkeys problem

false74

Well-known member
Joined
Aug 4, 2010
Messages
76
Programming Experience
Beginner
I am using send keys to send the squence Alt W (a integer called 'index') Escape

This works:
VB.NET:
 SendKeys.SendWait("%W" & index & "{ESCAPE}")

This doesn't:
VB.NET:
SendKeys.SendWait(Keys.Alt & Keys.W & index & Keys.Escape)

It works until it gets to the index variable. Is it possible to cast 'index' as a key?

so if index = 2
it would do keys.D2
 
Back
Top