Search found 41 matches

by Rafio
28 Nov 2022, 09:02
Forum: Ask for Help (v1)
Topic: Issue with GetKeyState in Windows 11
Replies: 5
Views: 466

Re: Issue with GetKeyState in Windows 11

Yes. Letters are in capitals and there's a green light on my keyboard. I've made another test: In the first script I posted here, If I replace CapsLock with NumLock, the script runs as expected. If I make the same replacement in your script, the dialog reflects the real state of the key. In short, N...
by Rafio
28 Nov 2022, 08:09
Forum: Ask for Help (v1)
Topic: Issue with GetKeyState in Windows 11
Replies: 5
Views: 466

Re: Issue with GetKeyState in Windows 11

Bonjour.

1. Your script always return 0. No matter the state of capslock key.

2. AHK version is 1.1.35.00. Windows 11 is French localized.

3. With all the tests I made. Your script is confirming all my attempts.
by Rafio
28 Nov 2022, 07:14
Forum: Ask for Help (v1)
Topic: Issue with GetKeyState in Windows 11
Replies: 5
Views: 466

Issue with GetKeyState in Windows 11

This snippet of code that used to work in W7 or W10 (don't remember which one) is no more able to get the state of capslock key. The original script is a collection of functions that let me import textes and images in a Publisher doc from another document in Word or Publisher. Capslockstate is a goo...
by Rafio
25 Nov 2022, 10:27
Forum: Ask for Help (v1)
Topic: Remaping win keys for virtual machine
Replies: 2
Views: 361

Re: Remaping win keys for virtual machine

It's not better.
But I don't want to bother you with it.
by Rafio
25 Nov 2022, 08:12
Forum: Ask for Help (v1)
Topic: Get checked state of menu item
Replies: 12
Views: 900

Re: Get checked state of menu item

Your script, as expected, displays a message box when I press left win key. But my problem is not there. Let's say I need to do the shortcut 'ctrl+c'. With the remapping, I have to press 'win.c'. It will work about 4 times on 10. Most of times it will ignore the key modifier and behaves as if I just...
by Rafio
25 Nov 2022, 07:24
Forum: Ask for Help (v1)
Topic: Get checked state of menu item
Replies: 12
Views: 900

Re: Get checked state of menu item

Can I take advantage of your kindness?
Would you be kind enough to take a look at viewtopic.php?f=76&t=110733
by Rafio
25 Nov 2022, 07:11
Forum: Ask for Help (v1)
Topic: Get checked state of menu item
Replies: 12
Views: 900

Re: Get checked state of menu item

Yesssss!

Man, you're the best!
I could not figure out all that stuff by myself.

As you said, I just had to change the value of

Code: Select all

WM_INITMENUPOPUP
.
Thank you very much for your precious help.

(Notepad was not the good app to choose for testing!!!!)
by Rafio
25 Nov 2022, 06:12
Forum: Ask for Help (v1)
Topic: Get checked state of menu item
Replies: 12
Views: 900

Re: Get checked state of menu item

Hi teadrinker, When I first looked at your script, I thought: this is exactly what I need! Unfortunately, it's not working. With NotePad, it's not able to get the main menu (value is always 0). With Adventure, it's able to get the designated menu but it's the same as with my first script: the result...
by Rafio
24 Nov 2022, 13:11
Forum: Ask for Help (v1)
Topic: Get checked state of menu item
Replies: 12
Views: 900

Re: Get checked state of menu item

Hi Mikey, thank you for taking my problem in consideration. I would simply display the value of menuState after you define it. Already done. That's why I can say the result is always the same, no matter if the menu is checked or not. Here is the test I made, using NotePad to be sure it's not a probl...
by Rafio
24 Nov 2022, 09:54
Forum: Ask for Help (v1)
Topic: Get checked state of menu item
Replies: 12
Views: 900

Get checked state of menu item

The following script seems to be broken since the upgrade from Window 10 to 11. Checked menu state always return the same result, no matter if it's checked or not. Does the DllCall "GetMenuState" have changed? Or am I missing something? WinGet windowID, ID, A mainMenu := DllCall("GetMenu", "Ptr", wi...
by Rafio
23 Nov 2022, 05:06
Forum: Adventure IDE
Topic: Autoclose Brackets
Replies: 1
Views: 1896

Re: Autoclose Brackets

Does someone have a clue?
Thanks!
by Rafio
21 Nov 2022, 09:43
Forum: Ask for Help (v1)
Topic: Remaping win keys for virtual machine
Replies: 2
Views: 361

Remaping win keys for virtual machine

Bonjour from France! I'm installing a virtual machine on a Mac so I need to remap both LWin and RWin to Control keys. I tried this but it randomly won't trigger the shortcut: LWin::Control RWin::Control Is there any way to make it more reliable ? Thanks. Update: After 2 days of tests, I'm stuck and ...
by Rafio
21 Nov 2022, 08:31
Forum: Adventure IDE
Topic: Autoclose Brackets
Replies: 1
Views: 1896

Autoclose Brackets

Hi everyone! Now that I have changed AutoGui for Adventure, I'm not able to make this script work: https://www.autohotkey.com/boards/viewtopic.php?f=90&t=68521 I tried to simplify it, using the menu's position but it's not returning the checked state properly. Could somebody help me on this? Thanks....
by Rafio
19 Nov 2022, 13:53
Forum: Ask for Help (v1)
Topic: Get selected files Topic is solved
Replies: 5
Views: 615

Re: Get selected files Topic is solved

Thanks to your advice, my script is now working fine.

:)
by Rafio
19 Nov 2022, 04:43
Forum: Ask for Help (v1)
Topic: Get selected files Topic is solved
Replies: 5
Views: 615

