Opened 18 years ago
Closed 18 years ago
#40 closed Feature Request (Completed)
Pixel functions should accept HWND
| Reported by: | Valik | Owned by: | J-Paul Mesnage |
|---|---|---|---|
| Milestone: | 3.2.11.2 | Component: | AutoIt |
| Version: | Severity: | ||
| Keywords: | Cc: |
Description
The following pixel functions should accept an HWND:
PixelCheckSum
PixelSearch
PixelGetColor
Adjust PixelCoordMode options:
0 - Removed, no automatic "active window" stuff.
1 - Default, unchanged. Absolute coordinates for the screen if no HWND supplied. Absolute coordinates relative to the window if an HWND is supplied.
2 - Only valid with an HWND, relative to the client area of the window.
This is a script breaking change for those using the "active window" functionality.
Attachments (0)
Change History (8)
comment:1 by , 18 years ago
| Type: | bug → feature request |
|---|
comment:2 by , 18 years ago
comment:3 by , 18 years ago
| Milestone: | Future Release |
|---|
follow-up: 6 comment:4 by , 18 years ago
I think we can have a non breaking strategy with syntax like
- Pixel...( [HWND,] ...)
or
- Pixel...( ... [,HWND])
personnaly I suggest 1. but if AU3Check or AutoIt4SCite is in trouble with this syntax we can adopt 2.
comment:6 by , 18 years ago
Replying to anonymous:
I think we can have a non breaking strategy with syntax like
- Pixel...( [HWND,] ...)
or
- Pixel...( ... [,HWND])
personnaly I suggest 1. but if AU3Check or AutoIt4SCite is in trouble with this syntax we can adopt 2.
It'll be #2. I'm not going to start something with #1. I do not like "skip-able" parameters. They are too confusing. A particular argument should always take the same data-type and not try to auto-deduce context based on the data-type.
comment:7 by , 18 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
| Version: | 3.2.10.0 |
comment:8 by , 18 years ago
| Milestone: | → 3.2.11.2 |
|---|---|
| Resolution: | → completed |
| Status: | assigned → closed |
Added in version: 3.2.11.2

Thank you for this!! This is a really good idea and it would enable bot makers to increase their bot making abilities so that everything could be done using de-activated windows.
Hiyoal