EDN Admin
Well-known member
Yes yes I know, we are all bored of SendKeys issues.<br/>
Heres the thing, I made a bluetooth remote control app on Android, and a server on vb.net on Win8. I need to control The KMPlayer by sending space, [ or ] characters.
What kills me is that it worked the first time. Now it is not working and Ive tried every way mentioned on the internet but it is simply not working. The code is just<br/>
AppActivate("The KMPlayer") Which Does activate it and brings focus to it.<br/>
SendKeys.Send(" ") Which doesnt send anything to The KMPlayer, but actually works on other programs.
I tried the Windows APIs to get foreground or the SendMessage thing, same result. I tried launching the process from the program and saving its process ID and AppActivate(prID), didnt work. I tried to process.getprocessesbyname("kmplayer")(0).id, also
didnt work. The problem isnt in getting the focus to kmplayer or anything, all the previous methods did get the focus to kmplayer, but none of them sent the keys.
Please help me before I go insane.
View the full article
Heres the thing, I made a bluetooth remote control app on Android, and a server on vb.net on Win8. I need to control The KMPlayer by sending space, [ or ] characters.
What kills me is that it worked the first time. Now it is not working and Ive tried every way mentioned on the internet but it is simply not working. The code is just<br/>
AppActivate("The KMPlayer") Which Does activate it and brings focus to it.<br/>
SendKeys.Send(" ") Which doesnt send anything to The KMPlayer, but actually works on other programs.
I tried the Windows APIs to get foreground or the SendMessage thing, same result. I tried launching the process from the program and saving its process ID and AppActivate(prID), didnt work. I tried to process.getprocessesbyname("kmplayer")(0).id, also
didnt work. The problem isnt in getting the focus to kmplayer or anything, all the previous methods did get the focus to kmplayer, but none of them sent the keys.
Please help me before I go insane.
View the full article