Results 1 to 5 of 5

Thread: Pass Value from exe to macro and vice versa

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    New Jersey, USA
    Posts
    20

    Question Pass Value from exe to macro and vice versa

    Can someone please help me?

    I need to pass a count from macro to the executable and I have no idea how to do that.

    I have to run this executable multiple times a day. The executable kicks off the macro. I want to pass the count from macro to executable.

    i read somewhere that you can pass data from macro to exec. by using Return() function. but I have no idea how to use this. I couldn't find any online help with regards to this.

    Also is there any way to tally the total count, from all the runs through out the day?



    Any ideas, suggestions, comments, code samples will be appreciated.

    Thanks!

    Just Getting Started!

  2. #2
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253
    Two ways I can immediately think of . . .

    (i) SendMessage

    (ii) if the macro shells the executable set the exe up to read the command line and take the value from there

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    New Jersey, USA
    Posts
    20
    How do I pass data from the macro to the exec?
    Just Getting Started!

  4. #4
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253
    use WM_COPYDATA message. Serialise your data into a property bag, create a byte array from property bag, and then pass a pointer to the array

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    New Jersey, USA
    Posts
    20
    Thank you yrwyddfa
    Just Getting Started!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width