Search code examples
erlangerl

erl VM - how to load my module on startup ( c(modulename) )


I can run erl from my application and it must be turned on, I really don't want to make win32API Hook + sentMessage to run c(mymodulename), that's why I'm interesting if there some auto-load for modules or I can add it to erl properties ?

thank you.


Solution

  • erl -s module_name will call module_name:start ()

    in module_name:start () you can call all what you want