scripting talks...

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
admin
Site Admin
Posts: 64254
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

scripting talks...

Post by admin »

Well, well, the scripting engine just called for this, at least I heard the call.

If you are a programmer you probably heard about the GetSystemMetrics Function, which "Retrieves the specified system metric or system configuration setting." See http://msdn2.microsoft.com/en-us/library/ms724385.aspx

Me, I'm sometimes curious. For example I want to know The minimum width of a window, in pixels. This is easy now, because I gave me (and you!) an interface to GetSystemMetrics via scripting!

Try this:
::gsm 28

And you know The minimum width of a window, in pixels on your computer. :)

Other magical numbers are found under the link above...

:!: (Next version! upload soon...)
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post by TheQwerty »

Neat... I guess? :P


Actually it leaves me really wondering where you're going with this.

admin
Site Admin
Posts: 64254
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

TheQwerty wrote:Actually it leaves me really wondering where you're going with this.
:) I'd say it's "Bloat under the hood". The possibilities are infinite...
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post by TheQwerty »

admin wrote:
TheQwerty wrote:Actually it leaves me really wondering where you're going with this.
:) I'd say it's "Bloat under the hood". The possibilities are infinite...
Oh sure, I've always wanted to have a way of only renaming some files when the spacing between icons is less than 75 pixels. :P

Post Reply