|
-
Nov 25th, 1999, 08:05 PM
#1
Thread Starter
Junior Member
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
-
Nov 25th, 1999, 08:16 PM
#2
Hyperactive Member
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.
-
Nov 25th, 1999, 09:18 PM
#3
Thread Starter
Junior Member
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
-
Nov 25th, 1999, 09:27 PM
#4
Hyperactive Member
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).]
-
Nov 25th, 1999, 09:38 PM
#5
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|