Search found 90 matches

by emmanuel d
15 Nov 2023, 14:12
Forum: Scripts and Functions (v2)
Topic: Script Dehumanizer
Replies: 5
Views: 989

Re: Script Dehumanizer

:lol: both, source and obfuscated but let me give you the readable version, for in case you are afraid to execute: #Requires AutoHotkey v2.0 #SingleInstance force #Warn All G_File := A_ScriptFullPath Test := G_File?"":" " ; this is nothing FileExist(G_File) ? "" : Exitapp() SplitPath(G_File,&G_Scrip...
by emmanuel d
15 Nov 2023, 10:10
Forum: Scripts and Functions (v2)
Topic: Object oriented path library, mirroring methods of Pathlib.py
Replies: 5
Views: 808

Re: Object oriented path library, mirroring methods of Pathlib.py

This whole thing:

Code: Select all

    exists()
    {
        if FileExist(this.path) or DirExist(this.path)
        {
            return true
        } else
        {
            return false
        }
    }
Could be replaced with this:

Code: Select all

exists() => FileExist(this.path)
by emmanuel d
15 Nov 2023, 10:07
Forum: Scripts and Functions (v2)
Topic: Object oriented path library, mirroring methods of Pathlib.py
Replies: 5
Views: 808

Re: Object oriented path library, mirroring methods of Pathlib.py

FYI

Code: Select all

if FileExist(this.path) or DirExist(this.path)
should be:

Code: Select all

if FileExist(this.path)

FileExist works for files and folders, DirExist is for not having to do the extra instr for "D"
by emmanuel d
15 Nov 2023, 09:59
Forum: Scripts and Functions (v2)
Topic: Script Dehumanizer
Replies: 5
Views: 989

Re: Script Dehumanizer

Ps change A_ScriptFullPath for your own file, and copy the text from the msgbox
by emmanuel d
15 Nov 2023, 09:52
Forum: Scripts and Functions (v2)
Topic: Script Dehumanizer
Replies: 5
Views: 989

Script Dehumanizer

I was thinking of mo old ipod, and how crappy apple handles all the data. They made it inhumane to play music if you connected it as a harddisk and want tu use your default player to play it. Randomly putting music in a 2 character hex folder, and naming the files similar. So i was inspired to do th...
by emmanuel d
25 Oct 2023, 11:16
Forum: Scripts and Functions (v2)
Topic: myTrayTip() - custom TrayTip - _ - collaborate?
Replies: 12
Views: 2951

Re: myTrayTip() - custom TrayTip - _ - collaborate?

Hmm, I didn't know specifying the range instead ofthe automatic 100% is smoother. Are you sure it's not just smoother because you lowered the timer to 10 ms? I didn't find any mention of it in doc. The timer is irrelevant, The width of the gui is 250px, how is the control that only allows 100 posit...
by emmanuel d
21 Oct 2023, 11:10
Forum: Scripts and Functions (v2)
Topic: myTrayTip() - custom TrayTip - _ - collaborate?
Replies: 12
Views: 2951

Re: myTrayTip() - custom TrayTip - _ - collaborate?

Did you do it again? Or partly? No i just continued with what i have. not going to start over Thanks, but now Range0-" S_W) ; Set the range equal to the pixels is not necessary anymore either since it does it automatically or is this a dpiscaling thing again? That has nothing to do with DPI or auto...
by emmanuel d
20 Oct 2023, 12:51
Forum: Scripts and Functions (v2)
Topic: myTrayTip() - custom TrayTip - _ - collaborate?
Replies: 12
Views: 2951

Re: myTrayTip() - custom TrayTip - _ - collaborate?

[*]Any reason why you didn't use the last version in OP? I put some things back. Could you comment if there was a reason for not using those things? I'll adjust if so. hehe no :roll: [*] g.marginY:=0 is there for aesthetic reasons. It makes the progress bar at bottom without margin. I know, made so...
by emmanuel d
19 Oct 2023, 08:00
Forum: Scripts and Functions (v2)
Topic: myTrayTip() - custom TrayTip - _ - collaborate?
Replies: 12
Views: 2951

Re: myTrayTip() - custom TrayTip - _ - collaborate?

