Search found 455 matches

by zcooler
17 Jun 2017, 14:45
Forum: Ask for Help (v1)
Topic: Treeview population issues
Replies: 2
Views: 684

Treeview population issues

Hi! My script is suffering from a bug which I cant seem understand why that is nor how to prevent it from happening. Each button is tied to a certain folder. Pressing a button (GetFiles) loads all folder contents (for that folder) in a treeview. One of the buttons (music collection) is associated wi...
by zcooler
15 Jun 2017, 14:45
Forum: Ask for Help (v1)
Topic: Find likeliest logo to string
Replies: 4
Views: 882

Re: Find likeliest logo to string

Xtra wrote:I added a faster method in an edit.

It does lookup based on key.
Yes, I did see that and contemplating it. Hmm...yeah it might be possible to do the keys that way when creating the array from a file loop and parse. Good idea, many thanks Xtra :)
Man, the faster method was very nice...

:wave:
by zcooler
15 Jun 2017, 14:37
Forum: Ask for Help (v1)
Topic: Find likeliest logo to string
Replies: 4
Views: 882

Re: Find likeliest logo to string

Oh thanks, really smart way to handle it using the StrReplace() :)

Regards
zcooler
by zcooler
15 Jun 2017, 13:55
Forum: Ask for Help (v1)
Topic: Find likeliest logo to string
Replies: 4
Views: 882

Find likeliest logo to string

Hmm...this was way tricker than I anticipated, mainly cuz the needle is not known on before hand. Im trying to find which is the likeliest logo for the string. In this case its logo8. The string changes all the time, but haystack of logos doesnt. Array := {logo1: "C:\Program Files (x86)\DVBViewer\Im...
by zcooler
14 Jun 2017, 12:04
Forum: Ask for Help (v1)
Topic: Chosen jQuery plugin in an ActiveX control
Replies: 0
Views: 434

Chosen jQuery plugin in an ActiveX control

Hi! Im not particular happy with what AHK has to offer when it comes to Combi and DDL controls and thought about having a html search box with dropdown menu in an activeX control. Sure its no problem to show a few links and some styling within the control but implementing a jQuery plugin into it is ...
by zcooler
11 Jun 2017, 02:02
Forum: Ask for Help (v1)
Topic: Disable keyboard focus when leftclick on hidden buttons
Replies: 3
Views: 809

Re: Disable keyboard focus when leftclick on hidden buttons

Sorry, I did a stupid mistake applying the GuiControlShowHide() inside a loop. Rendering the buttons only masked and not hidden :facepalm:
by zcooler
10 Jun 2017, 14:49
Forum: Ask for Help (v1)
Topic: Disable keyboard focus when leftclick on hidden buttons
Replies: 3
Views: 809

Re: Disable keyboard focus when leftclick on hidden buttons

Hi Helgef :) Huh, when doing a rudimentary gui with buttons it works :o #NoEnv Gui, Add, Button, vB1 Default, OK Gui, Add, Button, vB2, &Pause Gui, Add, Button, vB3, &Stop Gui, Add, Button, vB4, &Next Gui, Add, Button, vB5, &Hidden1 Gui, Add, Button, vB6, &Hidden2 Gui, Add, Button, vB7, &Hidden3 Gui...
by zcooler
10 Jun 2017, 12:28
Forum: Ask for Help (v1)
Topic: Disable keyboard focus when leftclick on hidden buttons
Replies: 3
Views: 809

Disable keyboard focus when leftclick on hidden buttons

Cant seem to find any info on how to avoid hidden Gui button controls gets keyboard focus when left clicked. It results in user does not know which button has keyboard focus since these are hidden and masked (focus rectangle is the same color as the masking), so when keyboard navigating, up and down...
by zcooler
06 Jun 2017, 16:46
Forum: Ask for Help (v1)
Topic: Tab name change
Replies: 2
Views: 676

Re: Tab name change

Phew...you saved me from a very time consuming rewrite! Many thanks A_AhkUser :)
by zcooler
06 Jun 2017, 15:57
Forum: Ask for Help (v1)
Topic: Tab name change
Replies: 2
Views: 676

Tab name change

Hello! Did found out changing names on tabs are not entirely easy programmatically. Toralf did found a really simple method though many years ago, but it comes with a sideeffect which im wondering if its fixable. When the name change occurs it always skips to Tab1 and activates it, despite the Guico...
by zcooler
06 Jun 2017, 08:00
Forum: Scripts and Functions (v1)
Topic: class_EasyIni:Native syntax-Ini.Section.Key:=val +Formatting
Replies: 18
Views: 10566

