Hello, I researched how to cast strings to another type but was not successful. I received "Invalid cast from 'System.string' to 'White.Core.windowsAPI.KeyboardInput.SpecialKeys'" error. Any suggestions. Please see a test sample code
of what I need to do.
string skey = "F6"; // only for testing. Original test will retrieve the function key strings from the screen.
KeyboardInput.SpecialKeys special = (KeyboardInput.SpecialKeys)Convert.ChangeType(skey, typeof (KeyboardInput.SpecialKeys));
I would appreciate your help on this as I am really stuck. Thanks.