I'm working on a .Net application. In this application there is a functionality which works only if we press + symbol on the number key pad. It will be great if anybody can advise me, how to press + symbol on the number key pad.
set oshell = createobject("Wscript.Shell")
set oshell = nothing
That might work.
I'm not a complete idiot - some parts are missing.
I had tried this method, but this method sends only normal + symbol on the keyboard not the Number Key pad.
Why dont you try using
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **
i guess the Keypad + key is obatined using
Alt 43. i.e Press Alt Key and then press 4 & 3 keys and then release Alt key.
Hi Tarun & Gautam,
I had tried both the ways...Ascii value of both + symbols are same as 43. So it takes as the default + symbol.
Well i tried recording on Calculator and replaced to the code for "+" with the equivalent send message api
Extern.Declare micLong,"PostMessage","user32.dll","PostMessageA", micLong,micLong,micLong,micLong
SystemUtil.Run "calc","","C:\Documents and Settings\tarun_lalwani",""
Extern.PostMessage Window("Calculator").GetROProperty("hwnd"),clng(25 6),clng(107),clng(0)