Jump to content

Latest Beta


jpm
 Share

Recommended Posts

  • Replies 641
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

- Changed: Maximum controls in a GUI window 4093 -> 65535.

Thanks for that (and the others of course) change!

Sweet... But how is someone able to create a GUI with 65535 controls?? :) Thats a damn lol... ;)

It's not so hard when you create a dynamic ListView, every item is a control :D

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

Link to comment
Share on other sites

  • Administrators

3.2.11.3 (18th March, 2008) (Beta)

- Changed: PCRE regular expression engine updated to 7.6.

- Added #128: GUISetAccelerators(). :)

- Fixed: Modified AutoUpdateIt.au3 to work under x64.

UDFs:

Fixed: $tagREBARINFO declaration (Zedna)

Added: _GUICtrlRebar_GetBarInfo, _GUICtrlRebar_SetBarInfo (Gary)

Edited by GaryFrost
Added UDF Info
Link to comment
Share on other sites

  • Administrators

Woo! Excellent stuff =]

Quick question: is it normal/expected that accelerators set for a particular window would be activated even if another window (a child window) is focused?

Good question. I have no idea...
Link to comment
Share on other sites

The best solution is to have an Optional parameter to set it globaly, or just for the parent window.

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

  • Administrators

Well, I'm calling the internal accelerator APIs correctly (I think). So first thing before we start adding more flags is to work out if this is "Normal" accelerator behavior for "child" windows. It may well be. If I press Ctrl+S in Word it saves, even when I have a child document in focus...

Link to comment
Share on other sites

I do not want to see an option added either way. If this is standard behavior, you, as the user should handle it by doing a simple check to see if the window has focus, if it's really that important to you. There are already a ton of non-standard "features" in the GUI code that could be handled with minimal user code, we don't need to add more.

Edit: Jon, I don't think Word would use accelerators. Everything in Office/Visual Studio uses COM interfaces. Keyboard bindings are tied to an object, I think. The simplest thing to do is take the accelerators sample on MSDN and add a second window to it and then see under what conditions the accelerator works/doesn't work.

Edited by Valik
Link to comment
Share on other sites

  • Administrators

Hmm, it looks like the window handle in TranslateAccelerator() is not actually used to determine whether or not to translate an accelerator keypress, it is simply used as the output of the resulting translated accelerator. I should probably just add a simple check and only call TranslateAccelerator when the MSG and hWND match.

Link to comment
Share on other sites

  • Administrators

Actually, no. If you had child windows and a single acclerator table you would probably set the acclerator table on the parent and run TranslateAccelerator() on the parent. This would end up sending WM_COMMAND messages to the parent WndProc which end up triggering the same WM_COMMAND no matter the focus...

Link to comment
Share on other sites

If this is standard behavior, you, as the user should handle it by doing a simple check to see if the window has focus, if it's really that important to you.

I'm also opposed to adding another option to Opt(). Adding a check to the events is exactly what I intend on doing, assuming it is normal behavior. I bring this up only because I don't want to add checks to later find that they've become unnecessary after a bugfix (if, indeed, it is a bug -- I don't know :)). "Better to clarify now than later" is basically what I thought :) Edited by -Ultima-

[ WinINet.au3 | Array.au3 (Optimized) | _UnixTimeParse() ]

Link to comment
Share on other sites

  • Administrators

Ooh, this little nuggest changes things:

The system also maintains accelerator tables for each application. An application can define any number of accelerator tables for use with its own windows. A unique 32-bit handle (HACCEL) identifies each table. However, only one accelerator table can be active at a time for a specified thread. The handle to the accelerator table passed to the TranslateAccelerator function determines which accelerator table is active for a thread. The active accelerator table can be changed at any time by passing a different accelerator-table handle to TranslateAccelerator.

Looks like I can remove the winhandle option as you can only have one active anyway.

Link to comment
Share on other sites

  • Administrators

3.2.11.4 (20th March, 2008) (Beta)

- Added #78: REGEXPCLASS in Advanced Windows definition.

- Fixed #177: Pixel...() does not accept optional hwnd parameter.

- Fixed #173: Advanced window descriptions only reading to the first ;

UDFs:

- Fixed: _Timer_KillTimer array assignment correction (-Ultima-)

Edited by GaryFrost
Added UDF Changes
Link to comment
Share on other sites

3.2.11.4 (20th March, 2008) (Beta)

- Added #78: REGEXPCLASS in Advanced Windows definition.

- Fixed #177: Pixel...() does not accept optional hwnd parameter.

- Fixed #173: Advanced window descriptions only reading to the first ;

Thank you! Thank you! :) i have been waiting for this looong time :)

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

3.2.11.4 (20th March, 2008) (Beta)

- Added #78: REGEXPCLASS in Advanced Windows definition.

It would be a nice to have if REGEXPCLASS could also be used for controls.

I often need to resort to using REGEXP for matching .net control class names such as 'WindowsForms10.BUTTON.app.0.2e0c681' as the part after .app changes on each build.

Thanks for the fix of bug #173

Bowmore

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Link to comment
Share on other sites

  • Administrators

3.2.11.5 (24th March, 2008) (Beta)

- Added: REGEXPCLASS in Advanced control definition.

- Added: "start" and "count" parameters added to StringInStr().

- Added #182: GUICtrlSetDefColor(), GUICtrlSetDefBkColor().

- Fixed: Resizing GUI before GUISetState().

- Fixed #183: radio fired when GUI reactivated.

Link to comment
Share on other sites

- Fixed: Resizing GUI before GUISetState()

I'm curious... In what manner did this bug manifest? I ask because my experience with using WinSetPos() with GUISetState() has been a bit annoying. As it currently is, if I have controls anchored in a certain way ($GUI_DOCKBOTTOM, for example), and I change the height of the dialog before running GUISetState(), the control doesn't actually dock to the bottom (it stays in place).

I notice that it's fixed in this version of AutoIt, but only partially. If I resize the dialog again, the control moves somewhat erratically. Take the following snippet as an example:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Global $iWidth  = 200
Global $iHeight = 150
Global $iCount = 1

Global $hGUI = GUICreate("Test " & @AutoItVersion, $iWidth, $iHeight)
Global $hButton = GUICtrlCreateButton("Button", $iWidth - 60, $iHeight - 30, 50, 20)
GUICtrlSetResizing($hButton, $GUI_DOCKBOTTOM + $GUI_DOCKSIZE)

buttonPos()

;GUISetState()

WinMove($hGUI, "", Default, Default, Default, $iHeight - 50)
buttonPos()

GUISetState()

WinMove($hGUI, "", Default, Default, Default, $iHeight + 100)
buttonPos()

While GUIGetMsg() <> $GUI_EVENT_CLOSE
WEnd

Func buttonPos()
    Local $iButtonPos = ControlGetPos($hGUI, "", $hButton)
    MsgBox(0, StringFormat("Button Top (%d)", $iCount), $iButtonPos[1])
    $iCount += 1
EndFunc

Under AutoIt v3.2.10.0 (up to v3.2.11.4)

Button Top (1): 120

Button Top (2): 120

Button Top (3): 270

Under AutoIt v3.2.11.5

Button Top (1): 120

Button Top (2): 45

Button Top (3): 270

You'll notice that the second messagebox is displaying the desired top position for the button in 3.2.11.5 (unlike in previous versions), but after you resize the window again, the button (unexpectedly) jumps off the window.

Normally, this wouldn't be a problem for many/most people (I wouldn't expect so anyway), but in my case, I create a dialog that remains hidden until needed, and is resized depending on the condition under which it needs to be unhidden. Since the dialog can be hidden/unhidden any number of times during the runtime of the program, the user eventually runs into this problem of missing controls. To combat this, I have to create the dialog off screen, call GUISetState() to unhide the dialog, hide it again with GUISetState(), then move it to the desired initial position -- quite cumbersome.

Just as a note, if you uncomment the first call to GUISetState(), everything works as expected (basically, it's a simplification of my workaround).

Edited by -Ultima-

[ WinINet.au3 | Array.au3 (Optimized) | _UnixTimeParse() ]

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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