Jump to content

Recommended Posts

Posted (edited)

What's New in Version 0.2023.7.23
Fixed: compiled with "HiDpi=Y" and now looking at it in a 4k monitor with 200% scaleing, ...big oops.
Broke: x64. The HiDpi patch I put together don't work running as x64.
Broke: Some stuff in WinXP. The old  version is still up for download. (I'll look at it what I get more time to do so)

As a side effect the X,Y is correct in any monitor so, is a good update.

Compiled script on 3.3.16.1

Files download are in the files section.

What and why: ..decided to use the 4k monitor as the main monitor and, CV would not be properly sized :wacko2:
Since I'm the unofficial maintainer of the code, it's up to me to fix it but, I'm in a hurry, so did what I could with the time I have.
Anyone that'd like to have a go at it, please do. Is not my code/utility, is ours. ( yes, yours too ) :)

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • 4 months later...
Posted (edited)

just tried the new version

>Running AU3Check (3.3.16.1)  params:-q -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7  from:E:\AutoIt-v3D  input:M:\TEMP\ControlViewer(source v0.2023.12.15)\CV.au3
"M:\TEMP\ControlViewer(source v0.2023.12.15)\CV.au3"(189,10) : error: can't open include file "UDFs\OnDebugMsgBox.au3".
#include "UDFs\OnDebugMsgBox.au3"
~~~~~~~~~^
"M:\TEMP\ControlViewer(source v0.2023.12.15)\CV.au3"(190,141) : error: _DebugMsgBox_DefaulText(): undefined function.
_DebugMsgBox_DefaulText("Please contact the developer." & @CRLF & "(https://www.autoitscript.com/forum/files/file/478-control-viewer-mod/)")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"M:\TEMP\ControlViewer(source v0.2023.12.15)\CV.au3"(1463,91) : error: _ColorChooserDialog(): undefined function.
        Return _ColorChooserDialog($iColor, $hParent, $iRefType, $iReturnType, $iFlags, $sTitle)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"M:\TEMP\ControlViewer(source v0.2023.12.15)\CV.au3"(3766,47) : error: CC_WM_COMMAND(): undefined function.
    CC_WM_COMMAND($hWnd, $iMsg, $wParam, $lParam)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
M:\TEMP\ControlViewer(source v0.2023.12.15)\CV.au3 - 4 error(s), 32 warning(s)

 

Edited by ioa747

I know that I know nothing

  • 1 month later...
  • 7 months later...
Posted

Hi everybody :)
1) When I ran the following script, a style name was missing :

#include <MsgBoxConstants.au3>

MsgBox($MB_TOPMOST, "Standard MessageBox", _
    "MessageBox text is written into this Static Control." & @crlf & _
    "The style of this control is always (?) 0x50022080")

Staticstyle0x2000missing.png.f5cf9b96677b9abc2cac589c07f1e08d.png

Global Const $Style_Static[18][2] = _
   [[0x1000, 'SS_SUNKEN'], _
    [0x0400, 'SS_RIGHTJUST'], _
    [0x0200, 'SS_CENTERIMAGE'], _
    [0x0100, 'SS_NOTIFY'], _
    [0x0080, 'SS_NOPREFIX'], _
    [0x0012, 'SS_ETCHEDFRAME'], _
    [0x0011, 'SS_ETCHEDVERT'], _
    [0x0010, 'SS_ETCHEDHORZ'], _
    [0x000C, 'SS_LEFTNOWORDWRAP'], _
    [0x000B, 'SS_SIMPLE'], _
    [0x0009, 'SS_WHITEFRAME'], _
    [0x0008, 'SS_GRAYFRAME'], _
    [0x0007, 'SS_BLACKFRAME'], _
    [0x0006, 'SS_WHITERECT'], _
    [0x0005, 'SS_GRAYRECT'], _
    [0x0004, 'SS_BLACKRECT'], _
    [0x0002, 'SS_RIGHT'], _
    [0x0001, 'SS_CENTER']]
    ;
    ; [0x0000, 'SS_LEFT']

2) So back to work (msdn & Winuser.h) to add 11 missing styles to the Static control list, now we got them all :

