Android Question how to use B4AServer to send a keyboard command from device to desktop

Mousa Najafi

Member
Licensed User
I want to send a string from device to desktop to be typed like keyboard command in desktop.
How can I use B4AServer for this purpose. I have found a desktop server open source project that is written in VB.Net that get string
command from device and send as keyboard event in PC.
I am interested to do this by B4AServer as it's platform independent.
Can I make a batch file by following VBScript and send a shell command to run this VBScript which sends keyboard events to active application
B4X:
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "{Down}{F2}"
WScript.Sleep 1000 ' one-second delay
WshShell.SendKeys "{Left}{Left}{BkSp}{BkSp}Some text here.~" ' ~ -> Enter
 
Last edited:
Top