Search found 14 matches

by Wpq
06 Dec 2023, 13:18
Forum: Ask for Help (v2)
Topic: How to map Ctrl-: ?
Replies: 1
Views: 156

How to map Ctrl-: ?

I thought that escaping the colon would do the trick:

Code: Select all

^`::: OpenObsidian()
This is however rejected.

What is the proper way to call the OpenObsidian() function when pressing Ctrl-: ?

Note: I use a French keyboard where the : key is directly available (without modifiers)
by Wpq
04 Aug 2022, 06:42
Forum: Forum Issues
Topic: How to contact the administrators? Topic is solved
Replies: 4
Views: 890

Re: How to contact the administrators? Topic is solved

Time doesn't play a role. Number of approved posts is what will promote you. As you might have noticed, your username is not yellow anymore since today. So you passed a first threshold. For example, you can send PMs now. Certain limitations still exist, for a few more posts. Perfect, thank you for ...
by Wpq
04 Aug 2022, 06:41
Forum: Ask for Help (v2)
Topic: How to use a block code in a switch case? Topic is solved
Replies: 6
Views: 945

Re: How to use a block code in a switch case? Topic is solved

I didn’t notice that you were posting v2 since you didn’t post in the v2 section of “Ask For Help” (topic moved). Oh sorry, I did not realize that there was a split in the forum (which of course makes sense). Thanks for moving the topic. Regarding the braces, it’s not that they must not contain, bu...
by Wpq
04 Aug 2022, 06:38
Forum: Forum Issues
Topic: How to contact the administrators? Topic is solved
Replies: 4
Views: 890

Re: How to contact the administrators? Topic is solved

gregster wrote:
04 Aug 2022, 06:35
Not an admin, but perhaps I can help you as a moderator. Ask away!
Thank you! I wanted to understand the process to be trusted enough to not go through the posting approval process (I am here for a year+ and has done 10 posts so far)
by Wpq
04 Aug 2022, 06:36
Forum: Ask for Help (v2)
Topic: How to use a block code in a switch case? Topic is solved
Replies: 6
Views: 945

Re: How to use a block code in a switch case? Topic is solved

OK, got it. I just realized that the return value from InputBox is an OBJECT, so I have to use Action.Value
by Wpq
04 Aug 2022, 06:31
Forum: Forum Issues
Topic: How to contact the administrators? Topic is solved
Replies: 4
Views: 890

How to contact the administrators? Topic is solved

I wanted to contact the administrators according to the information found in help/faq#f2r11

I could not find any obvious way to make the contact - is there a specific place I should go to?
by Wpq
04 Aug 2022, 06:18
Forum: Ask for Help (v2)
Topic: How to use a block code in a switch case? Topic is solved
Replies: 6
Views: 945

Re: How to use a block code in a switch case? Topic is solved

Can you post your InoutBox() function? I am not sure I understand. You mean the InputBox() function? This is https://lexikos.github.io/v2/docs/commands/InputBox.htm The variable Action must not contain todo . You can demonstrate that yourself by running this simplified version of your script: Actio...
by Wpq
04 Aug 2022, 04:06
Forum: Ask for Help (v2)
Topic: How to use a block code in a switch case? Topic is solved
Replies: 6
Views: 945

How to use a block code in a switch case? Topic is solved

I am trying to run a block of code as part of a switch case: #F9:: { Action := InputBox("action") switch Action { case "todo": { obsidianWindowName := "ahk_exe Obsidian.exe" DetectHiddenText True if (WinExist(obsidianWindowName)) { WinActivate(obsidianWindowName) } else { Run "C:\Users\yop\AppData\L...
by Wpq
03 Aug 2022, 02:11
Forum: Ask for Help (v1)
Topic: Why is replaced text erasure inconsistent?
Replies: 1
Views: 261

Why is replaced text erasure inconsistent?

I wrote a simple sequence to bootstrap code blocks such as ```python ``` The code below works most of the time: ::mdcode:: { Lang := InputBox(, "input MD code language") Send "{U+0060}{U+0060}{U+0060}" . Lang.Value . "`n`n`n{U+0060}{U+0060}{U+0060}{Up}" } Sometimes (this is hardly reproducible), som...
by Wpq
05 Jul 2022, 02:26
Forum: Ask for Help (v1)
Topic: How to navigate a GUI with arrows or single letters? Topic is solved
Replies: 1
Views: 364

How to navigate a GUI with arrows or single letters? Topic is solved

I decided to build a GUI popup to quickly create an Obsidian note. I expect three possible cases: a daily note (which is created via a single hotkey in Obsidian), a "named note" for which I will provide a title (in the AHK GUI) and open it, and a hotkey to pop up the search menu in Obsidian. Since I...
by Wpq
22 Nov 2021, 05:33
Forum: Ask for Help (v1)
Topic: [basic question] check for specific window focus before handing a keypress Topic is solved
Replies: 1
Views: 367

[basic question] check for specific window focus before handing a keypress Topic is solved

I am trying to bind the "mute" button of my keyboard to the mute function of Zoom (Alt+A), when the Zoom meeting window has focus: if WinActive("Zoom Meeting") Volume_Mute::Send !a Unfortunately, the code above always sends Alt+A, no matter the window (and, when the Zoom meeting is focused, it is in...
by Wpq
02 Mar 2021, 11:54
Forum: Ask for Help (v1)
Topic: How to react to a popup?
Replies: 3
Views: 511

Re: How to react to a popup?

It worked when I tested it. The message box might appear before the Notepad window, putting Notepad in the foreground. In fact when I launch Notepad (and the window appears) - nothing happens. I am a novice in AHK but my understanding is that a message box should pop up somewhere. Is there a way to...
by Wpq
02 Mar 2021, 04:28
Forum: About This Community
Topic: UNOFFICIAL AutoHotkey Sites
Replies: 45
Views: 345591

Re: UNOFFICIAL Autohotkey Sites

FYI - autohotkey.fr is not registered anymore (and therefore the URL based off it won't work anymore)

As a French I am ashamed that someone would register a rogue autohotkey.fr site.
by Wpq
02 Mar 2021, 04:24
Forum: Ask for Help (v1)
Topic: How to react to a popup?
Replies: 3
Views: 511

How to react to a popup?

I have a popup coming from an application that requires to press OK so that the application can run. I would like to automate that with AutoHotkey. I found on the old forum a perfect solution (https://autohotkey.com/board/topic/74282-how-to-react-to-appearance-of-a-window/): DetectHiddenWindows, On ...

Go to advanced search