Search found 81 matches

by Maestr0
28 Sep 2019, 06:24
Forum: Bug Reports
Topic: a104: Re: [a104] Unknown method error A_TrayMenu.Delete() Topic is solved
Replies: 8
Views: 633

Re: a104: Re: [a104] Unknown method error A_TrayMenu.Delete() Topic is solved

lexikos wrote:
24 Sep 2019, 02:25
Fixed in v2.0-a105.
awesome, thanks for the update.
by Maestr0
28 Sep 2019, 02:06
Forum: AutoHotkey v2 Development
Topic: AHK v1 to AHK v2 conversion tips/changes summary
Replies: 5
Views: 2182

Re: AHK v1 to AHK v2 conversion tips/changes summary

Such negativity, what a way to live your life. Anyway, nice idea, jeeswg! Should help some people if you can get it working!
by Maestr0
22 Sep 2019, 06:08
Forum: Ask For Help
Topic: Hide / unhide cursor mouse
Replies: 16
Views: 9815

Re: Hide / unhide cursor mouse

Hi Party People! :dance: I looked at the documentation, but I can't find a solution! How to do this: Hide cursor CoordMode, Mouse, Screen MouseClick, left, 1596, 1050 MouseClick, left, 1420, 565 Show cursor Is this list correct? (in order): 1. hide the mouse cursor 2. click two specific places 3. s...
by Maestr0
30 Aug 2019, 09:04
Forum: AutoHotkey v2 Development
Topic: GUI; treeview and controls
Replies: 7
Views: 608

Re: GUI; treeview and controls

Again, much appreciated! As for the default onevent, I meant for each type, not for all, I guess I should have specified. I'd used the enumeration method already, thanks for that, guess that's what I'll keep using: GuiSetOnEvent(GuiObj,*) { ; this function sets the onevent for each of the GUI items ...
by Maestr0
29 Aug 2019, 05:10
Forum: AutoHotkey v2 Development
Topic: GUI; treeview and controls
Replies: 7
Views: 608

Re: GUI; treeview and controls

