paulE123 Posted October 7, 2012 Share Posted October 7, 2012 hi there, im pretty new to autoit so i need your help so my goal is to make a program that connects to a server and compares a string (a link) with a .txt on the server.... if the string is in the .txt the server should tell the client that the string is already in the .txt. if the string ist not in the .txt the server should add it (to the .txt) and tell the client the string was added. i tried a lot but i have some problems.... mostly with the answer(e.g.:"Yes the link is in the .txt!" "No the link ist not!") form the server to the client thanks for help! paulE Link to comment Share on other sites More sharing options...
water Posted October 7, 2012 Share Posted October 7, 2012 Welcome to AutoIt and the forum! When you talk about "connect to a server" do you talk about a server on a company network (accessible using a share) or a server on the internet (hence you would need FTP, HTTP or a client/server application using TCP/IP)? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
paulE123 Posted October 7, 2012 Author Share Posted October 7, 2012 sry i forgot the most important thing.... im using TCP/IP with a server on the internet Link to comment Share on other sites More sharing options...
water Posted October 7, 2012 Share Posted October 7, 2012 Which services are available on the server (HTTP, FTP ...)? How large is the file we are talking about? Is this file accessed by many users simultaneously? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
paulE123 Posted October 7, 2012 Author Share Posted October 7, 2012 why http, ftp ? i think tcp is best for client to server ? the files are internet-links and yes its used simultaneously Link to comment Share on other sites More sharing options...
water Posted October 7, 2012 Share Posted October 7, 2012 "TCP/IP is the internet layer (IP) that connects local networks, thus establishing internetworking plus the transport layer (TCP) that handles host-to-host communication.The application layer (for example HTTP) contains all protocols for specific data communications services on a process-to-process level."That's how wikipedia describes it.I would say: TCP/IP, HTTP and FTP are members of the Internet protocol suite.If you can install programs on the server then you could write your own client/server application.If you can't you need to work with what the server provides (HTTP, FTP ...) My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
paulE123 Posted October 7, 2012 Author Share Posted October 7, 2012 i want to write my own client/server application with tcp/ip like TCPListen(), TCPAccept(), TCPSend(),....i thought i wrote it in my first post but maybe it was incomprehensible... sorry my english isnt that good.... Link to comment Share on other sites More sharing options...
water Posted October 7, 2012 Share Posted October 7, 2012 When you search the forum for "client server" you'll find a lot of threads. you find the code for a simple client and server script. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
FireFox Posted October 7, 2012 Share Posted October 7, 2012 (edited) Hi paulE123,Then yo go, don't forget the help file too Dam... the water is faster than a fox in fire.Br, FireFox. Edited October 7, 2012 by FireFox Link to comment Share on other sites More sharing options...
paulE123 Posted October 7, 2012 Author Share Posted October 7, 2012 thank you!^^ Link to comment Share on other sites More sharing options...
water Posted October 7, 2012 Share Posted October 7, 2012 @FireFox, I would stick with your examples because the comments you added describe how it works and help a great deal when it comes to modify the scripts. FireFox 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki 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