Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with Format Doc in object #585

Open
H5820121 opened this issue Dec 26, 2024 · 3 comments
Open

Bug with Format Doc in object #585

H5820121 opened this issue Dec 26, 2024 · 3 comments
Assignees

Comments

@H5820121
Copy link

H5820121 commented Dec 26, 2024

Before:
image
After:
image
image

Thanks!
Your extension helps me a lot, it's hard to even imagine what it would have been without your extension!

@mark-wiemer
Copy link
Owner

Thanks for the clear repro! Would you mind pasting plaintext so I can copy-paste? No promises on any quick fix, but definitely backlogging this one :)

Glad the extension was of use!!

@H5820121
Copy link
Author

H5820121 commented Dec 26, 2024 via email

@H5820121
Copy link
Author

@mark-wiemer
Now I saw that there is another similar bug (but slightly different)
Before:
image
After:
image

MDMF_GetInfo(HMON) {
MIEX := Buffer(40 + (32 << !!1))
NumPut("UInt", MIEX.Size, MIEX, 0)
if DllCall("User32.dll\GetMonitorInfo", "Ptr", HMON, "Ptr", MIEX.Ptr, "Int") {
return {Name: (Name := StrGet(MIEX.Ptr + 40, 32)) ; CCHDEVICENAME = 32
, Num: RegExReplace(Name, ".*(\d+)$", "$1")
, Left: NumGet(MIEX, 4, "Int") ; display rectangle
, Top: NumGet(MIEX, 8, "Int") ; "
, Right: NumGet(MIEX, 12, "Int") ; "
, Bottom: NumGet(MIEX, 16, "Int") ; "
, WALeft: NumGet(MIEX, 20, "Int") ; work area
, WATop: NumGet(MIEX, 24, "Int") ; "
, WARight: NumGet(MIEX, 28, "Int") ; "
, WABottom: NumGet(MIEX, 32, "Int") ; "
, Primary: NumGet(MIEX, 36, "UInt")} ; contains a non-zero value for the primary monitor.
}
return False
}

In the meantime, is there any code to exclude a certain section from the formatting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants