Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

v1.0.21 released


  • Please log in to reply
3 replies to this topic
Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
Here are the changes for v1.0.21: http://www.autohotkey.com/changelog/

Since I tried to focus on enhancing the existing controls and styles, there are no new control types this time (unless you count multi-select ListBox). New control types should be coming in the next version.

For anyone interested in designing data entry forms or custom user interface windows:

Rajat has released SmartGUI Creator, an entirely visual layout editor. It will automatically generate a working prototype GUI script according to your specifications.

It is free and can be downloaded from http://www.autohotke.../docs/SmartGUI/

Misc. Tip: URLs in the forum are automatically clickable, there is no need to use the URL tags or do any special formatting.

Rajat
  • Members
  • 1904 posts
  • Last active: Jul 17 2015 07:45 AM
  • Joined: 28 Mar 2004
just read the changelist Chris, thanx for the style and exstyle possibilities. Congrats on another cool ahk release!

MIA

CleanNews.in : Bite sized latest news headlines from India with zero bloat


Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
Thanks. I hope you're able to use the style and exstyle words to make "GUI Stealer" even better. Here is a working example that might help (you probably already planned this):
#Persistent

SetTimer, WatchCursor, 100

return



WatchCursor:

MouseGetPos,,, MouseWin, MouseControl

ControlGet, Style, Style,, %MouseControl%, ahk_id %MouseWin%

ControlGet, ExStyle, ExStyle,, %MouseControl%, ahk_id %MouseWin%

ButtonType =  ; Set default to be blank.

IfInString, MouseControl, Button

{

	Transform, ButtonType, BitAnd, %style%, 0xF  ; Get the last four bits.

	if ButtonType in 2,3,5,6  ; check, autocheck, 3state, auto3state (respectively)

		ButtonType = Checkbox

	else if ButtonType in 4,9  ; radio, autoradio (respectively)

		ButtonType = Radio

	else if ButtonType = 7  ; GroupBox

		ButtonType = GroupBox

	else ; Normal button, default button, picture button, etc.

		ButtonType = Pushbutton

}

ToolTip %MouseControl%`nStyle:`t`t%Style%`nExStyle:`t%ExStyle%`nButton Type:`t%ButtonType%

return


Rajat
  • Members
  • 1904 posts
  • Last active: Jul 17 2015 07:45 AM
  • Joined: 28 Mar 2004
though i'd planned the same, the li'l button function of yours is certainly better than something i'd have done. thanx! :)

MIA

CleanNews.in : Bite sized latest news headlines from India with zero bloat