Results 1 to 5 of 5

Thread: help activate a module from a form.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    25

    Post

    Hey,

    This is the situation, I have an app that sits in the systray. When the user left clicks on the icon I want a module to be activated. How do I do it?

    (I already have all of the code for my app! All I need is to know the syntax for activating the module. I keep getting an error saying, "expected variable or procedure not module.")

    Can anyone help me?


    ------------------
    Thanks,
    MiDaWe

  2. #2
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    What do you mean ?? A bas-file ?
    The way to call the module depends on what sub or function you want to triggered inside that module. (just call the sub or type in the function to call it)

    If Your module is a standalone program you should compile it and then launch it with Shell.


  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    25

    Post

    Hey,

    I think that you have a good idea. So, I compiled the module and tried using the shell function to execute it, but as a newbie I am still have a bit of trouble with syntax. Could you please help.

    This is what I have:

    Shell (ActiveSS.exe)

    I use this because both EXE files will be in the same directory(whatever they are installed to.)

    The error I get is that a "variable is not defined."

    Somebody help please.


    ------------------
    Thanks,
    MiDaWe

  4. #4
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    This will launch ActiveSS.exe if it is in the sames dir as the application this code is pasted into

    Code:
    Dim RetVal
    RetVal = Shell(App.path & "\ActiveSS.exe", 1)
    You got your error because you forgot to quote ActiveSS.exe ( like : "ActiveSS.exe"). The compiler therefore thinks it is a variable, wich it is not...

    Have a good one

    [This message has been edited by Inhumanoid (edited 11-26-1999).]

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    25

    Post

    Hey Thanks,

    That works fine.



    ------------------
    Thanks,
    MiDaWe

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