Just what i needed thankyou

How do I get it to send a string though

Code:
 Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
    Const KEYEVENTF_KEYUP As Long = &H2

and what for sending so far i have

Call SendMessage(HWND_BROADCAST, Text)

but it doesnt work
thankyou