Jump to content

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

AutoHotkey v1.1.10


  • Please log in to reply
39 replies to this topic
Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

v1.1.10.01

 

Improved RegRead to support REG_BINARY values larger than 64K.

Improved RegWrite to support REG_BINARY/REG_MULTI_SZ values larger than 64K.

Fixed Process Close (and possibly other things) on Windows XP.



Coco
  • Members
  • 697 posts
  • Last active: Oct 31 2015 07:26 PM
  • Joined: 27 Jul 2012

Help me out here... what other custom controls can be added? Is there a list somewhere that I can reference?

 

Thanks for the update!

 

This might help: http://msdn.microsof...ibrary/bb773169(v=vs.85)



fischgeek
  • Moderators
  • 1074 posts
  • Last active: Jul 07 2015 06:27 PM
  • Joined: 20 Apr 2009

This might help: http://msdn.microsof...ibrary/bb773169(v=vs.85)

 

shocked.png GTFO! I can natively create Rich Edit controls!?



Owyn
  • Members
  • 21 posts
  • Last active: Dec 24 2016 12:22 AM
  • Joined: 14 May 2011

Changed since 1.1.08.00

http://l.autohotkey....L_ChangeLog.htm

A BOM format is required for the script to be recognised as UTF-8, the default script codepage is now ANSI

And what was changed since v.1.1.00.00 so my TrayTip command doesn't work anymore?



billy036
  • Members
  • 45 posts
  • Last active: Feb 20 2014 02:40 AM
  • Joined: 06 Nov 2011

 TrayTip  doesn't work in Win XP, Win 7 is OK 



fischgeek
  • Moderators
  • 1074 posts
  • Last active: Jul 07 2015 06:27 PM
  • Joined: 20 Apr 2009

How do I add other custom controls than what's in the example in the HF? I'm getting unregistered class errors. Forgive the noob question, but I don't see in the documentation (ahk and msdn).



rbrtryn
  • Members
  • 1177 posts
  • Last active: Sep 11 2013 08:04 PM
  • Joined: 22 Jun 2011

 TrayTip  doesn't work in Win XP, Win 7 is OK 

 

Works on my system:

 

AHK Version: 1.1.10.01
Unicode:  Yes (32-bit)
Operating System: WIN_XP
Admin Rights: Yes


My Scripts are written for the latest released version of AutoHotkey.

Need a secure, accessible place to backup your stuff? Use Dropbox!


rbrtryn
  • Members
  • 1177 posts
  • Last active: Sep 11 2013 08:04 PM
  • Joined: 22 Jun 2011

How do I add other custom controls than what's in the example in the HF? I'm getting unregistered class errors. Forgive the noob question, but I don't see in the documentation (ahk and msdn).

 

Possibly related: http://msdn.microsof...6(v=vs.85).aspx


My Scripts are written for the latest released version of AutoHotkey.

Need a secure, accessible place to backup your stuff? Use Dropbox!


fischgeek
  • Moderators
  • 1074 posts
  • Last active: Jul 07 2015 06:27 PM
  • Joined: 20 Apr 2009

That's great, but how do I implement that in AHK?



Coco
  • Members
  • 697 posts
  • Last active: Oct 31 2015 07:26 PM
  • Joined: 27 Jul 2012

@FischGeek: Make sure you're using the correct class name(s) for the control. Here's a guide for Windows Common Controls:

=====================================
Control           Class
=====================================
Button            Button
ComboBox          ComboBox
ComboBoxEx        ComboBoxEx32
DateTime          SysDateTimePick32
Edit              Edit
Header            SysHeader32
Hotkey            msctls_hotkey32
ListBox           ListBox
ListView          SysListView32
MonthCal          SysMonthCal32
Progress          msctls_progress32
ReBar             ReBarWindow32
ScrollBar         ScrollBar
Static            Static
StatusBar         msctls_statusbar32
Tab               SysTabControl32
Toolbar           ToolbarWindow32
ToolTip           tooltips_class32
TrackBar          msctls_trackbar32
Treeview          SysTreeView32
UpDown            msctls_updown32
=====================================

I found this online a while back: http://read.pudn.com...ontrols FAQ.pdf



fischgeek
  • Moderators
  • 1074 posts
  • Last active: Jul 07 2015 06:27 PM
  • Joined: 20 Apr 2009

Thank you. That really helps! Though, I still can't seem to get RichEdit to work.

Gui, Add, Custom, ClassRichEdit, Hello
Gui, Show
return
 
GuiClose:
 ExitApp


Coco
  • Members
  • 697 posts
  • Last active: Oct 31 2015 07:26 PM
  • Joined: 27 Jul 2012

"Gui, Add, Custom" is more of a lower-level command compared to the conventional "Gui, Add, [ControlType]" command. It requires a little bit more coding and knowledge on the desired control that you want to add. My suggestion is to write a few test scripts using simpler controls (e.g. try adding a Static(text) control using [Gui, Add, Custom] instead of [Gui, Add, Text]). Also, if you go to MSDN (Control Library), when you pick a certain control from the left, you will see under [Control Type], two sub-trees. Choose "[ControlType] Overviews" and under it you'll see "Using [ControlType]". Select that and most probably, you'll see some sample C++ code(s) on how to implement the certain control. C++ knowledge is not really needed as all you have to study/understand is the steps needed to implement the control.



rbrtryn
  • Members
  • 1177 posts
  • Last active: Sep 11 2013 08:04 PM
  • Joined: 22 Jun 2011

Using the information in Coco's post, I think I found the answer. You need to load the dll first.

hModule := DllCall("LoadLibrary", "Str", "Msftedit.dll", "Ptr")

Gui, Add, Custom, ClassRICHEDIT50W, Hello
Gui, Show
return
 
GuiClose:
 ExitApp

My Scripts are written for the latest released version of AutoHotkey.

Need a secure, accessible place to backup your stuff? Use Dropbox!


Pulover
  • Members
  • 1596 posts
  • Last active: Apr 06 2016 04:00 AM
  • Joined: 20 Apr 2012

I've been playing around with some controls as well. I found in the MSDN page that RichEdit needs ES_MULTILINE style to work with line breaks, but what's strange is that I can only break a line with ^Enter.
 

DllCall("LoadLibrary", "Str", "Msftedit.dll", "Ptr")

Gui, Add, Custom, ClassRICHEDIT50W 0x0004, Hello`nWorld
Gui, Show
return
 
GuiClose:
ExitApp

Most of the constants can be found in just me's Super Global Gui Constants script.

The one control I'm really interested is the Toolbar, but I cannot understand the structures part in the msdn examples... I was hoping to get that using another script by just me, Class Dll_Struct but the link is dead I still can't find it anywhere... Does anyone here have a copy? I find HotKeyIt's version too complicated to use.


Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer) | Class_LV_Rows - Copy, Cut, Paste and Drag ListViews | Class_Toolbar - Create and modify | Class_Rebar - Adjustable GUI controls

Join the New AutoHotkey Forum!


Coco
  • Members
  • 697 posts
  • Last active: Oct 31 2015 07:26 PM
  • Joined: 27 Jul 2012

Most of the constants can be found in just me's Super Global Gui Constants script.

+1 Very useful script/reference when working with GUI's. 

 

The one control I'm really interested is the Toolbar, but I cannot understand the structures part in the msdn examples.

If you have majkinetor's Toolbar.ahk, (included in Scite4AutoHotkey) , you can study his functions and structures.