Search found 36 matches

by smrt1
24 May 2024, 13:08
Forum: Scripts and Functions (v2)
Topic: Umlaute v2
Replies: 3
Views: 555

Re: Umlaute v2

I'm french and am using something like this:

Code: Select all

:*:éé::É
:*:èè::È
:*:çç::Ç
:*:àà::À
:*:ââ::Â
:*:êê::Ê
:*:îî::Î
:*:ôô::Ô
:*:ûû::Û
:*:oe::œ
So, you quickly hit the key twice to have the uppercase counterpart.
by smrt1
24 May 2024, 13:05
Forum: Ask for Help (v2)
Topic: OnExit reason is always "0" (v2.0.15)
Replies: 9
Views: 820

Re: OnExit reason is always "0" (v2.0.15)

@lexikos Thank you.
by smrt1
19 May 2024, 16:35
Forum: Ask for Help (v2)
Topic: OnExit reason is always "0" (v2.0.15)
Replies: 9
Views: 820

Re: OnExist reason is always "0" (v2.0.15)

Ragnar wrote:
19 May 2024, 14:40
Thanks, but it's not a bug. The exit reason is stored in the hidden first parameter named this. See https://www.autohotkey.com/docs/v2/Objects.htm#Custom_Classes_method
Ok, thank you.
I'll never understand this "this" thing :(
by smrt1
19 May 2024, 13:16
Forum: Ask for Help (v2)
Topic: OnExit reason is always "0" (v2.0.15)
Replies: 9
Views: 820

Re: OnExist reason is always "0" (v2.0.15)

