WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Home Cockpit - Das Forum für die "Bastler" (http://www.wcm.at/forum/forumdisplay.php?f=55)
-   -   Please help with keyboard/mouse (http://www.wcm.at/forum/showthread.php?t=137686)

Erups 24.06.2004 01:53

Please help with keyboard/mouse
 
I have tried many times, bui i can't get this thing to work.
It shows it does get triggered (green led blinking), but it doesn't have any consequence.
For example if i want Q i use
On sequence
K+Q;D50;K-Q

but i also tried splitting it in two
On seq
K+Q
Off seq
K-Q

I tried with and without ending ";"

I notice this object has a "cid", so i thought it was to be used with the FSCLIENT app, but if it is running it does not receive anything from FSBUS when a key/mouse event is triggered...
So what's this CID for?
Can you help me figure this object out?

Totti 24.06.2004 11:44

Hello,
each client has a CID, the server has CID 0. FsClient ust run on the client.
How did you configure it?
Regards,
Thorsten

norbert bosch 24.06.2004 12:13

Hi

The E will be send to the program that has the focus at that time.

If you send it to a program on the server (were fsbus router is running) CID has to be 0.

use this
L+120,120;L-120,120;K+E;K-E

put notepad on the left upper corner on your screen.

The L+120,120;L-120,120 sequence means : go with the mouse to 120 120 coordinate and click the left mouse button and release it, then press E and release it. If everytimh works uou will see that when using the switch, notepad gets the focus and you see an E being typed.

If this works you can experiment further with other more useful programs in a cockpit than notepad.

There is one "bug". At my PC this works, but when you change the CID to 1 and then back to 0 again, it does not work anymore. Then you have to reload the .fsb file and it works again.

------------------------------------------
my problem is that I can not send and E (or whatever) to a client. I used :

keyevent:
CID=2
On sequence: WN;K+E;K-E

In Fsclient.ini:

[FSClient]
CID=2

[Notepad]
TopWindowChar="n"
Executable="c:\windows\notepad.exe"
WorkingDirectory="c:\"
Activate=1
Terminate=1
FSBUS_Background=1

I have notepad running on the client and expect to see an E in it but nothing happened.

I do not know if fsuipc-wideserver-wideclient are also necessary for this, but whether I have them running or not makes no difference.


Any help would be much appreciated.
regard


norbert

Erups 24.06.2004 14:49

Norbert thank you very very much!
It was the "cid 0" bug that was preventing me from obtaining any results!!
Thank you again so much!

I have to backup you on the network problem: i always get network 10049 error.

norbert bosch 24.06.2004 15:29

glad to help.

That's the smae error number I am getting.

Hopefully anybody can solve this.

Norbert

npbosch 26.06.2004 00:12

Eventually I succeeded in sending keyevents over the network.

I had to set Network broadcast to the IP adres of the client. ( so I can only reach one client).

The WN;K+E;K-E does not send a E to notepad on the client.
With K+E;K-E it went OK

In fsclient.ini:

[Notepad]
TopWindowChar="n"
Executable="c:\windows\notepad.exe"
WorkingDirectory="c:\"
Activate=1
Terminate=1


norbert


Alle Zeitangaben in WEZ +2. Es ist jetzt 00:38 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag