Jump to content

AhmedV

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

AhmedV's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Aha i have NAT, my ip address is 192.168.1.x but as you know this is the local ip not the real public IP, but when i get a static ip address my public ip wont change so client script will be set up to the static ip. And we get back to the main question, how to make the Server accept the clients request and how to send them commands or receive?
  2. This isnt what im looking for as it works only on local area networks and i want my server work online and clients connect to it and send/receive commands to/from clients 1. What is NAT? My knowledge about IPs and PORTs is not verywell If you mean about the static ip yes i would get one. 2. Do i need to put exceptions in win FW and router to make it work?
  3. Hello, first: I'm "Autoit Watcher/Viewer" i was watching this forum and it's posts with old acc i don't remember it's email/user whatever, i wanna say: "hey Melba23 you really helped most of members here include me and i just wanted to tell you god save you. ^^" i want to make a little private chat/connection between me and my friends, And control the chat server whether shutting-down it or open it, but the problem ocurrs when i try to recieve the connections. My question is : The TCPListen() creates a socket to listen to an specific "IP Connection", So do i need to type in each friends' ip to can connect to my chat? Or what should i do to make everyone of them connect to me easly without needing to create single script for every friend to join me.E.g. ;The server script : Global $ip = "0.0.0.0", $port = 12345 Func ServerSided()     While 1         $s_listen = TCPListen($ip, $port) ; Here i want it to Listen to any incoming "IP Connection" from my Friends/Script not listen only from the ip typed ! because i don't want to write new ip everytime their ip changes.         TCPAccept($s_listen)         If GUIGetMsg() = $GUI_EVENT_CLOSE Then Return False         Local $recvDt = TCPRecv($s_listen, 2048) ; recieve data from anyone connected to server. not a specific IP         _GUICtrlEdit_InsertText($edit, "msg from: " & $ip & @CRLF & $recvDt)         TCPCloseSocket($s_listen)         Sleep(10)     WEnd ; here the IP/Friend who sent the data. in this script the ip will be same everytime because the client and server are on the same pc.  huhh :S EndFunc   ;==>ServerSided ;The client script : $s_connect = TCPConnect($ip, $port) ; here i need friends/clients connect to the "SERVER IP" not their local ip !! and check whether server online or not Those were a shorten scripts just to explain my needs, I hope i explained well what i really need to do and sorry for my english. ^ ^ any helps would be appreciated.
  4. Is it ok to use UDF with built-in Commands?
  5. I do using it, but how to Enable the menu item when i try to select an ListViewItem ?? Sorry i just can't write the full script now as i post from my phone.
  6. Hello, how can i disable the GuiCtrlCreateMenuItem until it selects an item in the ListView Here, how to keep ($lvitem) disabled/un-clickable until it select the (test) or any item in the ListView? GuiCreate("") $Listv=guictrlcreatelistview("test|testt|testtt",8,8,50,50,-1) $menu=Guictrlcreatecontextmenu($listv) $lvitem=guictrlcreatemenuitem("test", $menu) Guictrlcreatelistviewitem("item1|bla|bla", $Listv) Any help would be appreciated.
  7. Thank you mikell solved it. ^^ Thank you, That what i was looking for, but i really need to understand the StringRegExp line. Why you inserted " (\S+) and \s+ " 4 times? Can you explain why and also what does each of them do? I know about \N that reads every char except newline.
  8. The file contains messages like above Date time user1 user2 msg I need to read all messages with all information for each message and display them in array like: Date: Time From:user1 To:user2 "Msg"
  9. Hello, I have a text file that contains a messages between me and my friend.. What i want to do is to Read the contents in the file as the following: Date Time From To Msg For example: 27/4/2016 8:15 user1 user2 Hello I want to read every message in the file and it's date,time,from and to. And do a loop to display them into an array. I tried with StringRegExp but i failed. Is there anyway to do it?
×
×
  • Create New...