Search found 22 matches

by Groot
25 Apr 2022, 15:12
Forum: Scripts and Functions (v1)
Topic: [Class] WinHook
Replies: 53
Views: 22927

Re: [Class] WinHook

Also, it could be something with how you are opening the calculator. From the event log, it looks like it is opening, closing, and opening again when you open it. I would just open it manually without a hotkey to test it.
I will try that.

Thank you for your reply. :)
by Groot
25 Apr 2022, 12:21
Forum: Scripts and Functions (v1)
Topic: [Class] WinHook
Replies: 53
Views: 22927

Strange behaviour with Calculator

Hello FanaticGuru and friends, I am trying to catch the events when the windows on my system are created and destroyed. So, to start with, I did some tests based on the simple example FanaticGuru gave in the first post. It works perfectly with Notepad, but give me some very strange results wih Calcu...
by Groot
24 Apr 2022, 19:21
Forum: Ask for Help (v1)
Topic: Errors in Shell messages on windows creations and destructions
Replies: 1
Views: 249

Re: Errors in Shell messages on windows creations and destructions

Maybe this has something to do with Calc using UWP?

Any help?
I am pretty desperate here.
by Groot
24 Apr 2022, 12:37
Forum: Ask for Help (v1)
Topic: Errors in Shell messages on windows creations and destructions
Replies: 1
Views: 249

Errors in Shell messages on windows creations and destructions

Hello friends, I am trying to catch the events when the windows on my system are created and destroyed. However, I am facing some strange results: Everythink works fine with some windows/applications, but with certain windows/applications the events I receive seem all mixed up. For exemple, everythi...
by Groot
20 Jun 2021, 12:37
Forum: Ask for Help (v1)
Topic: What is the difference between Try/Catch and OnError()? When to use one or the other?
Replies: 5
Views: 328

Re: What is the difference between Try/Catch and OnError()? When to use one or the other?

Hi boiler,

That's a good point, thank you.

But let's say I put the whole code of my function in a huge Try/Catch.
What would be the difference with using OnError() then?
by Groot
20 Jun 2021, 08:32
Forum: Ask for Help (v1)
Topic: What is the difference between Try/Catch and OnError()? When to use one or the other?
Replies: 5
Views: 328

What is the difference between Try/Catch and OnError()? When to use one or the other?

Hi friends, I am currently writing a script that reads and writes files. I would like to handle the possible I/O errors, but the doc isn't clear to me regarding wether I should use Try/Catch or OnError() . And more generally, what is the difference between the two? And when to use one or the other ?...
by Groot
05 Dec 2019, 10:28
Forum: Ask for Help (v1)
Topic: My caret sometimes disapear
Replies: 4
Views: 766

Re: My caret sometimes disapear

I found the solution thanks to your good advices swagfag.
There was some kind of conflict with a previous WinActivate on another Window.
Don't know why this conflict was happening.

Hope this helps someone.
:-)
by Groot
04 Dec 2019, 22:49
Forum: Ask for Help (v1)
Topic: My caret sometimes disapear
Replies: 4
Views: 766

Re: My caret sometimes disapear

Thank you for your answer swagfag.
These are good suggestions that you gave me.
And I didn't know about ListLines.

Thank you.
by Groot
03 Dec 2019, 19:02
Forum: Ask for Help (v1)
Topic: My caret sometimes disapear
Replies: 4
Views: 766

Re: My caret sometimes disapear

:wave:

Still searching.

If anybody could help... :)
by Groot
02 Dec 2019, 10:58
Forum: Ask for Help (v1)
Topic: My caret sometimes disapear
Replies: 4
Views: 766

My caret sometimes disapear

Hi nice community, :-) I sometimes notice that my AHK script (I only have one AHK script running), makes the caret (keyboard cursor) on my PC (Windows 10 Family) disapear . The caret disapear from my text editor and any other Windows program. I can still enter some text though. I have no idea where ...
by Groot
21 Oct 2019, 09:01
Forum: Ask for Help (v1)
Topic: How to use SetStoreCapsLockMode? Topic is solved
Replies: 2
Views: 625

Re: How to use SetStoreCapsLockMode? Topic is solved

Hi gregster,

Thank you for your answer. It makes a lot of sense.
You are brilliant.
by Groot
20 Oct 2019, 09:56
Forum: Ask for Help (v1)
Topic: How to use SetStoreCapsLockMode? Topic is solved
Replies: 2
Views: 625

How to use SetStoreCapsLockMode? Topic is solved

Hi, Does anybody know how SetStoreCapsLockMode works? The doc says : [docs]SetStoreCapsLockMode On : This is the initial setting for all scripts: The CapsLock key will be restored to its former value if Send needed to change it temporarily for its operation.[/docs] And this is exctly what I would li...
by Groot
11 Oct 2019, 17:31
Forum: Ask for Help (v1)
Topic: SendInput does not trigger my hotstring
Replies: 8
Views: 2139

Re: SendInput does not trigger my hotstring

Thank you Nextron and boiler.
by Groot
11 Oct 2019, 09:03
Forum: Ask for Help (v1)
Topic: SendInput does not trigger my hotstring
Replies: 8
Views: 2139

Re: SendInput does not trigger my hotstring

I believe wou, no worries.

I just tested it again:
I type "bty" (not "btw"), and I get "btw" (not "by the way").

Very strange.

Of course I don't have any other script, or keylogger or hook of any sort running.

I am on Windows 10 Family, and use AHK 1.1.31.00.

Does any one has an explanation?
by Groot
11 Oct 2019, 06:36
Forum: Ask for Help (v1)
Topic: SendInput does not trigger my hotstring
Replies: 8
Views: 2139

Re: SendInput does not trigger my hotstring

Hi boiler, Yes, my second piece of code is a different script. I changed the Send/SendInput w to Send/SendInput y on purpose. And yes, the loop is expected. I explained all this in my previous post. Did you really try the script with the keyboard hook? #InstallKeybdHook #UseHook On I discovered that...
by Groot
10 Oct 2019, 19:09
Forum: Ask for Help (v1)
Topic: SendInput does not trigger my hotstring
Replies: 8
Views: 2139

Re: SendInput does not trigger my hotstring

Hi boiler, Thank you for your answer. I find it really strange that you do not manage to reproduce this issue. I restarted my computer, just in case, and I still have the same problem. Are you sure you typed "bty" (and not "btw")? I understand what you mean when you say that "Speed and reliability d...
by Groot
10 Oct 2019, 15:29
Forum: Ask for Help (v1)
Topic: SendInput does not trigger my hotstring
Replies: 8
Views: 2139

SendInput does not trigger my hotstring

Hi, :) The following script works fine: "bty" is correctly replaced with "by the way". However, it doesn't work anymore if I use SendInput w instead of Send w . But I would like to use SendInput! (Since the documentation states that it is faster and more reliable.) Why is it not working? #InstallKey...
by Groot
09 Oct 2019, 15:24
Forum: Ask for Help (v1)
Topic: How to change the logical state of a key WITHOUT having the native function of the Down or Up event fired? Topic is solved
Replies: 5
Views: 940

Re: How to change the logical state of a key WITHOUT having the native function of the Down or Up event fired? Topic is solved

Yes. This work. Thank you!

As for the other part of my question
"Is there a way to change the logical state of a key WITHOUT having the native function of the event fired?"
do you know how to do this (as I need this for other cases as well).

Go to advanced search