Jump to content

bggashnik

Active Members
  • Posts

    22
  • Joined

  • Last visited

bggashnik's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. No one has an idea? muttley
  2. Thank you but I know how to do it for IE.For my reasons I wanna make it work for Firefox.Anybody who isn't lazy and could do that? muttley
  3. I'm trying to get the statusbar text from a Firefox page.Does it matter which page Firefox has opened?
  4. Ok...I'm trying to get the text from the statusbar in Mozilla Firefox,but StatusbarGetText function doesnt work for Firefox and when i got the handle of the status bar I tried this code and got nothing.Can you help me? #Include <GuiStatusBar.au3> MsgBox(0,"Information",_GUICtrlStatusBar_GetText("0x026C0276", 1))
  5. So,you're saying that if someone else run this program on his computer this will work?
  6. Well,lets say that my internet operator has a LAN net and includes every user in it.Out LAN IPs are like "10.21.4.12","10.21.5.21" and things like that.If I set my LAN IP as a server everybody except the users in my internet operator will not be able to connect to this server.
  7. Well,i'm not using router.My point is to write an internet messanger,not LAN.
  8. Yes,it's true that I tried running client an server script on the same pc and there were no problem.Well,about @IPAddress2.There's difference between my IP address which is pointed from internet sites and @IPAddress2.When I set my IP address pointed from internet sites as a server or as a client There's a problem with the connection.But When I use @IPAddress2 as a server and client on my pc there's nmo problem.What do you suggest?
  9. I really can't find where the problem is.When I test this script with "127.0.0.1" ip both on server and client scripts everything is perfect.The same is with local IPs(my LAN IP both on server and client and LAN IP client and different LAN IP server and reversed).The problem is when I try using @IPAddress2.The client doesn't receive messages so the server can't send to the client.And when I set the server with my @IPAddress2 and the client with another @IPAddress2 there's problem with connecting to the server.Where do you think the problem is?I don't think it's normal everything to be perfect with LAN IPs and painful with Net IPs. Here's the client code: #include<GuiConstants.au3> Global $MainSocket Local $MaxLength = 512 Local $Port = 1000; Port Number Local $Server = Here I set the @IPAddress2 of the server GuiCreate("Sample GUI", 350, 200) GuiSetIcon(@SystemDir & "\mspaint.exe", 0) $edit = GUICtrlCreateEdit("",10,10,300,120) $sendbtn = GUICtrlCreateButton("Send",150,150,45,20) GUISetState(@SW_SHOW) TCPStartup() $MainSocket = TCPConnect($Server, $Port) If $MainSocket = -1 Then Exit MsgBox(16, "Error", "Unable to connect.") $msg=GUIGetMsg() While $msg<>$GUI_EVENT_CLOSE $Data = TCPRecv($MainSocket, $MaxLength) If $Data = "~bye" Then MsgBox(16, "Session Ended", "Connection Terminated.") Exit ElseIf $Data <> "" Then GUICtrlSetData($edit,$Data) EndIf If $msg=$sendbtn Then TCPSend($MainSocket, GUICtrlRead($edit)) $msg=GUIGetMsg() WEnd Func OnAutoItExit() If $MainSocket <> - 1 Then TCPSend($MainSocket, "~bye") TCPCloseSocket($MainSocket) EndIf TCPShutdown() EndFunc;==>OnAutoItExit And here's the server script: #include<GuiConstants.au3> Global $MainSocket = -1 Global $ConnectedSocket = -1 Local $MaxConnection = 5; Maximum Amount Of Concurrent Connections Local $MaxLength = 512; Maximum Length Of String Local $Port = 1000; Port Number Local $Server = @IPAddress2; Server IpAddress GuiCreate("Sample GUI", 350, 200) GuiSetIcon(@SystemDir & "\mspaint.exe", 0) $edit = GUICtrlCreateEdit("",10,10,300,120) $sendbtn = GUICtrlCreateButton("Send",150,150,45,20) GUISetState(@SW_SHOW) TCPStartup() $MainSocket = TCPListen($Server, $Port) If $MainSocket = -1 Then Exit MsgBox(16, "Error", "Unable to intialize socket.") $msg=GUIGetMsg() While $msg <> $GUI_EVENT_CLOSE $Data = TCPRecv($ConnectedSocket, $MaxLength) If $Data = "~bye" Then MsgBox(16, "Session Ended", "Connection Terminated.") Exit ElseIf $Data <> "" Then GUICtrlSetData($edit,$Data) EndIf If $ConnectedSocket = -1 Then $ConnectedSocket = TCPAccept($MainSocket) If $msg=$sendbtn Then TCPSend($ConnectedSocket, GUICtrlRead($edit)) $msg=GUIGetMsg() WEnd Func OnAutoItExit() If $ConnectedSocket <> - 1 Then TCPSend($ConnectedSocket, "~bye") TCPCloseSocket($ConnectedSocket) EndIf If $MainSocket <> -1 Then TCPCloseSocket($MainSocket) TCPShutdown() EndFunc;==>OnAutoItExit Please,I need your help!
  10. I test it one more time and the program uploaded it on the ftp server and finished its job but the file,uploaded on the server is empty.
  11. O.K.Thanks.I see it's uploading now but the script runs forever and when i decided to stop it the text file,uploaded in the server was empty.When the script finishes the upload?
  12. Well, it doesn't work.Could you tell me what is $Open for and probably how can i make it work?
  13. Ok.I read about FTP.au3 and I decided to use it so I can upload one text file on my FTP server.Some people said that it works and I also thin so but the problem is that isn't very well explained.Well, here's now my code: #include <FTP.au3> $server = "ftp.byethost13.com" $username = "b13_1427267" $pass = "this is my password" $Open = _FTPOpen("ftp.byethost13.com")[color="#008000"][b];I'm not sure what to write here[/b][/color] $Conn = _FTPConnect($Open, $server, $username, $pass) $Ftpp = _FtpPutFile($Conn, "blabla.txt", "/htdocs/upload/blabla.txt") $Ftpc = _FTPClose($Open) The file I wanna upload is blabla.txt and I wanna upload it in /htdocs/upload folder.I changed the permissions of this folder so I can upload this file.Could you help me, please!
  14. I realise that HotKeySet function is valid for all other windows while the script is running.When I run the program and just enter an url in the address bar of my browser the HotKeySet function for ENTER button activates in the script.How can i avoid this?
×
×
  • Create New...