SendKeys doesnt work - Forum

Forum Navigation
You need to log in to create posts and topics.

SendKeys doesnt work

Trying to make shortcut app that allows me send key to another app after push btn.

But sendkeys command doesnt, work. i know that is probably something wrong with this main app (something in not allowing to simulate keystrokes) this app is kinda coplicated, it has own layouts and bunch of crappy stuff. Anyway... any ideas how to force sendkeys command, or maybe some alternatives?

Ok. nvm i got it with

Set objShell = CreateObject("WScript.Shell")
objShell.SendKeys "x"

but i still got some problem with focusing on text entry. (it looses text entry focus when im clicking on VNW app) Any ideas?

i know how it looks like when somebody replies to himself :D but i finally did it, and maybe it will help someone :)

soo... i started with create new function in function library (F11), i chose vbscript language and write code:

 

Set objShell = CreateObject("WScript.Shell")
objShell.SendKeys "[input]"

 

then i create hotkey button with action

 

SetVar "[input]" "your input here"

 

and at the end i put in app properties tab (F6), at the 'deactive' action slot this code

 

Delay "100"

Call "send" "[input]"

 

As a finall  product i have app that allows to input prearranged text into text input on other app... i know, its sound odd. Its some kinda ctrl+c, ctrl+v function, but you can create many different buttons with prearranged text to paste. Maybe i will post it soon. Cheers

luishp and Vadim have reacted to this post.
luishpVadim