Hi Michael, Thank you for the response.
What I am trying to do is to click on the Notepad (File->New) using the SendMessageA command. The third param of the SendMessageA is a int32 and I am trying to convert my WID to provide as an input for it. IntPtr menuHandle = new IntPtr(Convert.ToInt32(menuActionCodeString, 16)); SendMessage(winHandle,(int)WinApiNativeMethods.WindowsMessages.WM_COMMAND, menuHandle ,IntPtr.Zero); Thanks Vinod On Wednesday, June 19, 2013 12:21:52 AM UTC+5:30, Michael Schoonmaker wrote: > > Vinod, > There's a lot about the surrounding code we'd have to know to make sense > of these lines (IntPtr has way too many uses). The best I can tell is that > you're looking for the global parseInt function: > > > https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/parseInt?redirect=no > > Try `parseInt(string, 16)`. > > > On Tue, Jun 18, 2013 at 4:29 AM, Vinod Nair <vinod...@gmail.com<javascript:> > > wrote: > >> Hi All, >> >> I have been stuck with the following problem for few days. I have tried >> few things, however am not able to get this working. >> >> WID_STR = 0x7D >> IntPtr X= new IntPtr(Convert.ToInt32(WID_STR, 16)); >> >> Please help. >> >> Thanks >> Vinod >> >> -- >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to nod...@googlegroups.com<javascript:> >> To unsubscribe from this group, send email to >> nodejs+un...@googlegroups.com <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "nodejs" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to nodejs+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.