[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?



PureBytes Links

Trading Reference Links

Hello,

I am always amused by the fact that people are so afraid of things that are pretty easy in fact provided that one just gives it a try.

If one knows how to write JScript, it is perfectly capable of writing ActiveX or even DLL plugin. 

Writing ActiveX is covered in detail step-by-step procedure in the User's Guide and it does not exceed capabilities of anyone who can write JScript scripts.
http://www.amibroker.com/guide/a_aflcom.html  ("Using external COM/ActiveX objects in AFL") and it is definitely easier than flying esp. by flapping your arms :-)


Best regards,
Tomasz Janeczko
amibroker.com
  ----- Original Message ----- 
  From: dingo 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, August 06, 2006 6:47 PM
  Subject: RE: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?


  I was trying to convey the message that if you don't know how to write a dll or an ActiveX then you might as well try to fly by flapping your arms.  I guess my attempt failed....  

  d



----------------------------------------------------------------------------
    From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Tomasz Janeczko
    Sent: Sunday, August 06, 2006 12:37 PM
    To: amibroker@xxxxxxxxxxxxxxx
    Subject: Re: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?


    My answer was not supposed to be funny. I pointed out real possibilities/solutions that are far better/faster/more robust than sending keystrokes.

    Best regards,
    Tomasz Janeczko
    amibroker.com
      ----- Original Message ----- 
      From: dingo 
      To: amibroker@xxxxxxxxxxxxxxx 
      Sent: Sunday, August 06, 2006 4:48 PM
      Subject: RE: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?


      you could also fly if you flap your arms fast enough..

      d



------------------------------------------------------------------------
        From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Tomasz Janeczko
        Sent: Sunday, August 06, 2006 10:46 AM
        To: amibroker@xxxxxxxxxxxxxxx
        Subject: Re: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?


        Or... you can write a DLL plugin.
        Or... write an Active X
        Or... store your "dynamic" values in database and access them via ODBC plugin 

        Best regards,
        Tomasz Janeczko
        amibroker.com
          ----- Original Message ----- 
          From: dingo 
          To: amibroker@xxxxxxxxxxxxxxx 
          Sent: Sunday, August 06, 2006 4:37 PM
          Subject: RE: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?


          The way you describe is not that bad actually. 

          A more efficient way would be to use "AutoIT"  www.autoit.com  to click the buttons for you and enter the text.  It has an activeX component as well as a dll that you could use within your script or you could call an exe that it can build.

          d



--------------------------------------------------------------------
            From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Mark H
            Sent: Sunday, August 06, 2006 12:05 AM
            To: amibroker@xxxxxxxxxxxxxxx
            Subject: Re: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?


            Thanks dingo:

            I am wondering what's the best way to pass parameters to a formula dynamically from JScript.
            A way to do it is through a file: the script writes some dynamic values to a file and the AFL formula will reads and parses the file.
            However, this would be slow and cumbersome. 
            Any suggestion will be appreciated,

            - Mark

              ----- Original Message ----- 
              From: dingo 
              To: amibroker@xxxxxxxxxxxxxxx 
              Sent: Saturday, August 05, 2006 11:04 PM
              Subject: RE: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?



              No.

              d



----------------------------------------------------------------
                From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Mark H
                Sent: Saturday, August 05, 2006 11:01 PM
                To: amibroker@xxxxxxxxxxxxxxx
                Subject: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?


                I am writing an automation script but couldn't find a way to set values for Param/ParamStr/ParamDate etc. I can only use their default values.
                Is there a way to set their values in JScript?
                Thanks,

                - Mark


                --
                No virus found in this incoming message.
                Checked by AVG Free Edition.
                Version: 7.1.394 / Virus Database: 268.10.7/409 - Release Date: 8/4/2006





            --
            No virus found in this incoming message.
            Checked by AVG Free Edition.
            Version: 7.1.394 / Virus Database: 268.10.7/410 - Release Date: 8/5/2006




        --
        No virus found in this incoming message.
        Checked by AVG Free Edition.
        Version: 7.1.394 / Virus Database: 268.10.7/410 - Release Date: 8/5/2006




    --
    No virus found in this incoming message.
    Checked by AVG Free Edition.
    Version: 7.1.394 / Virus Database: 268.10.7/410 - Release Date: 8/5/2006