Search found 21 matches

by TheBestPessimist
14 Aug 2023, 07:30
Forum: Ask for Help (v2)
Topic: Help with class static property access from inside class
Replies: 10
Views: 670

Re: Help with class static property access from inside class

🤦 you're right. how did i miss that. *sigh*.
So what you're suggesting is: When i want to access a static from a non static function, then i need to use `%this.__Class%` ? Is there a better looking alternative?
by TheBestPessimist
14 Aug 2023, 07:24
Forum: Ask for Help (v2)
Topic: Help with class static property access from inside class
Replies: 10
Views: 670

Re: Help with class static property access from inside class

I meant, why does `this.Tooltips.Delete(whichToolTip)` do not throw any errors? The variable Tooltips is static in the class here: https://github.com/thebestpessimist/autohotkey-scripts/blob/cffb22b7a9ba9e3023fc7ac66189cde067063c32/lib/Tippy2.ahk#L25
by TheBestPessimist
14 Aug 2023, 07:15
Forum: Ask for Help (v2)
Topic: Help with class static property access from inside class
Replies: 10
Views: 670

Re: Help with class static property access from inside class

In that case, could you pls check why accessing this static works for me? https://github.com/thebestpessimist/autohotkey-scripts/blob/cffb22b7a9ba9e3023fc7ac66189cde067063c32/lib/Tippy2.ahk#L120 Tooltips is a static map, and it is being accessed via this: this.Tooltips That code (WIP) works as expec...
by TheBestPessimist
14 Aug 2023, 07:02
Forum: Ask for Help (v2)
Topic: Help with class static property access from inside class
Replies: 10
Views: 670

Re: Help with class static property access from inside class

teadrinker Thank you for the reply. This already works from a function (but not from constructor): Tooltip(this.V) ; ✅ this also works! 🎉 and looks cleaner than your suggestion. After testing your suggestion, it works in the constructor too, which alleviates the problem of needing to use "ClassName...
by TheBestPessimist
14 Aug 2023, 04:48
Forum: Ask for Help (v2)
Topic: Help with class static property access from inside class
Replies: 10
Views: 670

Help with class static property access from inside class

I find the following case super weird in AHK compared to normal programming languages: When inside a class, why can't i access the static properties directly by their name? Why must I always use the className.propertyName syntax, as if i was accessing that static from outside of the class? From outs...
by TheBestPessimist
02 Dec 2021, 09:01
Forum: Ask for Help (v1)
Topic: Porting an AutoHotKey project to Java
Replies: 3
Views: 701

Re: Porting an AutoHotKey project to Java

Earil wrote:
17 Jan 2020, 02:53
Thanks a lot, I will look into that asap !
Do you have any updates on this journey? I would like to call AHK functions from Kotlin, so if someone has already done some groundwork, I would like to see it.
by TheBestPessimist
06 Jul 2019, 01:40
Forum: Ask for Help (v1)
Topic: Vista Audio Control Functions & #Warn
Replies: 5
Views: 1718

Re: Vista Audio Control Functions & #Warn

But you probably knew some of that if you were setting balance (hard to tell since your link was broken). I updated the link: https://github.com/TheBestPessimist/AutoHotKey-Scripts/blob/master/SoundBalance.ahk Yeah, i knew that stuff about the balance. My issue is: since i have gone out of my way t...
by TheBestPessimist
12 May 2019, 23:24
Forum: Ask for Help (v1)
Topic: hotstring doesn't ignore ctrl+v Topic is solved
Replies: 7
Views: 1624

Re: hotstring doesn't ignore ctrl+v Topic is solved

How would the hotstring recognizer know what will happen after you press Ctrl+V? There's no need for that. Hotstring recognition is based on what you type In the latter case, Ctrl+V would be converted to Chr(22). Command prompt produces the same character when you press Ctrl+V on Windows 8.1 and ea...
by TheBestPessimist
11 May 2019, 23:16
Forum: Ask for Help (v1)
Topic: hotstring doesn't ignore ctrl+v Topic is solved
Replies: 7
Views: 1624

