Menu

Pal, Peter's AutoIt Library / News: Recent posts

Version 1.29 released: Get type of GUI control and 2 other functions

Getting the type of a GUI control by its handle is something I wanted for ages. Now it's possible by the new _GUICtrlGetType() function. Also nice, a function which gets the window under the mouse pointer: _WindowUnderMouse(). And the _VersionHigher() function is handy for easy version checking.

Posted by Peter Verbeek 2024-09-30 Labels: type get control gui mouse window under version higher checking

Version 1.28 released: A few more numberbox functions

This release adds a few numberbox functions for improved handling.

Posted by Peter Verbeek 2024-05-18 Labels: numberbox pop push

Version 1.27 released: Numberboxes and more

For limiting the input of a user to numbers the new numberbox library helps you with this. Depending on the format you need it allows for integers, reals, bits, hexadecimals. You can extend your existing GUICtrlCreatInput() functions or create new numberboxes with _GUICtrlCreateNumberBox().

Talking about numbers with _StringZero() a string is padded with zeros and with _NumberToBit() and _BitToNumber() you can convert to and from binary.... read more

Posted by Peter Verbeek 2022-11-14 Labels: input real integer decimal binary bit byte zero pad padded number convert

Version 1.26 released: Registry functions added and correct Windows version

2 new registry functions are added for writing and deleting registry keys. All functions including _RegistryRead() return @error and @extended as their AutoIt counterparts.

_WindowVersion() now correctly returns the Windows version of 10 and 11.

Posted by Peter Verbeek 2021-12-23 Labels: Windows registry version read write delete

Version 1.25 released: GUI resizing and some math functions edit like setting a bit

To size a GUI according to its (window client) size specificied in GUICreate() the function _GUIResize() can be used by giving an absolute or delta (relative) size.

_IsBit() can be used for testing a bit and _BitSet() for setting or unsetting a bit. And _Decimals() returns the decimal part (after the point) of a number.

Posted by Peter Verbeek 2021-03-19 Labels: decimals fraction bit set test check resize gui interface client window

Version 1.24 released: Some handy window state detection functions

Version 1.24 has some functions to easily determine the state of a window like _WindowMinimized() for detecting if a window is minimized.

_GUIGetBkColor() now also can return the background color according to the (internal) window class. This should also be the current Windows color theme.

Posted by Peter Verbeek 2021-03-04 Labels: window state color classe

Version 1.23 released: Window coordinates according to Desktop Window Manager

This version has one major change/improvement. Some functions are added/improved to return the coordinates of a window according to the Desktop Window Manager (DWM) of Windows Vista and higher. The AutoIt function don't represent the coordinates correctly (yet).

Posted by Peter Verbeek 2021-02-12 Labels: desktop dwm windows manager window

Version 1.22 released: _LogX and close button on _Message

The general logarithm function _LogX() has been added. The window created by _Message() can now be closed by its close button. _WindowsScrollInactiveWindow() returns the Windows 10 setting for scrolling an inactive window.

Posted by Peter Verbeek 2020-12-01 Labels: logx logarithm close message button scrolling inactive window

Version 1.21 released: bug release

Just found out a small bug in file "Window, Screen, Mouse and Control.au3". In _WindowForceToPrimaryMonitor() WindowWidth and WindowHeight should have an underscore so _WindowWidth and _WindowHeight.

Posted by Peter Verbeek 2020-04-26 Labels: _WindowForceToPrimaryMonitor Window

Version 1.20 released: _WindowForceToPrimaryMonitor(), _StringStartsWith() and _StringEndsWith()

On a multiple monitor setup it could be that a monitor is switched off or the desktop is going from expand to duplicate. Both cases causes your window to appear beyond the desktop when you use a restore to a former saved position. _WindowForceToPrimaryMonitor() forces the window to the primary monitor if it isn't on an active monitor (so beyond the desktop).

2 new string functions _StringStartsWith() and _StringEndsWith() are useful for determine a string at the beginning or end of a string.

Posted by Peter Verbeek 2020-02-23 Labels: string start begin end monitor desktop window show appear disappear restore save position

Version 1.19 released: _ProcessRunsAlready(), _ProcessInstances() and _FileComparePaths()

In Miscellaneous.au3 2 new functions:
_ProcessRunsAlready() returns if a process is already running when the same process is started again (singleton).
_ProcessInstances() gets number of instances of a process or processes.

In String and File String.au3 1 new function: _FileComparePaths() for comparing (url) paths.

2 bug repairs:
- for url's paths _FilePath() returned with forward slash
- _StringToArray() didn't always return all columns for a 2D row/column split ... read more

Posted by Peter Verbeek 2020-01-25 Labels: _FilePath _StringToArray bug process path url

Version 1.18 released: _SoundGetWaveVolume()

One function added: _SoundGetWaveVolume() which gets the audio volume of an app. As from Windows Vista to 10 each app has its own volume.

Posted by Peter Verbeek 2020-01-10 Labels: sound volume app application program audio

Version 1.17 released: _WindowsBuildNumber() and _WindowsUBRNumber()

These 2 new functions _WindowsBuildNumber() and _WindowsUBRNumber() might be useful to determine if Windows, especially Windows 10, has been updated. The build number in combination with the UBR (update build release) number give a good way to do this.

Posted by Peter Verbeek 2018-09-24 Labels: windows 10 build number version ubr update release

Version 1.16 released: _FileGetSizeTimed()

_FileGetSizeTimed () may be used after downloading a file. Immediately after downloading has been finished Windows isn't ready to report the file size. The AutoIt FileGetSize() will return 0 but _FileGetSizeTimed() will try to return the size and your program may be resumed directly.

Posted by Peter Verbeek 2018-07-01 Labels: file size download time wait pause sleep timed

Version 1.15 released: _WindowChanged() , _WindowMenuHeight(), _GUICtrlTrimSpaces() and _GUICtrlEmpty()

4 functions have been added:

  • _WindowChanged() to check if window has been moved or resized and updates given array
  • _WindowMenuHeight() to get the height of the menu bar
  • _GUICtrlTrimSpaces() to trim leading and trailing spaces from a edit or input control
  • _GUICtrlEmpty() to test if edit/input control is empty after stripping spaces, tabs, lf's, cr's

A small improvement in _WindowGetX() and _WindowGetY() both returing 0 if given window doesn't exist.
And second parameter of _WindowFromProcessId() is now a keyword title.

Posted by Peter Verbeek 2018-01-24 Labels: window move resize change trim space empty return line

Version 1.14 released: BGR to RGB convert and 2 process functions

To convert a BGR color to RGB or vice versa you can use the new _ColorBGRtoRGB() function.

2 process related functions are added. To get a process id from a process name: _ProcessGetProcessId().
To get a window handle from a process id: _WindowFromProcessId()

Posted by Peter Verbeek 2017-11-23 Labels: process window handle rgb color bgr

Version 1.13 released: _GUICtrlIsState() and _GUICtrlChangeState

To check if a control has a certain state among others you can use _GUICtrlIsState(). To change a state only if a control hasn't got it yet, use _GUICtrlChangeState(). This prevent the unnecessary refreshing (flinkering) of a control.

Posted by Peter Verbeek 2017-11-06 Labels: control gui state change check test

Version 1.12 released: showing of an icon in hide message dialogue

The functions _Message() and _HideMessage() can be called with an icon file to show this icon on the message to the left or right of the message text. This can be used for showing a warning image.

Posted by Peter Verbeek 2017-11-01 Labels: message icon warning file

Version 1.11 released: Wrapper functions added for ControlGetPos()

I've added 6 functions for easy control positioning. These functions are wrappers of the ControlGetPos() function of AutoIt.

Posted by Peter Verbeek 2017-10-24 Labels: control position positioning

Version 1.10 released: List functions added

Version 1.10 now has lists for storing values and for easy data retrieval and manipulation. Lists are an improvement of the normal array functions. For instance, values can easily be added by _ListAdd().

Posted by Peter Verbeek 2017-10-16

Introduction of Pal, Peter's AutoIt Library

AutoIt is a great programming language with a lot of features and a large library of functions. Still whilst programming a tool such as Peace, the user interface for Equalizer APO, I miss functionality. So I wrote my own functions on topics such as window, controls, string manipulation, etc.

Pal, Peter's AutoIt Library has over 150 functions you can use for creating your tools which you present to the world or use for your own purposes.

Posted by Peter Verbeek 2017-09-06 Labels: introduction AutoIt programming library function functions
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.