Re: Get selected files Topic is solved

Thank you Boiler. This topic I couldn't find by myself on this board helped me a lot. But I'm facing a problem with my script: When a unique file is selected, it works perfectly but silently fails with a muti-selection. Could you tell me where is my mistake? #SingleInstance Force #NoEnv SetWorkingDi...
by Rafio
17 Nov 2022, 11:59
Forum: Ask for Help (v1)
Topic: Get selected files Topic is solved
Replies: 5
Views: 615

Get selected files Topic is solved

Hi all,

Is there a way to get a list of selected files in current file explorer window, avoiding any open file dialog?

Thanks.
by Rafio
27 Oct 2019, 06:04
Forum: Ask for Help (v1)
Topic: Key remapping & #IfWinActive
Replies: 4
Views: 646

Re: Key remapping & #IfWinActive

Ok. Thanks for your help.
;)
by Rafio
27 Oct 2019, 05:42
Forum: Ask for Help (v1)
Topic: Key remapping & #IfWinActive
Replies: 4
Views: 646

Re: Key remapping & #IfWinActive

I should have been more explicit: My keyboard has 19 function keys. F13, F14, F15 are remapped in a general script loaded at system start to avoid screen captures and other unwanted events. My solution, so far, is to call the key by its name in every script I need to use F13, F14 or F15: #SingleInst...
by Rafio
25 Oct 2019, 11:29
Forum: Ask for Help (v1)
Topic: Key remapping & #IfWinActive
Replies: 4
Views: 646

Key remapping & #IfWinActive

I have some problem to understand the relationship between key remapping and #IfWinActive . What can I change in the following script to make F14 and F15 work only in Publisher? #SingleInstance Force #NoEnv SendMode Input PrintScreen::F13 ScrollLock::F14 Pause::F15 F13:: MsgBox F13@ Return #IfWinAct...
by Rafio
16 Oct 2019, 11:48
Forum: Old Topics
Topic: AutoClose Brackets Topic is solved
Replies: 6
Views: 12273

Re: AutoClose Brackets Topic is solved

Perfect!
I have modified your script to make it a unique function that only desables the menu item.

Problem solved.

;)

Go to advanced search