Jump to content

Paradox

Active Members
  • Posts

    89
  • Joined

  • Last visited

About Paradox

  • Birthday 09/07/1978

Profile Information

  • Location
    Clearwater, FL

Paradox's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Thanks dabus (and all) for your help on this. I'm taking a look at that wget now, and from what I saw in that forum, it looks like this would be ideal for my script. Thanks again!
  2. Oooooooh, that's a good idea too
  3. Well..... It's not looking good so far... Here's my code.... #include <guiconstants.au3> guicreate("FTP Test",400,250,-1,-1,-1,$WS_EX_TOPMOST) guisetbkcolor(0xffffff) Guisetfont(12, 400,0 ,"Courier") guictrlcreatelabel("Testing FTP download functions.", 2, 10) $status = guictrlcreatelabel("Current Status: ", 2, 45) $status2 = guictrlcreatelabel(" ", 2, 60) $status3 = guictrlcreatelabel(" ", 2, 77) $status4 = guictrlcreatelabel(" ", 2, 92) guisetstate(@sw_show) $file="ftp://xxxxx:xxxxxx@xxxxxxxxx.com/<filename>.exe" ;Sorry, commented out. It's not my server $ftpsize = inetgetsize($file) guictrlsetdata($status2, "File Size: " & $ftpsize & " bytes.") guictrlsetdata($status3, "Transfered: ") inetget($file, "xxxxxxxxxx.exe", 0, 1) while @InetGetActive guictrlsetdata($status4, @InetGetBytesRead) sleep(250) if @inetgetbytesread > ($ftpsize/2) Then inetget("abort") ExitLoop EndIf wend guictrlsetdata($status3, "Aborting download to attempt retry...") sleep(5000) guictrlsetdata($status3, "Attemping download retry...") inetget($file, "xxxxxxxxxx.exe", 0, 1) guictrlsetdata($status3, "Transferred:") while @InetGetActive guictrlsetdata($status4, @InetGetBytesRead) sleep(250) wend Exit First I left the script to do it's thing... It downloads, then it aborts, then it downloads again. The problem is that when it aborts, i think it's closing the file. So, to test this theory, i stopped the script while it was downloading and then restarted... Same thing, still 0's out the file when the download starts. This means 1 of 2 things: 1. AutoIT's command for downloading from FTP doesn't support resuming a file transfer. or 2. FileZilla Server doesn't support resuming a download to clients. I can research only one of these (#2), but I'm pretty certain that it's going to wind up being a combined issue.
  4. Hey all... Been a while... I'm invoking the inetget command to start a download of a file. It will begin transfer, and normally doesn't have an issue. I want to put some kind of error handling into my script so that if the file transfer ends prematurely, or if @inetgetbytesread=-1 I want to retry the download from where it left off. This is what I have so far: inetget($ftp, $rarfilename , 1, 1) ; Begin downloading file from main server. guictrlsetdata($status3, "Total Size: " & $ftpsize) ;Display file size as read by a $ftpsize=inetgetsize($ftp) earlier. guictrlsetdata($status4, "Total Transferred : " & @InetGetBytesRead) ;Display amount read thus far. While @InetGetActive ; While downloading is still active. Select case @inetgetbytesread <> -1 guictrlsetdata($status4, "Total Transferred : " & @InetGetBytesRead) Sleep(500) case @inetgetbytesread = -1 guictrlsetdata($status4, "Error downloading. Retrying...") _filewritelog($logfile, "Error downloading file " & $rarfilename & " from main server. Retrying download.") ;Can I just reuse the "inetget($ftp, $rarfilename , 1, 1)" from earlier to restart the download? ;If so, will it pick up where it left off? I'm using FileZilla as my FTP server, is continuing a failed ;download something that has to be setup on there? I'm not really sure about that one which is ;why I ask. Endselect Wend As always, any help would be greatly appreciated.
  5. **UPDATE** Figured it out... Went to http://forum.ultravnc.info/viewtopic.php?t=4606 (check out Posts #3 and 4). Once the consultant installs UltraVNC, just run the vncviewer.exe as such: "vncviewer.exe -listen <port>" where <port> is whatever port you've specified in the helpdesk.txt file. I am so smart! S M R T hehehehe
  6. Hey BidDod... This is totally not an AutoIT question, and would probably have been better if I just emailed it to you, but I figured for the sake of the posting, whatever info you have would probably help others out in the end as well. So I've gone through and I've created my executable for that SC UltraVNC. As far as I can tell, I set it up correctly. I'm just doing some inhouse testing with some of my coworkers, but for the life of me, I can't figure out how the hell the damn thing is supposed to work once you choose your connection type. It just minimizes to the system tray and goes through it's 5 minute connection trial... I've installed the real UltraVNC viewer (as well as some other VNC software packages) to test it, but I've yet to be able to make an actual connection. Is there something I'm missing on the consultant side? Some little secret or other program that's supposed to be running on my end that the customer is trying to connect to? help me help me!!
  7. Well, I downloaded all of the files and what not to check it out, but I think that there is an issue with the SysTray_UDF.AU3 file. When I run your program I get this returned: Line 74 (File "blah blah\systray_udf.au3"): If $info[$i]=HWnd($var[$i][1]) Then If $info[$i]=^ ERROR Error: Unknown Function Name Just figured I'd bring it to someones attention. Oh, and thanks for the code... I'm just trying to figure out how to customize that UltravncSC for my company and then i'll see if I can figure something out with the code...
  8. Ya know, if ya wanted to upload it or something so I could take a look at it, that would be great. I'm taking a look at the website for that stuff right now, but man does it look bizarre to setup.
  9. I know I have seen a post from a member that is trying to use MSTSC to start a remote desktop connection with another computer. That's an easy one, but here's something a little more complicated that MSTSC. I haven't even started to write the program only because I have NO CLUE where to even begin with this, so this is purely hypothetical. I want to accomplish something similar to what the Windows MSTSC application can do. Here's the thing though; my company provides support for customers that don't always run Windows XP (where the MSTSC application is a native program), and copying that specific program to a machine that doesn't have it installed (such as Windows 2000) doesn't work either; it's an add-on that has to be installed from the windows website. Does anyone have any kind of an idea about how to go about writing a program that I, as a technical support consultant, would be able to have a customer run and would allow me to remote control their computer (giving me full access to their machines; video, mouse, keyboard, etc.) that would have fast response time to the controls that I'm trying to utilize. If you're unsure of what I'm talking about, perhaps you've heard of a company called WebEx or maybe LogMeIn? Basically I just want to have a MUCH simpler version of what they are implementing but have it be an in-house application so that it could be modified and added onto as needed. Any takers? Any ideas? Any guidance given would be greatly appreciated! Thanks!
  10. Dur, I'm a dumbass... here, updated, finished, and correct! ; HexVert: ; Convert typed conversation to hex and back for encryption. ; ; ---------------------------------------------------------------------------- #include <GUIConstants.au3> #include <string.au3> $extract=@scriptdir & "\ignite.jpg" fileinstall("E:\Projects\HexVert\ignite.jpg", $extract, 1) guicreate("HexVert by ParaDoX v1.0", 640, 480) guisetfont(11, 450) guictrlcreatepic("ignite.jpg", 0, 0, 640, 480) GuiCtrlSetState(-1,$GUI_DISABLE) $text=guictrlcreateinput("", 90, 10, 530, 200, $ES_MULTILINE) $hex=guictrlcreateinput("", 90, 240, 530, 200, $ES_MULTILINE) guictrlcreatelabel("Txt :", 10, 10, 55, 17) guictrlcreatelabel("Hex :", 10, 240, 55, 17) $txt2hex=guictrlcreatebutton("txt2hex", 10, 30, 60, 20) $hex2txt=guictrlcreatebutton("hex2txt", 10, 260, 60, 20) guisetstate(@SW_SHOW) while 1 $msg = guigetmsg() select case $msg = $gui_event_close filedelete("ignite.jpg") exit case $msg = $txt2hex $convert=GUICtrlRead($text) $hexvert=_stringToHex($convert) guictrlsetdata($hex, $hexvert) case $msg = $hex2txt $convert=GUICtrlRead($hex) $hexvert=_hextostring($convert) guictrlsetdata($text, $hexvert) endselect wend exit get the image above or supply your own if you want. Have phun!
  11. Update: If I take out the fileinstall for the image, it works perfectly. I'd LOVE to have the image work... Only things I need to do now is wordwrapping, and vertical scrolling.
  12. what i'm wanting to do with it is have a simple little conversation to binary convertor... you know, type in your message, click a button, viola! it's in binary.... and then at the same point in time have it so that you can paste in the binary code and convert it back to text. Make sense now?
  13. Sorry... 001100100 is the preferred export per character
×
×
  • Create New...