Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MAKE exe with macro+dll?
#1
Hi

I want send email another from computer. (not istall QM)

I see help:
Quote:External files (e.g. dll) are not added to exe automatically. You can add them together with exe file to a zip file or setup program, and on other computers extract everything to the same folder. You can also add files to exe as resources, like function ExeQmGridDll does (you can see its code).

OK, i undersrand not added mailbee.dll automatic.

BUT

Possible? 
Macro+mailbee.dll >> Ceate exe  (only one exe)

Yes or No?

If yes... ?? (How?)

I see (str),example only txt file:
https://www.quickmacros.com/help/str/IDP_S_FILE.html


or only create zip container file >> (my.exe+mailbee.dll)

Thanks
#2
Can add mailbee.dll to exe like in function ExeQmGridDll. Use the Find dialog to find the function. Then clone it and edit the clone.

Or use C# code instead:
https://www.quickmacros.com/forum/showth...8#pid28888
#3
Hi Gintaras

Thanks your answer.
(I only exe file.)

My code, but not good Huh
Code:
Copy      Help
ExeQmGridDll
#if EXE
#exe addfile "$qm$\mailbee.dll" 10
#endif
SendMail "[email protected]" "Teszt-exe-202111010712" "Test text" 0

1,
Do you wrote:

ExeQmGridDll 

Ok list :

Loaded dll: user32
Loaded dll: kernel32
Loaded dll: gdi32
Loaded dll: shell32
Loaded dll: shlwapi
Loaded dll: comctl32
Loaded dll: advapi32
Loaded dll: ole32
Loaded dll: oleaut32
Loaded dll: msvcrt
Loaded dll: qm.exe
Loaded COM type library: MailBee


2,
I see: https://www.quickmacros.com/forum/showth...p?tid=4395
"
Code:
Copy      Help
#exe addfile "$system$\notepad.exe" 10 ;;add notepad.exe to this exe (when making exe)
"

OK add code may script.
 
Code:
Copy      Help
#if EXE
#exe addfile "$qm$\mailbee.dll" 10
#endif

3,
SendMail error another computer
Not file  C:\Users.......smtp_log.txt

Reading:
https://www.quickmacros.com/forum/showth...p?tid=4338
so
I add >> SendMail ........ 0

Result:

My problems:
I do not can add dll to my exe :
#exe addfile "$qm$\mailbee.dll"

and
I do not can disable log write function.

Why?
I want only exe file copy on another computer i
(Not additional mailbee.dll and smtp_log.txt)

Can you help?
Info?

Thanks
Norbert
My script run OK and send mail, if is qm software on computer. (with install)
#4
Can add mailbee.dll to exe, but at run time the script must extract it to the same folder as the exe file. I guess it isn't what you need.

Better to use C# instead:
https://www.quickmacros.com/forum/showth...p?tid=7172
#5
Thanks your answer, i understand.
Norbert
from Hungary


Forum Jump:


Users browsing this thread: 1 Guest(s)