Also noticed that it takes focus from the active window. Fixed: ;https://www.autohotkey.com/boards/viewtopic.php?f=83&t=121509 #SingleInstance force ; Allow only one instance of this script to be running. #Requires AutoHotkey v2 myTrayTip(tip, titl:="Autohotkey", secs:=3) { Static trays := [] ; Tray...
by emmanuel d
19 Oct 2023, 07:54
Forum: Scripts and Functions (v2)
Topic: myTrayTip() - custom TrayTip - _ - collaborate?
Replies: 12
Views: 2951

Re: myTrayTip() - custom TrayTip - _ - collaborate?

Single function, and fixed it for dpiscaling ;https://www.autohotkey.com/boards/viewtopic.php?f=83&t=121509 #SingleInstance force ; Allow only one instance of this script to be running. #Requires AutoHotkey v2 myTrayTip(tip, titl:="Autohotkey", secs:=3) { Static trays := [] ; TrayTip(tip, titl) ; ve...
by emmanuel d
19 Oct 2023, 04:11
Forum: Suggestions on Documentation Improvements
Topic: Array in index
Replies: 4
Views: 751

Re: Array in index

i am only talking about the index in the chm helpfile There is only one entry called "Array" And when you search for it, you might actually want the other types of array. And they aren't there. And if you click that array it goes to the class array page, but the other types aren't mentioned there ei...
by emmanuel d
19 Oct 2023, 01:54
Forum: Suggestions on Documentation Improvements
Topic: Array in index
Replies: 4
Views: 751

Array in index

When we look in the index for array there is only one entry, usually the one i don't want. Then i have no idea what to actually look for. can de index please have some added entry's, so it would say Array ; This would be linkt to: "Objects" where all of them are. now it links to "Array Object" Array...
by emmanuel d
19 Oct 2023, 01:30
Forum: AutoHotkey Development
Topic: [Wish]: Allow Break Outside of a Loop, Such as In a Function
Replies: 15
Views: 3246

Re: [Wish]: Allow Break Outside of a Loop, Such as In a Function

I was mistaken Esc was blocked by my text editor, this works as expected: #Requires AutoHotkey v2.0 #SingleInstance force ; ESCAPE SEQUENCE----------------------------> ToolTip "init" ExitVar := 0 Esc:: { global MsgBox "esc pressed" ExitVar := 1 } LoopExiter(ExitVar){ if(ExitVar = 1){ ExitVar := 0 M...
by emmanuel d
19 Oct 2023, 01:00
Forum: AutoHotkey Development
Topic: [Wish]: Allow Break Outside of a Loop, Such as In a Function
Replies: 15
Views: 3246

Re: [Wish]: Allow Break Outside of a Loop, Such as In a Function

In your case exitvar is always 0
and esc is never executed, due to autohotkey is single threaded.
you have a msgbox there so you know that while F7 runs, that msgbox will never be executed

see next post.
by emmanuel d
19 Oct 2023, 00:45
Forum: AutoHotkey Development
Topic: [Wish]: Allow Break Outside of a Loop, Such as In a Function
Replies: 15
Views: 3246

Re: [Wish]: Allow Break Outside of a Loop, Such as In a Function

There were many times i wanted to break out of a If statement. But in a function u use return to break out of it. use a proper result, like 0 or a true value in your return. If the function returns 0 break out of the loop, else keep going, that is easy and verry readable. Loop { ; Infinit loop If !S...
by emmanuel d
10 Oct 2023, 10:37
Forum: Ask for Help (v2)
Topic: [v2] ListView Filter Bar
Replies: 9
Views: 1568

Re: [v2] ListView Filter Bar

thx allot
by emmanuel d
23 Sep 2023, 12:41
Forum: Ask for Help (v2)
Topic: [v2] ListView Filter Bar
Replies: 9
Views: 1568

Re: [v2] ListView Filter Bar

Thank you sir, I am sure that is correct what you are saying, adjusted it, but still. :( Got the error, that my first parameter is incorrect. I tried buffer and Varsetstrcapacity and &varref and so but no luck L_Str := StrGet(filterText, filterTextLength, "UTF-16") i am just flying blind here :shif...
by emmanuel d
23 Sep 2023, 12:33
Forum: Ask for Help (v2)
Topic: Load A ImageList in a second Script
Replies: 4
Views: 424

Re: Load A ImageList in a second Script

That makes no sense to me, we use handles of other things for different scripts all the time. :shock:
you can change all kind of content of other controls that dont belong to the script. :eh:
So if it is just a handle, we should be capable of using it :think:

Go to advanced search