--- In [email protected], Petra8 <[EMAIL PROTECTED]> wrote:
Hi Leon,
You called
dll.call("user32|GetKeyboardLayout|DWORD Long",6769)
but in vba you called
GetKeyboardLayout(0)
If you call
dll.call("user32|GetKeyboardLayout|DWORD Long",0)
you get a non-zero result.
That what you need?
> I wrote in VBA:
> Private Declare Function GetKeyboardLayout Lib "user32" (ByVal
dwLayout As
> Long) As Long
> Private Sub Command1_Click()
> nStartKL = GetKeyboardLayout(0)
> MsgBox (nStartKL)
> End Sub
> And it works
>
> But in PPro script
> local sRes = dll.call("user32|GetKeyboardLayout|DWORD Long",6769)
> win.debug(sRes)
> returns "0"
> I know I've made a mistake but where is it?
> I've spent a lot of time reading help but it's not clear for me...
>
> I'm thankful for your time and talent
>
> Leon.
>
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/