From volchik2000 at list.ru  Fri Jan 26 10:19:52 2007
From: volchik2000 at list.ru (=?koi8-r?Q?=D2=CF=D7=C5=CE_=E1=CB=D8=C1=D4=CF=C9?=)
Date: Fri, 26 Jan 2007 12:19:52 +0300
Subject: [Rd] Using Windows API functions in R
Message-ID: <E1HANFQ-000LJu-00.volchik2000-list-ru@f71.mail.ru>

Somehow autofilter doesn't allow this message to be posted,
will try another time. 

-----Original Message-----
From: Yuri Volchik <volchik2000 at list.ru>
To: r-devel at r-project.org
Date: Thu, 25 Jan 2007 22:27:13 +0000
Subject: Using Windows API functions in R

> 
> Hi to all.
> 
> In programming one application i have to "press" button to have
> application started, which i would like to do automatically from R.
> To do that i want to use library "user32" function "SendInput"
> 
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/sendinput.asp
> 
> So far i managed to write the following
> 
> system(shQuote("C:/Program Files/1.exe"),wait=F)
> system32 <- file.path(Sys.getenv("windir"),"system32")
> user32 <- file.path(system32,"user32.dll")
> dyn.load(user32)
> .C("SendInput",..)
> 
> And now i'm at loss how to represent the data structure needed for
> correct call to that function, may be somebody could help me with
> this?
> 
> Thanks
> 
> -- 
> Best regards,
>  Yuri                          mailto:volchik2000 at list.ru
> 
> 
>



[Rd] Using Windows API functions in R
=?koi8-r?Q?=D2=CF=D7=C5=CE_=E1=CB=D8=C1=D4=CF=C9?=