Global Const $Style_Static[29][2] = _
   [[0xC000, 'SS_WORDELLIPSIS'], _
    [0x8000, 'SS_PATHELLIPSIS'], _
    [0x4000, 'SS_ENDELLIPSIS'], _
    [0x2000, 'SS_EDITCONTROL'], _
    [0x1000, 'SS_SUNKEN'], _
    [0x0800, 'SS_REALSIZEIMAGE'], _
    [0x0400, 'SS_RIGHTJUST'], _
    [0x0200, 'SS_CENTERIMAGE'], _
    [0x0100, 'SS_NOTIFY'], _
    [0x0080, 'SS_NOPREFIX'], _
    [0x0040, 'SS_REALSIZECONTROL'], _
    [0x0012, 'SS_ETCHEDFRAME'], _
    [0x0011, 'SS_ETCHEDVERT'], _
    [0x0010, 'SS_ETCHEDHORZ'], _
    [0x000F, 'SS_ENHMETAFILE'], _
    [0x000E, 'SS_BITMAP'], _
    [0x000D, 'SS_OWNERDRAW'], _
    [0x000C, 'SS_LEFTNOWORDWRAP'], _
    [0x000B, 'SS_SIMPLE'], _
    [0x000A, 'SS_USERITEM'], _
    [0x0009, 'SS_WHITEFRAME'], _
    [0x0008, 'SS_GRAYFRAME'], _
    [0x0007, 'SS_BLACKFRAME'], _
    [0x0006, 'SS_WHITERECT'], _
    [0x0005, 'SS_GRAYRECT'], _
    [0x0004, 'SS_BLACKRECT'], _
    [0x0003, 'SS_ICON'], _
    [0x0002, 'SS_RIGHT'], _
    [0x0001, 'SS_CENTER']]
    ;
    ; [0x0000, 'SS_LEFT']

Staticstyle0x2000notmissing.png.660dc47b1174bc766b39de45666da224.png

"I think you are searching a bug where there is no bug... don't listen to bad advice."

  • 11 months later...
Posted (edited)

@argumentum  🏆 First of all, thank you very much for your work on "Control Viewer"   -   It is a valuable tool.


I tried to solve the 'CloneGui' puzzle, but it is for strong solvers  :blink:
I couldn't get it to work

While   Case $g_ctrl_CloneGui[0] fired

Case $g_ctrl_CloneGui[3],  and
Case $g_ctrl_CloneGui[4],  did not fire (or I couldn't)

are there any conditions for it to work?

As a test to bypass the
Case $g_ctrl_CloneGui[3] , and  Case $g_ctrl_CloneGui[4]
I put _CloneGui(0) in
Case $g_ctrl_CloneGui[0]
under the ShowMenu($hForm, $g_ctrl_CloneGui[0], $g_ctrl_CloneGui[2])
and it worked :) (with bypass)

He wants his master :D

I have the version
Global Const $VERSION = "0.2024.9.16"
uncompiled

0.2024.9.16
TaskSched_TriggerType = 0
+ Func _ApplicationCheck()
$hWnd = 0x0000000000000000
+ Func _TaskSched_ForGui() : Type=0, OnLogon=1
- $_CloneGui = 2
+ Func _HiDpi_ArrayBuild_DivideBy()
- | 1 | 0x0000000000010001 | 1 ([x2]1080/1080[x1])

 

Edited by ioa747

I know that I know nothing

Posted
5 hours ago, ioa747 said:

As a test to bypass the
Case $g_ctrl_CloneGui[3] , and  Case $g_ctrl_CloneGui[4]
I put _CloneGui(0) in
Case $g_ctrl_CloneGui[0]
under the ShowMenu($hForm, $g_ctrl_CloneGui[0], $g_ctrl_CloneGui[2])
and it worked :) (with bypass)

He wants his master :D

lol, thanks :D 

I'm busy with time sensitive matters.
I have a script that needs to be done before tomorrow, and 2 more before Friday. So I'll look at it right after am done with those 3 scripts :) 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

..I see..., I screwed up. It was never gonna do a thing. :lol:

Ok, here is the patch. look for the hints and amend with the changes:

...

Global $g__Context_Autoit = 0, $g__iShowMenuRet = 0 ; <<<<<<< look for this line
...

    If $g__iShowMenuRet Then
        $Msg = $g__iShowMenuRet
        $g__iShowMenuRet = 0
    EndIf

    If $g__Context_Autoit Then ; <<<<<<< look for this line

...

        Case $g_ctrl_CloneGui[0] ; <<<<<<< look for this line
            GUICtrlSetState($g_ctrl_CloneGui[0], $GUI_DISABLE)
            $g__iShowMenuRet = ShowMenu($hForm, $g_ctrl_CloneGui[0], $g_ctrl_CloneGui[2])
            GUICtrlSetState($g_ctrl_CloneGui[0], $GUI_ENABLE)

...

 ShowMenu() used to return value to .... wait for it ..., no one/no thing :lol:
...so it now has a new and shiny  $g__iShowMenuRet = ShowMenu()  to receive the user choice.

I'll upload the changes next week :) 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...