Gayfish Posted May 2, 2009 Share Posted May 2, 2009 Can u help?How to send keypress to other computers program?My solution: via LAN you send information to certain TXT-file on other computer,And there is another AutoIt program running and reading that file.Is that stupid or even possible? ("this file is used by another program".. etc?)Thanks.Noob with bad english Link to comment Share on other sites More sharing options...
Yashied Posted May 2, 2009 Share Posted May 2, 2009 Can u help?How to send keypress to other computers program?My solution: via LAN you send information to certain TXT-file on other computer,And there is another AutoIt program running and reading that file.Is that stupid or even possible? ("this file is used by another program".. etc?)Thanks.Noob with bad englishWithout a special receiver-program on the client computer this can not be done. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Gayfish Posted May 2, 2009 Author Share Posted May 2, 2009 Without a special receiver-program on the client computer this can not be done.But.. is that possible, that other program uses certain txt-file to import information,and other just reading it at the same time? (without error "used by other prog")If that is possible, then that can work via LAN. Link to comment Share on other sites More sharing options...
Yashied Posted May 2, 2009 Share Posted May 2, 2009 But.. is that possible, that other program uses certain txt-file to import information,and other just reading it at the same time? (without error "used by other prog")If that is possible, then that can work via LAN.Send() function will not work on the network. You need to write scripts for the server and client. Here's to you to start: pipe, mailslot. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Gayfish Posted May 2, 2009 Author Share Posted May 2, 2009 Send() function will not work on the network. You need to write scripts for the server and client. Here's to you to start: pipe, mailslot. sorry i expressed myself badly. I mean something like this:1. read keypress.2. write that in TXT-file (ASCII for example).3. read that with another (auto-it)programis that possible without error: used by another program? Link to comment Share on other sites More sharing options...
Coolw Posted May 2, 2009 Share Posted May 2, 2009 (edited) Try thishttp://www.autoitscript.com/forum/index.ph...4325&hl=tcpTips:When you send the keystrokes doServer:_TCP_Server_Broadcast("keypress" & $KeyPressed);IE they hit "A" so keypressA gets sent to clientClient:Func Received() If StringLeft($sReceived, 8) = "keypress" Then;If the received data starts with "keypress" then it should receive something $getpressed = StringMid($sReceived, 9);Get the key pressed EndIf EndFuncCode has not been tested at all, it's just a simple idea.Those are what I am using for a chat room I am making, and it seems to work out really well. Edited May 2, 2009 by Coolw My ProgramsMy WIP'sSteam Server Restarter Link to comment Share on other sites More sharing options...
Gayfish Posted May 2, 2009 Author Share Posted May 2, 2009 Try this http://www.autoitscript.com/forum/index.ph...4325&hl=tcp Tips: When you send the keystrokes do Server: _TCP_Server_Broadcast("keypress" & $KeyPressed);IE they hit "A" so keypressA gets sent to client Client: Func Received() If StringLeft($sReceived, 8) = "keypress" Then;If the received data starts with "keypress" then it should receive something $getpressed = StringMid($sReceived, 9);Get the key pressed EndIf EndFunc Code has not been tested at all, it's just a simple idea. Those are what I am using for a chat room I am making, and it seems to work out really well.looks interesting. thanks. I'm trying to use two computers with one keyboard (and mouse) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now