02-03-2008, 07:38 AM
http://www.quickmacros.com/help/index.ph...KEEXE.html
Resources
Resources are files and other data added to exe file. Can contain bitmaps, icons, cursors, dialogs, menus, accelerators, strings, version info, binary data (e.g. files), etc. If you use external files in macros/functions that are added to exe, you should either distribute them together with the exe or add them to exe as resources. For example, if you use scan, you can add bitmap files to resources so that you would not have to distribute them together with the exe file as separate files.
If "Auto add image files" is checked, QM automatically adds image files to exe. QM searches the source code of all macros/functions that are added to exe (except as text) for strings in form ":resourceid file.ico" or ":resourceid file.bmp", and adds these files as resources. Resource id (resourceid) must be a number between 1 and 0x7fff. Icon resource id should be > 133. This syntax (":resourceid file") is supported by scan, ShowDialog, GetFileIcon, LoadPictureFile. For example, to automatically add bitmap file used with scan, use code like scan ":10 file.bmp", and check "Auto add image files".
QM 2.2.0. Any files can be added to exe using #exe addfile. They are added as resources of type RT_RCDATA.
To add more resources, you need a resource editor. QM does not have its own resource editor, so you would have to find and download one. Using the resource editor, add all that you need and save to a file with res extension. Specify the file in the Make Exe dialog. When creating exe, QM will add resources from the file to the exe.
Whenever you edit image files or res file, you should make exe again, otherwise resources will not be updated in exe.
QM functions that support resources: ShowDialog (title bar icon, icons, bitmaps, menu, accelerators), DT_CreateMenu (menu, accelerators), scan (bitmap, icon), GetFileIcon (icon), LoadPictureFile (bitmap). With these functions, a resource can be specified as string in format ":resourceid" (e.g. ":300").
Resources
Resources are files and other data added to exe file. Can contain bitmaps, icons, cursors, dialogs, menus, accelerators, strings, version info, binary data (e.g. files), etc. If you use external files in macros/functions that are added to exe, you should either distribute them together with the exe or add them to exe as resources. For example, if you use scan, you can add bitmap files to resources so that you would not have to distribute them together with the exe file as separate files.
If "Auto add image files" is checked, QM automatically adds image files to exe. QM searches the source code of all macros/functions that are added to exe (except as text) for strings in form ":resourceid file.ico" or ":resourceid file.bmp", and adds these files as resources. Resource id (resourceid) must be a number between 1 and 0x7fff. Icon resource id should be > 133. This syntax (":resourceid file") is supported by scan, ShowDialog, GetFileIcon, LoadPictureFile. For example, to automatically add bitmap file used with scan, use code like scan ":10 file.bmp", and check "Auto add image files".
QM 2.2.0. Any files can be added to exe using #exe addfile. They are added as resources of type RT_RCDATA.
To add more resources, you need a resource editor. QM does not have its own resource editor, so you would have to find and download one. Using the resource editor, add all that you need and save to a file with res extension. Specify the file in the Make Exe dialog. When creating exe, QM will add resources from the file to the exe.
Whenever you edit image files or res file, you should make exe again, otherwise resources will not be updated in exe.
QM functions that support resources: ShowDialog (title bar icon, icons, bitmaps, menu, accelerators), DT_CreateMenu (menu, accelerators), scan (bitmap, icon), GetFileIcon (icon), LoadPictureFile (bitmap). With these functions, a resource can be specified as string in format ":resourceid" (e.g. ":300").
