Ventuz Technology Group Forum  

Ventuz Forums » Ventuz » How to... » Re: Output key from button

Re: Output key from button
Started by fichl at 07-18-2008 22:50. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  07-18-2008, 22:50
fichl is not online. Last active: 11/2/2008 9:45:10 PM fichl



Top 25 Posts
Joined on 09-18-2006
Berlin
Posts 31
Output key from button
hi,
is it possible within ventuz basic to output a keystroke by a button ?
eg: i click on a button and the result is that an "A" is typed like if i did it with the keyboard...

i´d need this function for basic version - so please no scripting

thanks
fichl

   Report 
  07-19-2008, 9:46
chriss0212 is not online. Last active: 11/6/2008 3:10:04 PM chriss0212

Top 10 Posts
Joined on 03-21-2006
Düsseldorf/ Germany
Posts 297
Re: Output key from button
hi fichl,
do you want to send the keystroke to a textfield inside ventuz or to any application outside ventuz?

greetz

chriss

...........and don't give up :-)
   Report 
  07-19-2008, 10:00
Ralf Stanke is not online. Last active: 11/21/2008 10:09:37 AM Ralf Stanke



Top 10 Posts
Joined on 05-15-2005
Dubai, U.A.E.
Posts 337
Re: Output key from button
Hi fichl,

which application shall receive that virtual key stroke? There're some ways to achieve that via Windows hooks and SendMessage to send a key to a specific window or application.
Usually Ventuz has the keyboard focus, so a normal keystroke will be received by Ventuz.

Anyway, all of the existing solutions require scripting. You coudl cheat Ventuz using the expression node:

you can type one (!) C# expression <expr>
this expression must evaluate as int, long, byte, float, double (all numeric types)
the expression compiler is actually doing that (for a float expression node):

float Function( float a, float b, float c, float d )
{
    return (float) <expr>;
}

if you find a valid expression for <expr> you can try this! please note that not all system libraries are linked to the compiler. System.Windows.Forms for example is not!

Another solution could be to hook-up a separate application intercepting all (!) keystrokes on the keyboard and forward them to certain applications. But this will require some development work.

Ralf





   Report 
  07-19-2008, 17:01
chriss0212 is not online. Last active: 11/6/2008 3:10:04 PM chriss0212

Top 10 Posts
Joined on 03-21-2006
Düsseldorf/ Germany
Posts 297
Re: Output key from button
hi fichl,

if you want to send keystroks to a different application maybe:

http://www.humatic.de/htools/MouseTrap.htm

is a solution :-)

greetz

chriss

...........and don't give up :-)
   Report