Jump to content

Taek

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Taek

  1. With cURL in linux you are able to poll a website for it's html output content, so anything displayed in the html will get pulled down if the UDF has the right functions for it.
  2. I'm not sure why you're using TCP functions at all. i mean i can understand that if the port is taken than it can't do anything if a second process runs but at the sametime that looks abit more complicated to be able to implement into something that's already running without this tcp deal. however i'm not saying it doesn't work.....
  3. I am attempting to do something that will help further my downloader project for a larger WebSite File Sharing Project. What i need is is away to check and see if there is a Instance of the application running (ie downloader.exe) if so pass the CmdLine[1] variable to the running proccess. Now in the running proccess is should wait for a CmdLine[1] to hit it's running process and do things from there. I am currently working on an example of what i want it to to, but i'm stuck at trying to check if there is a running process. Sample Script #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt('MustDeclareVars', 1) Example1() ; example 1 Func Example1() Local $msg Local $msgoutput GUICreate("My GUI") ; will create a dialog box that when displayed is centered $msgoutput = GUICtrlCreateEdit( "" , 5, 5, 390, 310, 0x0840 + $WS_VSCROLL) GUISetState(@SW_SHOW) ; will display an empty dialog box GUICtrlSetData($msgoutput, $CmdLine[0], 1) ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() EndFunc ;==>Example1 Another note. The information passed from CmdLine[1] will be displayed in the $msgoutput portion of the GUI (this is to make sure it actually works.) Any help would be appreciated and added to the Developer's Credit page on my project website
  4. Thanks Thanubis you're gona get credit for helping me out!.
  5. [HKEY_CLASSES_ROOT\Downloader] "URL Protocol"="" @="URL:cbin Protocol" [HKEY_CLASSES_ROOT\Downloader\shell] [HKEY_CLASSES_ROOT\Downloader\shell\open] [HKEY_CLASSES_ROOT\Downloader\shell\open\command] @="C:\\Users\\Taek\\Desktop\\downloader.au3 %1" This registry Class from ventrilo, i would assume that the %1 is the url after their custom protocol deal "ventrilo://blah:2334/blah" is there anyway to get autoit to beable to use this value at all? this is for an application for a file sharing website i and my team are developing. anyone able to help will get credit.
  6. I know this is a fairly old topic but i have a a request, is there anyway to force this to extract whatever .ext the person uses with the zip file.. #include <Zip.au3> $pkg = @ScriptDir & "FileName" _Zip_UnzipAll($pkg & ".vts", @ScriptDir) when I try this I just get a error in the SciTE editor >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\Administrator\Desktop\testing\data\unpack.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams +>15:18:04 Starting AutoIt3Wrapper v.1.10.1.14 Environment(Language:0409 Keyboard:00000409 OS:WIN_XP/Service Pack 3 CPU:X86 ANSI) >Running AU3Check (1.54.14.0) from:C:\Program Files\AutoIt3 +>15:18:04 AU3Check ended.rc:0 >Running:(3.3.0.0):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Administrator\Desktop\testing\data\unpack.au3" C:\Program Files\AutoIt3\Include\Zip.au3 (211) : ==> The requested action with this object has failed.: $oApp.Namespace($hDestPath).CopyHere($oApp.Namespace($hZipFile).Items) $oApp.Namespace($hDestPath).CopyHere($oApp.Namespace($hZipFile)^ ERROR ->15:18:05 AutoIT3.exe ended.rc:1 +>15:18:06 AutoIt3Wrapper Finished >Exit code: 1 Time: 2.322
  7. Your Example Doesn't seem to work at all. I've tried several things but couldnt get it to work.
  8. Okay let me clarify myself a little bit better. I want to display a html file that is compiled into the binary and display it through a GUI. Partial Example Code #include "somefile.html" Dim $gui = GUICreate("SomeName", "WidthValue", "HeightValue") Dim $IE = _IECreateEmbedded() GUICtrlCreateObj($IE, 0, 0, "WidthValue", "HeightValue") _IENavigate($IE, "somefile.html") GUISetState() how can i get this Embeded IE to display the somefile.html that is compiled/included into the exe?
  9. I'm really new to autoit, I mean i've only had it for a few hours. i'm attempting to make an application for some of my clients to retrieve data from the internet, now i have a connection ping test to make sure they have internet access, if the result from that ping is negative display some offline information. Is there some possiblity of loading an internal file from the apps exe or not?. here's my code below - anyhelp would be apreciated. #NoTrayIcon #include <GUIConstantsEx.au3> #include <IE.au3> #Region #EndRegion ; Main Window Variables Dim $WindowName = "VT Computer Services :: Online Mode" Dim $WindowFail = "VT Computer Services :: Offline Mode" Dim $width = "900" Dim $height = "600" Dim $HomePage = "http://www.some-domain.net/" Dim $iCon = "VTCServices.ico" ; ~~~~~~~~~~~~~~~~~~~~ $ping = Ping("google.com", 1000) If $ping = 0 then ; GUI Dim $gui = GUICreate($WindowName, $width, $height) Dim $IE = _IECreateEmbedded() GUICtrlCreateObj($IE, 0, 0, $width, $height) _IENavigate($IE, "index.html");Section I Would Like To Have Load Internal HTML File from Self EXE. GUISetState() While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd Exit Else Dim $gui = GUICreate($WindowName, $width, $height) Dim $IE = _IECreateEmbedded() GUICtrlCreateObj($IE, 0, 0, $width, $height) _IENavigate($IE, $HomePage) GUISetState() EndIf While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd
×
×
  • Create New...