Re: hotstring doesn't ignore ctrl+v Topic is solved

Thanks for your answers, no idea why but the forum didn't mail me when you replied, so only now i thought to check the forums by hand. Re: Which part of the docs make you think that? I can't find anything supporting this assertion. Here's my understanding: my hotstring trigger is :OB0:__:: which doe...
by TheBestPessimist
10 May 2019, 13:53
Forum: Ask for Help (v1)
Topic: hotstring doesn't ignore ctrl+v Topic is solved
Replies: 7
Views: 1624

hotstring doesn't ignore ctrl+v Topic is solved

[Moderator's note: Topic moved from Bug Reports.] I use a markdown hotstring :OB0:__::{left 1} to write italics faster (same is applicable for writing `` or ** ). What i want the hotstring to do is: 1. write 2 underscores 2. press space, enter 3. cursor is moved inbetween the 2 underscores, so that...
by TheBestPessimist
02 May 2019, 12:15
Forum: Scripts and Functions (v1)
Topic: [lib] Tippy -- Multiple ToolTips which follow mouse
Replies: 11
Views: 3443

Re: [lib] Tippy -- Multiple ToolTips which follow mouse

Pushed. You can test again by moving the cursor in lower right portion of both screens and see if the tooltip moves away.
by TheBestPessimist
02 May 2019, 11:24
Forum: Scripts and Functions (v1)
Topic: [lib] Tippy -- Multiple ToolTips which follow mouse
Replies: 11
Views: 3443

Re: [lib] Tippy -- Multiple ToolTips which follow mouse

I dont' have dual screen so i cant test it tho :)).
by TheBestPessimist
02 May 2019, 11:08
Forum: Scripts and Functions (v1)
Topic: [lib] Tippy -- Multiple ToolTips which follow mouse
Replies: 11
Views: 3443

Re: [lib] Tippy -- Multiple ToolTips which follow mouse

Hello @elModo7 and thanks for checking it out :) !

I just found a bug where it doesn't work properly when having multiple monitors, but i'll fix that and push to the repo soon.
by TheBestPessimist
01 May 2019, 11:35
Forum: Scripts and Functions (v1)
Topic: [lib] Tippy -- Multiple ToolTips which follow mouse
Replies: 11
Views: 3443

[lib] Tippy -- Multiple ToolTips which follow mouse

Hello, I created a ToolTip library which can show multiple tooltips that follow the mouse. Multiple ToolTips are stacked vertically, so no information is hidden, and they can be displayed for a configurable amount of time. The library is found here: https git.tbp.land /AutoHotKey-Scripts/blob/master...
by TheBestPessimist
14 Feb 2019, 00:49
Forum: Off-topic Discussion
Topic: Test your Forum Posts
Replies: 422
Views: 219837

Re: Test your Forum Posts

test test test 1 2 3 4
by TheBestPessimist
13 Feb 2019, 02:40
Forum: Scripts and Functions (v1)
Topic: HelpText - Hotkey Management Tool
Replies: 4
Views: 1642

Re: HelpText - Hotkey Management Tool

Would you like to give us a link to this script ?
by TheBestPessimist
12 Feb 2019, 13:24
Forum: Ask for Help (v1)
Topic: Vista Audio Control Functions & #Warn
Replies: 5
Views: 1718

Re: Vista Audio Control Functions

> probably mostly un-initialized local variables are causing them Yes, that's (almost?) all the errors i'm seeing. If you think there are no problems then i'm fine with that as yes, the library works for what i need it :). > I would recommend to use the 'Ask for Help' subforum next time, for questio...
by TheBestPessimist
08 Feb 2019, 10:44
Forum: Ask for Help (v1)
Topic: Vista Audio Control Functions & #Warn
Replies: 5
Views: 1718

Vista Audio Control Functions & #Warn

[Moderator's note: Topic moved from Scripts & Functions.] Hey folks, In my scripts (and because windows is retarded) i am using the Vista Audio Control Functions (Ref: https://autohotkey.com/board/topic/21984-vista-audio-control-functions/). As i'm trying to check my scripts using the #Warn directi...

Go to advanced search