Then show us your script. If it is too large or contains sensitive data, reduce it to a minimum where this supposed bug still occurs. Same behavior with this: class runbox { static __New() { OnExit(runbox.Exit) } static Exit(*) { } } class runbox2 { static __New() { OnExit(runbox2.Exit) } static Ex...
by smrt1
19 May 2024, 08:42
Forum: Ask for Help (v2)
Topic: OnExit reason is always "0" (v2.0.15)
Replies: 9
Views: 820

Re: OnExist reason is always "0" (v2.0.15)

When I run this script, I get the following output: 1=Exit 2=0 As expected, the exit reason is "Exit" and the exit code is 0. The exit code is always 0 unless specified otherwise via Exit or ExitApp. I have several OnExit(f) in my script - maybe it has something to do - and when I call ExitApp(999)...
by smrt1
19 May 2024, 03:53
Forum: Ask for Help (v2)
Topic: OnExit reason is always "0" (v2.0.15)
Replies: 9
Views: 820

OnExit reason is always "0" (v2.0.15)

[Moderator's note: Topic moved from Bug Reports.] Hello, Because I couldn't retrieve the exit reason, I've wrote this little exit function which reveal some kind of bug in "OnExit". Whatever method used to terminate the script (reload, system shutdown, etc.) it always produce a single value: 0 OnEx...
by smrt1
29 Sep 2023, 23:35
Forum: Ask for Help (v1)
Topic: Script to run everyday at sunset Topic is solved
Replies: 70
Views: 9468

Re: Script to run everyday at sunset Topic is solved

SKAN wrote:
19 Jan 2022, 11:23
Hi @Drugwash
Overkill : Try Swiss Ephemeris
Spoiler
Hi,

Would you mind sharing that so we can have a working example of Swiss Ephemeris use ?
by smrt1
01 Jun 2022, 01:41
Forum: Scripts and Functions (v2)
Topic: Winget, an alternative to WinSpy
Replies: 2
Views: 1081

Re: Winget, an alternative to WinSpy

Micromegas wrote:
31 May 2022, 07:48
What advantages does it have over WinSpy? Is there any documentation other than the two lines above?
Just look at the pictures ; other than that, it fully suit MY needs.
by smrt1
11 May 2022, 16:14
Forum: Ask for Help (v2)
Topic: Within a property's setter, how can one rename the second parameter "value"?
Replies: 1
Views: 368

Re: Within a property's setter, how can one rename the second parameter "value"?

It is not clear to me how the word "value" comes from anywhere. If I wanted to change the word "name" I could rename the parameter. How would I change the word "value"? Attempting to do so suggests there is already a named "value". This is an implicit name inside a property definition ; as with thi...
by smrt1
11 May 2022, 05:45
Forum: Ask for Help (v2)
Topic: V2: Improving Gui ActiveX example Topic is solved
Replies: 21
Views: 3228

Re: V2: Improving Gui ActiveX example Topic is solved

Lexicos Ok, thank you ; this one doesn't look bad : GuiCtrlFromHwndRecursive(hwnd) { ; Workaround for limitation of GuiCtrlFromHwnd in v2.0-beta.3. while hwnd if ctrl := GuiCtrlFromHwnd(hwnd) return ctrl else hwnd := DllCall("GetParent", "ptr", hwnd, "ptr") return 0 } OnKeyDown(wParam, lParam, nMsg...
by smrt1
09 May 2022, 06:32
Forum: Ask for Help (v2)
Topic: V2: Improving Gui ActiveX example Topic is solved
Replies: 21
Views: 3228

Re: V2: Improving Gui ActiveX example Topic is solved

Thank you ; I will test this in some days (I'm currently ill)
by smrt1
07 May 2022, 17:24
Forum: Ask for Help (v2)
Topic: V2: Improving Gui ActiveX example Topic is solved
Replies: 21
Views: 3228

Re: V2: Improving Gui ActiveX example Topic is solved

@lexikos :
Ok, thank you for the explanations ; I'd already noticed the missing "if r = 0" (and the "ComCall(5, pipa, 'Ptr', kMsg)" instead of - I guess - "r:= ComCall(5, pipa, 'Ptr', kMsg)" )
But I still not satisfied with this, especially since it changes the keyboard behavior for all the Guis...
by smrt1
07 May 2022, 11:11
Forum: Ask for Help (v2)
Topic: V2: Improving Gui ActiveX example Topic is solved
Replies: 21
Views: 3228

Re: V2: Improving Gui ActiveX example Topic is solved

Hello,

I don't understand how this works (I means the gui_KeyDown function).
What I'd like to do is to enable support for all keystrokes ; but, with (or without) this, I only enable special keys (with) or alphanum keys (without)

Am I missing something ?
by smrt1
06 May 2022, 07:37
Forum: Ask for Help (v1)
Topic: Does anyone know how to use the enter key and go to the parent folder in shell.explorer?
Replies: 3
Views: 450

Re: Does anyone know how to use the enter key and go to the parent folder in shell.explorer?

Interesting.

I've searched for documentation about this for a while and didn't found something usable.
I'm mainly looking for a way to change the default viewmode ; if someone knows...
by smrt1
30 Apr 2022, 01:16
Forum: Scripts and Functions (v2)
Topic: Class: Simplified Monitor
Replies: 1
Views: 790

Re: Class: Simplified Monitor

Changed: Allow absolute values as well as offset (see examples)
by smrt1
29 Apr 2022, 16:16
Forum: Scripts and Functions (v2)
Topic: Class: Simplified Monitor
Replies: 1
Views: 790

Class: Simplified Monitor

Since Monitor Config Class by Tigerlily don't seem to work with v2.0-beta.3, I've rewrote parts of Class Monitor by jNizM (for v1) . Because I'm new to all this (and a bit lazy) , it only allow to retrieve or change brightness and contrast of the monitor containing the active window. Examples: ; Ret...
by smrt1
23 Apr 2022, 18:00
Forum: Bug Reports
Topic: The ToolTip function sometimes displays the text at the top of the screen incorrectly Topic is solved
Replies: 12
Views: 3869

Re: The ToolTip function sometimes displays the text at the top of the screen incorrectly Topic is solved

It can be fixed, although I will have to consider whether to allow the tooltip to overlap with the taskbar on systems which allow it, or to work around the restriction (if possible) and allow tooltips to overlap the taskbar on all systems. My opinion : it would be better to restrict the tooltip dis...
by smrt1
17 Apr 2022, 02:00
Forum: Ask for Help (v2)
Topic: A syntax change that looks liable to cause a lot of pain Topic is solved
Replies: 8
Views: 904

Re: A syntax change that looks liable to cause a lot of pain Topic is solved

It's just a matter of habit. Once you become used to the fact that v2 interpret non-quoted string as variables or expressions, you see all the benefit of this.

Go to advanced search