-
Posts
138 -
Joined
-
Last visited
-
Days Won
1
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by caleb41610
-
Local $sFile = @ScriptDir & "index.html" Local $nFileReadSize = FileGetSize($sFile) Local $hFile = FileOpen($sFile) Local $nFileBinarySize = BinaryLen( FileRead($hFile) ) FileClose($hFile) The results are: $nFileReadSize == 630 $nFileBinarySize == 622 I'm using this to send large files in chunks, and I cannot load the whole file in to a string with FileRead() due to memory limitations. I'm also sending it via the web using http. So, I must get the actual BinaryLen() for the http header somehow, without loading the whole file. I'm stumped. My current method has been to load the file in chunks at the initialization stage, calculate each step, and just save the number for any file greater than the memory threshhold. Obviously this will scale badly! Any ideas? Thanks!
-
Looking for a way to delete lines. More specifically, the top line(s).
-
That's exactly what I was looking for. Not sure why I couldn't find it. Thank you very much for the link, it's great appreciated. I knew I seen what I needed already, so no need to create the wheel twice. Your post is also appreciated though.
-
I seen a post about taking in a website url and spitting out an image of the page, without actually popping up a browser. I can't seem to find the link now.
-
This is possible. I wish I had the code infront of me, but I have done this in the past. I'll lyk if I can find it.
-
Thanks Hope it helped And hope it helps others as well, I decided to drop this since I no long have a need for it and I'm moving on to c++ edit: Added the latest *updates* it is unfinished. but it has some nice features. Includes remote screenshot and the start of a chatbox. ClientExample.au3 Server.au3
-
Deleted post Probably won't continue this program. I hope the sources helps someone.
-
Learning about TCP servers and clients connection
caleb41610 replied to bogQ's topic in AutoIt Example Scripts
You must also open the port in your firewall. -
[SOLVED] For...Next Question
caleb41610 replied to johnmcloud's topic in AutoIt General Help and Support
Create an array with the desired strings, then loop through with $array[$i] as the data in the message box. -
Learning about TCP servers and clients connection
caleb41610 replied to bogQ's topic in AutoIt Example Scripts
that's basically how it works. i just use TCPListen("0.0.0.0", 8080) and it automatically listens on your default adaptor. no need to even get lan/wan ip on the server. on the router, forward 8080 to your local server ip. on the client, connect to the servers WAN. or use @IPAddress1 instead of 0.0.0.0. either should work fine. edit: 0.0.0.0 makes it listen on "any available" ip, so it will work with multiple adaptoras, i believe. -
Currently looking at this one. http://www.riemers.net/eng/Tutorials/DirectX/C++/series1.php Does anyone have any similar suggested websites to visit?
-
_SelfUpdate() - Update the running executable.
caleb41610 replied to guinness's topic in AutoIt Example Scripts
guinness, Thanks for posting this. It has helped very much! -
One method may be... Have a terminal open on the web server, and use "tail -f" on the apache log. Have an autoit script search for strings with ConsoleRead() When you click buttons on the website, autoit will see it and then call a function.
-
BogQ explains it very well here, in post #6:
-
Get number of pending connections
caleb41610 replied to caleb41610's topic in AutoIt General Help and Support
Thanks for the link, I'll be checking it out tonight. -
* Completely rewrote the script 11/04/12 * Greatly optimized speed. 1000 connections in 4.02 seconds on my machine. * Added a vastly configurable packet system. * GUI changed slightly. (Still a minimalist example GUI) * Raw message packet example added * PNG image transfer packet example added * Username / Computername listview information packet example added. * WM_NOTIFY menu removed Let me know what you think! Most of the script is commented but I may be more thorough with the next update. I have not added error checking to the packet system I made. I am thinking about adding some type of checksum/hash section to the packets and dump packets that are invalid and notify the connecting client that the server did not receive what they sent. I'm working a lot lately, but I found some time to update this. I hope it helps someone!
-
Anything that will post on a website, such as a forum, is generally frowned upon since many will create similar programs for spamming.
-
Considering no one knows what you are talking about, you should try to accomplish this yourself and post the code you have when you hit errors.
-
Replacing a string in an ini/txt file
caleb41610 replied to xilace's topic in AutoIt General Help and Support
If ResX is the only thing you are trying to replace you should be able to change only that key with IniWrite()... can you post the ini? and post what code you used that "erases the other 18" ? -
Is there a way to check the number of pending connections from TCPListen()?
-
Replacing a string in an ini/txt file
caleb41610 replied to xilace's topic in AutoIt General Help and Support
IniRead() StringReplace() IniWrite() I didn't read your entire post at first. just use string replace on the old data and re-write it -
Post what you have so far
-
Replacing a string in an ini/txt file
caleb41610 replied to xilace's topic in AutoIt General Help and Support
Look at IniRead() and IniWrite() It should immediately answer all your questions.