Modify

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 Valik, 18 years ago

Type: bugfeature request

comment:2 by hiyoal, 18 years ago

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

comment:3 by Valik, 18 years ago

Milestone: Future Release

comment:4 by anonymous, 18 years ago

I think we can have a non breaking strategy with syntax like

  1. Pixel...( [HWND,] ...)

or

  1. Pixel...( ... [,HWND])

personnaly I suggest 1. but if AU3Check or AutoIt4SCite is in trouble with this syntax we can adopt 2.

comment:5 by J-Paul Mesnage, 18 years ago

anonymous was me

in reply to:  4 comment:6 by Valik, 18 years ago

Replying to anonymous:

I think we can have a non breaking strategy with syntax like

  1. Pixel...( [HWND,] ...)

or

  1. 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 Valik, 18 years ago

Owner: changed from Valik to J-Paul Mesnage
Status: newassigned
Version: 3.2.10.0

comment:8 by J-Paul Mesnage, 18 years ago

Milestone: 3.2.11.2
Resolution: completed
Status: assignedclosed

Added in version: 3.2.11.2

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.