Re: class_EasyIni:Native syntax-Ini.Section.Key:=val +Formatting

Hello! Im having difficulties how to utilize the "Default" option in IniRead within this EasyIni syntax. For example I have this IniRead command with ternary operators setting defaults (when keys and values does not exist yet) I would like to get working, but EasyIni does (as tested so far) not like...
by zcooler
04 Jun 2017, 02:20
Forum: Ask for Help (v1)
Topic: EasyIni syntax
Replies: 0
Views: 360

EasyIni syntax

Hi, Im having a hard time converting this IniRead command with this ternary operator into EasyIni syntax https://autohotkey.com/boards/viewtopic.php?f=6&t=5522 Have tried pretty much everything I could think of. EasyIni seems to be using sError to avoid defaulting into ERROR. How should i do this? I...
by zcooler
01 Jun 2017, 13:56
Forum: Ask for Help (v1)
Topic: Subclassed Flat Coloured pushButtons - focus rectangle
Replies: 0
Views: 405

Subclassed Flat Coloured pushButtons - focus rectangle

I dont think just me has published this ImageButton based function. Not having much hope getting any explanation or pointers solving the problem with the focus rectangle can appear "twice" (on multiple buttons simultaneously) Im reluctant to produce a working script displaying the issue. That would ...
by zcooler
28 May 2017, 13:12
Forum: Ask for Help (v1)
Topic: Close Thumbnail when cursor leaves client or menu area
Replies: 3
Views: 821

Re: Close Thumbnail when cursor leaves client or menu area

Bump
Hmm...where are all the skillful guys that usually solve these tricky GUI issues in a heartbeat? Masterful folks like just me is not interested anymore...sad days for me and for the AHK forum in general :(
by zcooler
24 May 2017, 16:31
Forum: Ask for Help (v1)
Topic: Efficient files and folders treeview population
Replies: 2
Views: 745

Re: Efficient files and folders treeview population

You have not mentioned how long it takes? Yes, I left that out intentionally to avoid getting caught up in such discussions. The timings might be dependent on which kind of drive you have those files and folders stored on. For me +6000 files and folders gives approximately a 3 second load time (som...
by zcooler
24 May 2017, 15:12
Forum: Ask for Help (v1)
Topic: Efficient files and folders treeview population
Replies: 2
Views: 745

Efficient files and folders treeview population

Hi! Im getting increasingly concerned with how long it takes to populate a 30 row treeview if the folder im populating the treeview with contains large amounts of files and/or folders. So I decided to try to find something that would do this more efficient. It got tricky rather fast though. I would ...
by zcooler
24 May 2017, 06:04
Forum: AutoHotkey_H
Topic: Multithreading AddFoldersAndFilesToTree
Replies: 1
Views: 1698

Re: Multithreading AddFoldersAndFilesToTree

Stackoverflow advise strongly against multithreading writing to UI, but reading (the fileLists) is no problem. Hmm..ok maybe this is not the right way to go. Load only what people can see in a first stage and then a second stage background loading might be the better way.
by zcooler
24 May 2017, 05:00
Forum: AutoHotkey_H
Topic: Multithreading AddFoldersAndFilesToTree
Replies: 1
Views: 1698

Multithreading AddFoldersAndFilesToTree

I do wonder if multithreading add folders and files (huge amounts of folders and files) would accomplish faster treeview loadtime? AddFoldersAndFilesToTree(Folder, ParentID := 0, First := 0) { ;FileFilter := FileFilters[IniSec] ;*FILEFILTER* ;--FOLDER HANDLING----------------------------------------...
by zcooler
20 May 2017, 17:06
Forum: Ask for Help (v1)
Topic: Scale thumbnail clone to always fit GUI Topic is solved
Replies: 17
Views: 2685

Re: Scale thumbnail clone to always fit GUI Topic is solved

Must be something with the ratio calculations. I will go over it tomorrow. Many thanks for your support :wave:
by zcooler
20 May 2017, 16:49
Forum: Ask for Help (v1)
Topic: Scale thumbnail clone to always fit GUI Topic is solved
Replies: 17
Views: 2685

Re: Scale thumbnail clone to always fit GUI Topic is solved

No other flags related to that as far as I know. You might want to swap WinGetPos, RegionX, RegionY, RegionW, RegionH, ahk_class TfrmMain for GetClientRect(hSource,RegionW, RegionH) though. And make sure hSource is defined when calling GetClientRect , hSouce is currently assigned after the WinGetPo...

Go to advanced search