Search found 1906 matches

by FanaticGuru
12 May 2023, 14:06
Forum: Scripts and Functions (v2)
Topic: [a108] N-dimensional map.
Replies: 8
Views: 3290

Re: [a108] N-dimensional map.

Helgef wrote:
12 May 2023, 12:58
also,

Code: Select all

map.prototype := map_n.prototype

Well, yea, there is that.

Luckily, I did not think of that at first or I would not have learned nearly as much.

FG
by FanaticGuru
11 May 2023, 18:06
Forum: Ask for Help (v1)
Topic: WinMinimize with Advanced Renamer Software has unintended behaviour
Replies: 3
Views: 342

Re: WinMinimize with Advanced Renamer Software has unintended behaviour

I use "WinMinimize, A" to Minimize all my Windows and Software. For some reason Advanced Renamer Minimizes to the Taskbar only when you click on the Minimize Icon in the Titlebar. When I use my AutoHotkey Hotkeys to execute "WinMinimize, A", Advanced Renamer "Minimizes" to some weird little bar at ...
by FanaticGuru
11 May 2023, 13:53
Forum: Ask for Help (v2)
Topic: What are the main challenges of switching to v2?
Replies: 5
Views: 516

Re: What are the main challenges of switching to v2?

I've been putting off switching to v2 for a while now. Just as a general overall question, what are the main differences or challenges you have faced when switching from v1 to v2? Any insights would be greatly appreciated. Two things seem quite a bit different. Objects and Gui. v1 had one generic o...
by FanaticGuru
10 May 2023, 16:34
Forum: Scripts and Functions (v2)
Topic: [a108] N-dimensional map.
Replies: 8
Views: 3290

Re: [a108] N-dimensional map.

