Skip to content

Instantly share code, notes, and snippets.

@tablacus
Created February 10, 2018 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tablacus/328852c66880fe31445fcd5d956f75af to your computer and use it in GitHub Desktop.
Save tablacus/328852c66880fe31445fcd5d956f75af to your computer and use it in GitHub Desktop.
if (!pt) {
pt = api.Memory("POINT");
api.GetCursorPos(pt);
}
var FolderItem = FolderMenu.Open(fso.BuildPath(fso.GetParentFolderName(api.GetModuleFileName(null)), "layout"), pt.x, pt.y, "*.xml");
if (FolderItem && api.PathMatchSpec(FolderItem.Path, "*.xml")) {
LoadXml(FolderItem.Path);
}
@tablacus
Copy link
Author

image

@tablacus
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment