Jump to content

Recommended Posts

Posted

From the description it seems that is cropping images.

But there is a transformation.

#include <GUIConstantsEx.au3>
#include <WinAPI.au3>
#include <GuiImageList.au3>

_Main()

Func _Main()
    Local $hImage, $hGUI, $hDC
    Local $Wow64
    If @AutoItX64 Then $Wow64 = "\Wow6432Node"
    Local $AutoItDir = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE" & $Wow64 & "\AutoIt v3\AutoIt", "InstallDir")

    $hGUI = GUICreate("Рисует в контекст устройстве", 400, 300)
    GUISetState()

    ; Загружает изображения
    ; Создаёт список изображений
    $hImage = _GUIImageList_Create(48, 48, 5, 3)
    ; Добавляет иконки
    _GUIImageList_AddIcon($hImage, $AutoItDir & "\Icons\au3.ico")
    _GUIImageList_AddIcon($hImage, $AutoItDir & "\Icons\au3script_v9.ico")
    _GUIImageList_AddIcon($hImage, $AutoItDir & "\Icons\au3script_v10.ico")
    _GUIImageList_AddIcon($hImage, $AutoItDir & "\Icons\filetype-blank.ico")
    _GUIImageList_Add($hImage, _WinAPI_CreateSolidBitmap($hGUI, 0xFF0000, 48, 48))
    _GUIImageList_Add($hImage, _WinAPI_CreateSolidBitmap($hGUI, 0x00FF00, 48, 48))
    _GUIImageList_Add($hImage, _WinAPI_CreateSolidBitmap($hGUI, 0x0000FF, 48, 48))

    ; Рисует изображение
    $hDC = _WinAPI_GetDC($hGUI)
    _GUIImageList_DrawEx($hImage, 0, $hDC, 4, 4, 16, 16)
    _GUIImageList_DrawEx($hImage, 1, $hDC, 60, 4, 32, 32)
    _GUIImageList_DrawEx($hImage, 2, $hDC, 120, 4, 64, 32)
    _GUIImageList_DrawEx($hImage, 2, $hDC, 120, 50, 32, 64)
    _GUIImageList_DrawEx($hImage, 3, $hDC, 180, 4, 64, 64)
    _GUIImageList_DrawEx($hImage, 4, $hDC, 4, 150, 10, 48)
    _GUIImageList_DrawEx($hImage, 5, $hDC, 64, 150, 48, 10)
    _GUIImageList_DrawEx($hImage, 6, $hDC, 124, 150, 24, 32)

    _WinAPI_ReleaseDC($hGUI, $hDC)

    ; Цикл выполняется, пока окно не будет закрыто
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>_Main
Posted

  On 11/15/2013 at 7:22 AM, AZJIO said:

MemGetStats

$aArray[3] = Total Pagefile

$aArray[4] = Available Pagefile

$aArray[5] = Total virtual

$aArray[6] = Available virtual

3 and 4 should be interchanged with 5 and 6

Are you sure about this?

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

Not sure, but the numbers do not match what is written

WinXP
[1]|3538028
[2]|1727292
[3]|5424124
[4]|2805740
[5]|2097024
[6]|2039544

[3]|5424124 > [1]|3538028

$aArray[3] = Total Pagefile ..... pagefile.sys? (pagefile.sys = 2000000) <> [3]|5424124

$aArray[4] = Available Pagefile
$aArray[5] = Total virtual .... [5]|2097024- Memory available to the process EXE?
$aArray[6] = Available virtual

[3]|5424124 = [1]|3538028 + [5]|2097024 (virtual = RAM + pagefile.sys)

 

PixelChecksum, PixelGetColor, PixelSearch

hwnd [optional] Window handle to be used. Default is the desktop window.

It is necessary to specify that PixelCoordMode switching is required

Edited by AZJIO
Posted
  On 11/21/2013 at 10:53 PM, AZJIO said:

Link is broken and text is Russian, hence why I didn't add it.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 11/23/2013 at 5:54 AM, babynaj10 said:

Hello...

Observed that in some descriptions in the documents, for example, to "FileOpen" and more specifically in the "Related" includes links to not only to the other descriptions, but also to the same, ie "FileOpen".

-----------------

TOP PROJECT WORLD INFORMATION

 

Thanks. But I personally don't see this as an issue.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
  On 11/24/2013 at 7:28 AM, AZJIO said:

GUICoordMode

Alters the position of a control defined by GUICtrlSetPos().

GUICreate()

Not following how this is an issue.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

I don't think this can be changed by us. Sorry.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
  On 11/25/2013 at 12:15 PM, billo said:

Not sure if this is fixable but the search funtion is "shall we say" picky about input.

Mostly UDF's

a search for WinApi finds nothing, you have to type the _  ( _WinApi ) or none of the searches work.

Microsoft Help Workshop is about a decade old since last release. Monopoly is control and they speak the terms. guinness is not in a position to change this. This statement is just an observation of current events.

Posted (edited)

Hello,

It appears the HotKeySet documenation contains an erroneous sentence that does not make any logical sense.

  Quote

 

It is better to use the lower keyboard key as for keyboard as Russian one, the unshifted key is not the lower value. I.E. "D" is not the upper case of "B". The Hotkey will not be set and a failure will occur.

 

I believe the gist of what this is attempting to convey is: "It is better to use Lower-Case keys/characters to avoid errors in keyboard layout. IE: On some keyboards, upper and lower case keys may be mapped differently."

Although, to my knowledge, most people (even in Russia) use a QWERTY-derived keyboard now-a-days, so I'm not quite sure even if the above revised sentence is accurate and not mis-leading.

None-the-less, as-is, this sentence makes no sense at all and probably should be reviewed for a future release.

Thanks!

EDIT: I should note that I discovered this in version 3.3.8.1 and it appears to still be present in the latest beta version 3.3.9.22

EDIT 2: I just discovered the bug tracker. I filed this as Bug #2546

Edited by KnowsNothing
Posted (edited)

The wording could do with a little tweaking. Thanks for reporting.

You will notice that there is a couple of threads in this area dedicated to help file issues.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Moderators
Posted

KnowsNothing,

Which is where your post now resides ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...