--- In [email protected], Petra8 <[EMAIL PROTECTED]> wrote:
>
> To: Alan Campbell
> Hi!
> Thank You for such amazing plugin!
> But I'm a beginner and don't know how exactly call
> user32 GetKeyboardLayout function
> 
> 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...

Where did 6769 come from? You have to use Thread-ID in this field (0
for the current thread). 6769 seems a non-existent ThreadID.

Sean






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/
 


Reply via email to