move mouse cursor when some char received


watch the command line window and move mouse cursor when some char received

this is the script flow:

the cursor should move like a mouse everyware on the screen not on a specific application .

the charts are 4 numbers let's say - 1 to 4.

there is a telnet session between the XP machine and another pc.

The Xp machine is the server side this is writen using tcl on the xp machine :

roc Echo_Server {port} {

set s [socket -server EchoAccept $port]

vwait forever


proc EchoAccept {sock addr port} {

global echo

puts "Accept $sock from $addr port $port"

set echo(addr,$sock) [list $addr $port]

fconfigure $sock -buffering line

fileevent $sock readable [list Echo $sock]


# Echo --

# This procedure is called when the server

# can read data from the client


# Arguments:

# sock The socket connection to the client

proc Echo {sock} {

global echo

# Check end of file or abnormal connection drop,

# then echo data back to the client.

if {[eof $sock] || [catch {gets $sock line}]} {

close $sock

puts "Close $echo(addr,$sock)"

unset echo(addr,$sock)

} else {

puts $sock $line

puts "what the $line"




so for example:

if the sign 5 will be sent through the telnet session the cursor will move right

if the sign 6 will be sent the cursor will move left

echo server needed to retrieve the charts from the remote machine

it is possible to use other then tcl for this

Taidot: .NET, C-ohjelmointi

Näytä lisää: move mouse command line, linux move mouse cursor command line, what are some, pc connection, everyware global, move mouse command line linux, move mouse pointer command line, linux command line move mouse, mouse pointers, some, server move, ROC, ProC, move, flow charts, eof, drop catch, cursor, client socket server, tcl read file, net sign file, catch can, echo sign, read file specific line, file read tcl

Tietoa työnantajasta:
( 0 arvostelua ) san jose, United States

Projektin tunnus: #436988