This is outside the purview of the TreeView control (and it's already easy to do). Note: A script which contains Map() won't load on a103 if that function is not defined. However, Map.new() is permitted. You could check for the presence or type of Map instead of checking the version number. Thank y...
by Maestr0
27 Aug 2019, 10:42
Forum: AutoHotkey v2 Development
Topic: GUI; treeview and controls
Replies: 7
Views: 608

Re: GUI; treeview and controls

oh, and here's a version (Tab2 works as well) that will work with a103 as well as a104: #persistent gui() return gui() { if ( A_AHKVersion >= "2.0-a104-3e7a969d" ) g_tabIndex := Map() else g_tabIndex := {} GUI_Settings := GuiCreate("+LastFound",A_ScriptName " : Settings") TV := GUI_Settings.Add("Tre...
by Maestr0
27 Aug 2019, 09:20
Forum: AutoHotkey v2 Development
Topic: GUI; treeview and controls
Replies: 7
Views: 608

Re: GUI; treeview and controls

An invisible Tab control would do the trick. I haven't used AHK V2, the following is v1 code. global g_tabIndex := {} Gui, Add, TreeView, w200 gMyTree vMyTree P1 := TVAdd("First parent") P1C1 := TVAdd("Parent 1's first child", P1) Gui, Add, Tab, x+0 w0 h0 vHiddenTab, a|b Gui, Tab, 1 Gui, Add, Text,...
by Maestr0
25 Aug 2019, 09:48
Forum: AutoHotkey v2 Development
Topic: GUI; treeview and controls
Replies: 7
Views: 608

GUI; treeview and controls

Are there plans to adjust the GUI in such a way that a treeview can easily be bound to GUI controls? By that I mean that selecting a treeview on the left of a GUI will hide all controls not bound by that item, and show all controls that are bound by that item. If there already is a good way to do th...
by Maestr0
24 Aug 2019, 09:06
Forum: AutoHotkey v2 Scripts and Functions
Topic: Get Absolute path from relative path
Replies: 2
Views: 541

Re: Get Absolute path from relative path

much appreciated, Lexikos!
by Maestr0
19 Aug 2019, 13:52
Forum: AutoHotkey v2 Help
Topic: [a104] Error with treeview control after install new release. Topic is solved
Replies: 3
Views: 307

Re: [a104] Error with treeview control after install new release. Topic is solved

I just had the same error and figured out how to fix it.... and then I found this thread so I'll just post it here ;) anyway, this works: I'd changed the .Control parts and replaced {} with Map() ; The following folder will be the root folder for the TreeView. Note that loading might take a long ; t...
by Maestr0
19 Aug 2019, 04:48
Forum: Scripts and Functions
Topic: FileVersion() - FileVersionInfo simplified
Replies: 7
Views: 4368

Re: FileVersion() - FileVersionInfo simplified

This version is shorter and also works with ANSI builds: MsgBox % FileGetInfo( comspec ).CompanyName MsgBox % FileGetInfo( A_WinDir "\system32\calc.exe" ).FileDescription FileGetInfo( lptstrFilename) { List := "Comments InternalName ProductName CompanyName LegalCopyright ProductVersion" . " FileDes...
by Maestr0
19 Aug 2019, 04:24
Forum: AutoHotkey v2 Development
Topic: [a104]: Object _Enum error Topic is solved
Replies: 5
Views: 418

Re: [a104]: Object _Enum error Topic is solved

This is a separate issue. Given that you have posted about it in a topic which was already marked as solved, I could have easily missed it. ComObjects translate __Enum to _NewEnum. The problem is that __Enum accepts a parameter, while _NewEnum does not (although it is possible that some COM objects...
by Maestr0
19 Aug 2019, 04:23
Forum: Bug Reports
Topic: a104: Re: [a104] Unknown method error A_TrayMenu.Delete() Topic is solved
Replies: 8
Views: 633

Re: a104: Re: [a104] Unknown method error A_TrayMenu.Delete() Topic is solved

Long story short, the tray menu is created before the Menu object prototype, so the Tray menu has no base object and therefore no predefined methods or properties. This can be used to "fix" the tray menu (v2.0-a104 only): Menu_Prototype := MenuCreate().base ObjAddRef(&Menu_Prototype) NumPut("ptr", ...
by Maestr0
18 Aug 2019, 12:27
Forum: Bug Reports
Topic: a104: Re: [a104] Unknown method error A_TrayMenu.Delete() Topic is solved
Replies: 8
Views: 633

Re: a104: Re: [a104] Unknown method error A_TrayMenu.Delete() Topic is solved

i don't get any such error. I run 1.1.30.01 AHK under Win 7 Pro 32 bit. But, for what it is worth, it also does not clear the tray menu (even after adding a (necessary?) #persistent to the code). What are you running? Hey Joe, thank you for pitching in. Sorry I was unclear, this is a v2 bug report,...
by Maestr0
18 Aug 2019, 09:12
Forum: Bug Reports
Topic: a104: Re: [a104] Unknown method error A_TrayMenu.Delete() Topic is solved
Replies: 8
Views: 633

Re: a104: Re: [a104] Unknown method error A_TrayMenu.Delete() Topic is solved

It seems to be limited to the tray menu, as the code below seems to work just fine (only shows "reload 3"):

Code: Select all

MyMenu := MenuCreate()
MyMenu.Add("reload 1", "reload")
MyMenu.Delete()
MyMenu.Add("reload 3", "reload")

#z::MyMenu.Show  ; i.e. press the Win-Z hotkey to show the menu.
by Maestr0
18 Aug 2019, 08:48
Forum: Bug Reports
Topic: a104: Re: [a104] Unknown method error A_TrayMenu.Delete() Topic is solved
Replies: 8
Views: 633

a104: Re: [a104] Unknown method error A_TrayMenu.Delete() Topic is solved

I posted a question here: https://www.autohotkey.com/boards/viewtopic.php?f=82&t=67201 and also asked in v2 on Discord. It seems there is currently no way to delete the standard tray menu items. Cap'n'Odin thinks it might be due to this: https://github.com/Lexikos/AutoHotkey_L/commit/0c9151f25bc32f9...
by Maestr0
18 Aug 2019, 07:29
Forum: AutoHotkey v2 Help
Topic: [a104] Unknown method error A_TrayMenu.Delete() Topic is solved
Replies: 0
Views: 144

[a104] Unknown method error A_TrayMenu.Delete() Topic is solved

[Moderator's note: See bug report .] Why does this code throw an "Unknown method" error with a104? It's example #3 from "tray menu (customizing)" global tray := A_TrayMenu ; For convenience. tray.delete ; Delete the standard items. tray.Add("reload", "reload") Error: Unknown method. Specifically: de...
by Maestr0
18 Aug 2019, 04:50
Forum: Scripts and Functions
Topic: [Class] JSONFile - easily work with JSON files
Replies: 3
Views: 1926

Re: [Class] JSONFile - easily work with JSON files

RUNIE wrote:
17 Aug 2019, 20:53
Maestr0 wrote:
17 Aug 2019, 11:23
Very cool! Are you going to port it to v2?
Nope. Feel free to post a v2 version here if you decide to do it though.
When v2 is done changing things, I plan to. Right now it's still a bit.... too alpha.
by Maestr0
18 Aug 2019, 04:09
Forum: AutoHotkey v2 Development
Topic: [a104]: Object _Enum error Topic is solved
Replies: 5
Views: 418

Re: [a104]: Object _Enum error Topic is solved

in the help file on Process Functions the second example throws an error "Error: 0x80020011 - Does not support a collection." Specifically: _NewEnum Line# 004: Gui := GuiCreate(, "Process List") 005: LV := Gui.Add("ListView", "x2 y0 w400 h500", "Process Name|Command Line") ---> 006: For process in C...
by Maestr0
17 Aug 2019, 11:23
Forum: Scripts and Functions
Topic: [Class] JSONFile - easily work with JSON files
Replies: 3
Views: 1926

Re: [Class] JSONFile - easily work with JSON files

Very cool! Are you going to port it to v2?

Go to advanced search