
Hubert24
Active Members-
Posts
23 -
Joined
-
Last visited
Everything posted by Hubert24
-
TCP socket connected to an existing server
Hubert24 replied to Hubert24's topic in AutoIt General Help and Support
Hi Br, FireFox, I have tried it the way you requested but it doesn't work. On same PC, I can use just the @IPAddress1 instead of 127.0.0.1 and it works perfectly, but if I try to use 2 computers, one with @IPAddress (server) and the other with _GetIP() (client), it doesn't work even if I try @IPAddress1 or _GetIP() on both computers it still does not work. Could you please look at it again? To make myself more clear, I have two computers, one is server and the other is client, how can i send in both directions via TCP sockets? I will be grateful to hear from you. Best regards Hubert -
Learning about TCP servers and clients connection
Hubert24 replied to bogQ's topic in AutoIt Example Scripts
Thanks for the code and tutorial, helpful codes. let me start by saying i am a beginner, so please don't laugh too at my questions! 1. with your codes, I have to run the server and client codes on every PC connected on my network. is there a possibility that I might run the codes for server just once and on the other PCs, i will just have to run but the codes for clients? 2. I wish to have 3 or more Computers, the first computer is my master, where my server runs, the other computers are my client. I wish to send message in both dirrection via TCP as is the case with your codes how am I going to do it? 3. I have tried to open TCP socket via internet but all my attemps have failed. my internet IPaddress is 192.168.1.1 I will be grateful if you find time and provide me some helps. Best regards Hubert -
TCP socket connected to an existing server
Hubert24 replied to Hubert24's topic in AutoIt General Help and Support
Thanks, i will try that next week, is weekend time. I wish you a nice weekend. Best regards -
TCP socket connected to an existing server
Hubert24 replied to Hubert24's topic in AutoIt General Help and Support
Thanks a lot Br, FireFox. Infact you are very helpful. I could have a rest now. once more thank you. Please permit me ask this question, what if i have two computers, one is my server with IP address 192.168.1.1 and the other is my client with ip address 190.16.7.185. how can i send and receive via TCP? will be grateful for your help once again -
TCP socket connected to an existing server
Hubert24 replied to Hubert24's topic in AutoIt General Help and Support
Hi, I have tried that with 127.0.0.1 but i could not still receive my sent message, I believe the problem has something to do with TCPRecv. My message box "MsgBox(0, "Received", "Message received: " &$recv) " is executed but contained no message inside. looking forward for your assistance. regards Hubert24 -
TCP socket connected to an existing server
Hubert24 replied to Hubert24's topic in AutoIt General Help and Support
Hi all, i know it might sought like a joke to some of you, but know i am just a beginner please. Here is my code, i can send but cannot receive anything, by the way bogQ thanks i have gone through your signature. ;CLIENT!!!!!!!! Start SERVER First... dummy!! Local $g_IP = "190.16.7.185" Local $socket Local $recv Local $status Local $ConnectedSocket Local $szIP_Accepted ; Start The TCP Services TCPStartup() ; Attempt to connect to SERVER at its IP and PORT X $socket = TCPConnect($g_IP, 50000) MsgBox (0, "Socket", "Socket: " &$socket) If $socket = -1 Then Exit ;Initialize a variable to represent a connection > -1 While (1) $status = TCPSend($socket, "StringToBinary(ap_ca_version)") If $status = 0 Then MsgBox(0, "ERROR", "Error while sending TCP message: " &@error) Else MsgBox(0, "Sent", "mgn sent is: " &$status) Exit EndIf Do $srcv = TCPRecv($socket, 2048) ; convert from UTF-8 to AutoIt native UTF-16 $recv = BinaryToString($recv, 4) MsgBox(0, "Received", "Message received: " &$recv) Until $recv <> "" ExitLoop WEnd TCPCloseSocket ($socket) TCPShutdown() regards -
TCP socket connected to an existing server
Hubert24 replied to Hubert24's topic in AutoIt General Help and Support
thanks for your reaction, please can you help me search for one basic client/server script, because i can't find any. My server and client are two different computers but connected on the small local network. Thanks for your solution in advance. Regards -
TCP client/server with multi-connect in one script
Hubert24 replied to subzerostig's topic in AutoIt Example Scripts
Thanks for the code, my question is that this works only when the server and client are one single PC. what if the server was another pc? I will be grateful to hear from you Guys. regards -
connect to Sigma Agent from AutoIt
Hubert24 replied to Hubert24's topic in AutoIt General Help and Support
Thanks for your reply. here below is what I have done sofar, I would read the pin form the station (USB adapter), but I don't even know how to start to write the pin on the webpage. on the webpage there are two buttons pin and Push button. I wish you could understand what i mean. #NoTrayIcon #include <GUIConstantsEx.au3> #include <Array.au3> ; Run the WLAN Utility Run("C:Program FilesRealtek11n USB Wireless LAN UtilityRtWLan.exe") ; Wait for the Wlan Utility to become active - it is titled "REALTEK 11n USB Wireless LAN Utility" WinWaitActive("REALTEK 11n USB Wireless LAN Utility") ;case1: going in for PIN ControlClick("REALTEK 11n USB Wireless LAN Utility", "", "[iD:1252]") WinWaitActive("Wi-Fi Protected Setup (WPS)") ;if AP is unknown then click on No button WinWaitActive("Wi-Fi Protected Setup (WPS)", "No") Send("!n") WinWaitActive("Wi-Fi Protected Setup - PIN method") ;delay 2seconds in order to allow the machine to read the pin Sleep( 2000 ) Global $Read = ControlGetText("Wi-Fi Protected Setup - PIN method", "", "[iD:1261]") If $Read Then MsgBox(64, "Success", $Read) Else MsgBox(16, "Error!", "No PIN was detected!!!") EndIf -
Hi all, i am a student and new with AutoIT, I have designed a GUI for connecting my USB adaptar into my webpage, but i don't know how to access my webpage via AutoIt, I am blocked here: how to start the TFTP server. Start the agent (e.g. by telnet, check how to use telnet from AutoIt) Connect the agent from AutoIt. Sigma agent has to support the pin and push button method. Please if someone can be of help I will be grateful. Best regards Hurbert24
-
Hi all, i am currently new with this tool AutoIt. I want to design the GUI for my realtek wireless Adapter. With the help of AutoIt Window Infos, i get this infos under the control tab: Text Pin code: 97115625 (8digits) This pin code is generated by Realtek and it is randomly generated, therefore it varies. My question is how can i read this text i mean this pin code, because I need to auomate my GUI in such a way that I could read this pin code and write the pin code on my webpage inorder to access internet. I will be grateful if someone can help.