Friday, September 4, 2009

automate the Windows in .Net?

Microsoft Active Accessibility is not a comprehensive solution to automate the Windows UI. There are certain limitations. E.g., using accessibility, we can search for a TextBox control on MS Word Ribbon, but we can not get or set a value in it, which can be done using Microsoft UIA. So, a combination of MSAA and UIA can provide a more promising solution for Windows UI automation.

Random Number Generation within given Range?

Function genRand(upperbound,lowerbound)
msgbox Int((upperbound - lowerbound + 1) * Rnd + lowerbound)
End Function

call genRand(10,1)