Could you show me how to convert this so that it modifies the Map base object through prototype other than extending it with MapN? class MultiDimMap { static __New() { __set := Map.Prototype.GetOwnPropDesc("__Item").set __get := Map.Prototype.GetOwnPropDesc("__Item").get Map.Prototype.DefineProp("_...
by FanaticGuru
08 May 2023, 15:23
Forum: Scripts and Functions (v2)
Topic: [a108] N-dimensional map.
Replies: 8
Views: 3290

Re: [a108] N-dimensional map.

Helgef wrote:
30 Mar 2020, 09:39
To allow storing values at any depth, eg, myMap[1,2,3] := myValue.

See :arrow: github for source and example. Please report any problems.

Could you show me how to convert this so that it modifies the Map base object through prototype other than extending it with MapN?

FG
by FanaticGuru
08 May 2023, 14:29
Forum: Ask for Help (v2)
Topic: how to create nesting object Topic is solved
Replies: 3
Views: 448

Re: how to create nesting object Topic is solved

v1 code: a:={} a["b","c","d","e"]:=3 MsgBox % a.b.c.d.e v2 how to create this? In v2, you are mixing two things: a:={} <-- this is object syntax a["b","c","d","e"]:=3 <-- this is map syntax (multi-dimensional map) MsgBox % a.b.c.d.e <-- this is object syntax If you want to use an object with proper...
by FanaticGuru
05 May 2023, 17:29
Forum: Ask for Help (v2)
Topic: Modifying Clipboard Binary Data of Formatted Text
Replies: 6
Views: 637

Re: Modifying Clipboard Binary Data of Formatted Text

@wetware05 thank you! Your solution may work, I'm gonna do some tests today or tomorrow. However, so far I am able to restart my computer and the "CompanyLetter.Clip" file does successfully paste properly when I load it into the clip board, perhaps because it's copied from a fixed word doc on my sy...
by FanaticGuru
05 May 2023, 15:47
Forum: Scripts and Functions (v2)
Topic: Easy OCR
Replies: 78
Views: 15826

Re: Easy OCR alpha

@FanaticGuru, yes, this appears to be a limitation of the base Windows.Media.Ocr. I've implemented a fix for FromBitmap so the bitmap is resized to at least 40x40 if necessary, and filled with a solid background color. Changing the size of a RandomAccessStream proved to be too difficult for me, so ...
by FanaticGuru
05 May 2023, 15:33
Forum: Scripts and Functions (v2)
Topic: Snipper - Window Snipping Tool
Replies: 125
Views: 26286

Re: Snipper - Window Snipping Tool

One word is being used so frequently here that I would greatly appreciate it if @Deskolada could also work on this. You never know what the future may bring and if it doesn't take too much of your time, so I hope it's not too much to ask for. :) Updated the OCR extension with updated OCR library th...
by FanaticGuru
04 May 2023, 17:06
Forum: Ask for Help (v2)
Topic: V2 Run command with Min Option
Replies: 2
Views: 298

Re: V2 Run command with Min Option

I am attempting to use the Run command with the Min option and am having a problem making it work. Here is the run command without any options that works correctly: run ('"C:\Program Files\GPSoftware\Directory Opus\dopus.exe"') I then attempt to add the Min option without quotes and it generates a ...
by FanaticGuru
04 May 2023, 11:57
Forum: Ask for Help (v2)
Topic: Adjust text inside a button control? Topic is solved
Replies: 13
Views: 863

Re: Adjust text inside a button control? Topic is solved

Another option, although more involved, is to use images for buttons, which you can make look exactly how you would like them -- alignment, font, background color, icons/images, etc. There are libraries/classes that have been posted on the forum (at least for v1) that allow you to use multiple imag...
by FanaticGuru
04 May 2023, 11:46
Forum: Ask for Help (v2)
Topic: I miss A_GuiControl in v1 - How to use the GuiControl.Name in functions now?? Topic is solved
Replies: 10
Views: 855

Re: I miss A_GuiControl in v1 - How to use the GuiControl.Name in functions now?? Topic is solved

Or like this: gui1 := Gui() gui1.AddButton('w230 vMyDocs', 'My Docs').OnEvent('Click', btn_Click.Bind(A_MyDocuments)) gui1.Show() btn_Click(params*) { MsgBox 'name: ' . params[2].name . '`nfolder: ' . params[1] } Yes, Bind is another good tool in the toolbox. If you don't need a static handle to th...
by FanaticGuru
03 May 2023, 19:44
Forum: Ask for Help (v2)
Topic: I miss A_GuiControl in v1 - How to use the GuiControl.Name in functions now?? Topic is solved
Replies: 10
Views: 855

Re: I miss A_GuiControl in v1 - How to use the GuiControl.Name in functions now?? Topic is solved

The above uses a Gui object to store stuff but just in general I would embrace v2 and objects. ; I would practically never use a | to store multipe data items in a string ; Better to use an object of some sort ; Like an Array MyDocs := ['Docs', 'C:\Users\' A_UserName '\Documents\'] MyPics := ['Pics'...
by FanaticGuru
03 May 2023, 19:23
Forum: Ask for Help (v2)
Topic: I miss A_GuiControl in v1 - How to use the GuiControl.Name in functions now?? Topic is solved
Replies: 10
Views: 855

Re: I miss A_GuiControl in v1 - How to use the GuiControl.Name in functions now?? Topic is solved

To make it understandable for myself, I wrote the function this way: btn_Click(controlType, validProperty) #Requires AutoHotkey v2.0 ; Variables containing "Name" and Directory separated by a "|" MyDocs := 'Docs|C:\Users\' A_UserName '\Documents\' MyPics := 'Pics|C:\Users\' A_UserName '\Pictures\' ...
by FanaticGuru
03 May 2023, 18:07
Forum: Ask for Help (v2)
Topic: Adjust text inside a button control? Topic is solved
Replies: 13
Views: 863

Re: Adjust text inside a button control? Topic is solved

#Requires AutoHotkey v2.0.2 #SingleInstance Force MyGui := Gui() MyGui.Add("Button", "w250", "More than one word button name.") ;Looks bad for my use MyGui.Add("Button", "wp", "OK.") ; looks ugly for my use MyGui.Add("Button", "wp", "More than one word button name. (COW)") ;Look fine for my use but...
by FanaticGuru
03 May 2023, 12:56
Forum: Scripts and Functions (v2)
Topic: Easy OCR
Replies: 78
Views: 15826

Re: Easy OCR alpha

OCR appears to have a limit that the image cannot be smaller than 40 pixels in any dimension whether as a bitmap or file.

Is this a limitation of the base API?

If so, could an option to fill smaller images with white space or scale up to the minimum be added to FromFile and FromBitmap?

FG
by FanaticGuru
03 May 2023, 12:32
Forum: Scripts and Functions (v2)
Topic: Snipper - Window Snipping Tool
Replies: 125
Views: 26286

Re: Snipper - Window Snipping Tool

Wow, works great! Thank you for that Extension! But, for me it does not do OCR before the size "tooltip?" is displayed. It means that e.g a single word "Hello" doesn't ocr. Why? It appears the OCR library will not process images that are smaller than a certain size in either dimension. I am not sur...
by FanaticGuru
03 May 2023, 11:37
Forum: Scripts and Functions (v1)
Topic: AHK Startup (Consolidate AHK Scripts' Tray Icons)
Replies: 115
Views: 73211

Re: AHK Startup (Consolidate AHK Scripts' Tray Icons)

I re-created my Scripts for V2 and have downloaded your newest version of AHK Startup, after editing the paths in the " Join " section and try to run the script i get this error am i supposed to edit this aswell? Error: Missing space or operator before this. Specifically: "" Script.RunPath """ """ ...
by FanaticGuru
02 May 2023, 18:06
Forum: Scripts and Functions (v2)
Topic: Snipper - Window Snipping Tool
Replies: 125
Views: 26286

Re: Snipper - Window Snipping Tool

Added OCR extension to the Snipper Extensions post here:

Snipper Extensions

FG
by FanaticGuru
29 Apr 2023, 21:01
Forum: Scripts and Functions (v2)
Topic: Snipper - Window Snipping Tool
Replies: 125
Views: 26286

Re: Snipper - Window Snipping Tool

Updated in First Post Change Log: 2023 04 29 Added Settings that are saved to ini file and loaded on script startup Dynamic creation of context menu Streamlined context menu where the saving or coping of borders is indicated by a checkmark that can be controlled through the Settings dialog More mod...

Go to advanced search