Search found 6 matches

by jmuhammad
26 Jun 2023, 05:40
Forum: Ask for Help (v1)
Topic: Accept Enter as Hotstring trigger, Ignore Shift+Enter
Replies: 5
Views: 325

Re: Accept Enter as Hotstring trigger, Ignore Shift+Enter

I got this working by surrounding my original code with the #If lines i.e.:

Code: Select all

#If !GetKeyState("Shift", "P") & !GetKeyState("Alt", "P")<br>
;MyCodeHere
#If
[Mod edit: [code][/code] tags added.]

Thanks.
by jmuhammad
25 Jun 2023, 19:21
Forum: Ask for Help (v1)
Topic: Accept Enter as Hotstring trigger, Ignore Shift+Enter
Replies: 5
Views: 325

Re: Accept Enter as Hotstring trigger, Ignore Shift+Enter

sorry...the code in the response you provided didn't show up on mobile so I thought it was just How do you press Enter in combination with Enter? If you actually want a hotkey, then I would use one instead. so it sounded mean. I should've slowed down and besides MIKEYWW is normally pretty helpful. I...
by jmuhammad
25 Jun 2023, 19:11
Forum: Ask for Help (v1)
Topic: Accept Enter as Hotstring trigger, Ignore Shift+Enter
Replies: 5
Views: 325

Re: Accept Enter as Hotstring trigger, Ignore Shift+Enter

a) Typo, I meant Shift+ Enter, Alt+ Enter or Ctrl+ Enter.
b) So you don't actually have a solution to the question I asked i.e. Shift+ Enter, Alt+ Enter are legit...could have answered those instead of just nitpicking a typo.
by jmuhammad
25 Jun 2023, 09:37
Forum: Ask for Help (v1)
Topic: Accept Enter as Hotstring trigger, Ignore Shift+Enter
Replies: 5
Views: 325

Accept Enter as Hotstring trigger, Ignore Shift+Enter

Greetings all, I have Enter key i.e. `n as hotstring trigger working fine. :*:`n:: SetTitleMatchMode,2 WinGetActiveTitle, AppTitle If InStr(AppTitle, ".md") || InStr(AppTitle, ".markdown") { SendInput {raw}<br> SendInput, {Enter} } Else SendInput, {Enter} return I would like for trigger to be ignore...
by jmuhammad
10 Sep 2022, 01:44
Forum: Tips and Tricks (v1)
Topic: Hide the dotted focus border
Replies: 8
Views: 10424

Re: Hide the dotted focus border

Greetings all, For benefit of anyone searching forum. I use this to send focus to 'offscreen' button and remove any dotted/border lines from button I clicked. Gui, Add, Button, vBtnH05_Diversion x2500 y45 w100 h25 Center gH05_Diversion, DIVERSION ;set x so button is offscreen Gui, Add, Button, vBtnM...
by jmuhammad
10 Sep 2022, 01:07
Forum: Other Utilities & Resources
Topic: online converter: converts your autohotkey code into pretty indented source code.
Replies: 21
Views: 33772

Re: online converter: converts your autohotkey code into pretty indented source code.

Greetings SL5,
First, thanks for writing AHK Prettyfy;
Second, how can I set the ELSE statements to be followed by curly brackets on their own line (Allman Indentation style)?

Like from:

Code: Select all

If (...)
{
  ;Statement
}else  {
  ;Statement
}
to this:

Code: Select all

If (...)
{
  ;Statement
}
else
{
  ;Statement
}

Go to advanced search