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

Discussion in 'Android Questions' started by Mousa Najafi, Feb 14, 2015.

  1. Mousa Najafi

    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
    Code:
    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: Feb 14, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    I don't recommend you to use B4AServer at all. It is an old solution. It is much better and simpler to use B4J to implement a http server or a sockets based server that will do this.
     
  3. Mousa Najafi

    Mousa Najafi Member Licensed User

    Thanks Mr. Erel for this specific project I am using vb.net server
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice