Search found 199 matches

by Micromegas
16 May 2019, 12:27
Forum: Ask For Help
Topic: Alternative key to work after Menu Show Topic is solved
Replies: 2
Views: 217

Re: Alternative key to work after Menu Show Topic is solved

Thanks - that's what I've been looking for. It contains two great ideas: (1) Using the Input function to ensure that the assignment lasts just as long as needed. (2) exiting a whole script to end the temporary assignment. What's the "Send s" command for? I assume it's just left over from testing; I ...
by Micromegas
15 May 2019, 13:55
Forum: Ask For Help
Topic: Alternative key to work after Menu Show Topic is solved
Replies: 2
Views: 217

Alternative key to work after Menu Show Topic is solved

Is there a way to allow for an alternative key to trigger an entry in a menu created with Menu Show ? The following code does not, as I hoped, allow the CapsLock key to trigger the same choice as the hotkey c , since the hotkey reassignment doesn't work while the menu is shown. Menu, TopMenu, Add, &...
by Micromegas
02 Apr 2019, 15:11
Forum: Ask For Help
Topic: difference between hotkeys and remap Topic is solved
Replies: 3
Views: 298

Re: difference between hotkeys and remap Topic is solved

Thanks. Both of your answers are solutions; I had to pick one and decided for gregster's since it concisely gets to the heart of it. I feel a bit embarrassed about my question now: If I had run the very example I posted I would easily have seen that difference. My original problem involved other key...
by Micromegas
02 Apr 2019, 14:47
Forum: Ask For Help
Topic: difference between hotkeys and remap Topic is solved
Replies: 3
Views: 298

difference between hotkeys and remap Topic is solved

Is there any difference between the functionalities of hotkeys and remap?

In other words, are the following three interchangeable?

Code: Select all

; hotkey, long notation:
a::
	Send b
	Return
	
; hotkey, short notation:
a::Send b
	
; remap:
a::b
by Micromegas
16 Mar 2019, 11:22
Forum: Ask For Help
Topic: Hotkey overrides
Replies: 2
Views: 229

Re: Hotkey overrides

Does anyone know a way to assign priority, regardless which was run first?
(The two scripts run in the same window, so #IfWinActive won't help.)
by Micromegas
15 Mar 2019, 06:37
Forum: Ask For Help
Topic: Hotkey overrides
Replies: 2
Views: 229

Hotkey overrides

If there are two scripts that act on the same hotkey, say good.ahk = x::MsgBox Goodstuff and better.ahk = x::MsgBox Betterstuff , is there a way to assure that one has higher priority, that is, if both are running the hotkey always triggers Betterstuff, regardless which was started first? Since I kn...
by Micromegas
23 Nov 2018, 08:06
Forum: Ask For Help
Topic: StrSplit: MaxParts parameter swallows a digit
Replies: 5
Views: 524

Re: StrSplit: MaxParts parameter swallows a digit

But on second thought: Shouldn't it in that case also omit the "2" from "121"?
by Micromegas
23 Nov 2018, 08:04
Forum: Ask For Help
Topic: StrSplit: MaxParts parameter swallows a digit
Replies: 5
Views: 524

Re: StrSplit: MaxParts parameter swallows a digit

Oh, of course! Thank you!
by Micromegas
23 Nov 2018, 07:31
Forum: Ask For Help
Topic: StrSplit: MaxParts parameter swallows a digit
Replies: 5
Views: 524

StrSplit: MaxParts parameter swallows a digit

The following code output= Shards := StrSplit("11`txi", A_Tab, MaxParts := 2) output .= Shards[1] . "=" . Shards[2] . "`n" Shards := StrSplit("12`txii", A_Tab, MaxParts := 2) output .= Shards[1] . "=" . Shards[2] . "`n" Shards := StrSplit("xxxii`t32", A_Tab, MaxParts := 2) output .= Shards[1] . "=" ...
by Micromegas
25 Oct 2018, 08:49
Forum: Ask For Help
Topic: Keyboard shortcuts
Replies: 3
Views: 282

Re: Keyboard shortcuts

Scr1pter: Rather than demanding others change their attitude, it's usually better to look at one's own attitude first and try to behave so others can learn from the example. We can answer the question, no matter its font size: numpad0:: Input nextkey, L1, {Left}{Right} If ErrorLevel = EndKey:Left Se...
by Micromegas
25 May 2018, 10:21
Forum: Ask For Help
Topic: “Graphical User Interface” vs “Window Controls”
Replies: 8
Views: 955

Re: “Graphical User Interface” vs “Window Controls”

Thanks to both of you! To StefOnSteroids for backing me up and to swagfag for providing the link. One more item on my to-do list!
by Micromegas
25 May 2018, 03:46
Forum: Ask For Help
Topic: “Graphical User Interface” vs “Window Controls”
Replies: 8
Views: 955

Re: “Graphical User Interface” vs “Window Controls”

tsssss, i mean.... there are some pretty cryptic things in the docs, but claiming this as one of them is a bit far fetched imo The word "cryptic" is your choice of words. What exactly do you mean by "tsssss"? Even with only 3 esses , this can mean anything from disapproval to contempt. Do you disap...
by Micromegas
25 May 2018, 03:26
Forum: Ask For Help
Topic: How to choose a string from a DropDownList Topic is solved
Replies: 6
Views: 668

Re: How to choose a string from a DropDownList Topic is solved

I prefer WinWaitActive because the window class #32770 is displayed more or less quickly according to the speed of the CPU, load of processes and more. Of course; it was only for testing that I let it Sleep in the first place. I just had wanted to rule out the possibility that WinWaitActive fired b...
by Micromegas
24 May 2018, 07:10
Forum: Ask For Help
Topic: How to choose a string from a DropDownList Topic is solved
Replies: 6
Views: 668

Re: How to choose a string from a DropDownList Topic is solved

ControlFocus is not necessary Oh, indeed! So the A in Control, ChooseString, % DDLChoice, ComboBox2 ,A gets its reference from WinWaitActive not from ControlFocus . BTW, it also works with Sleep instead of WinWaitActive , (in which case one has to set the WinTitle, since there's no A ). (Not that t...
by Micromegas
24 May 2018, 06:44
Forum: Ask For Help
Topic: “Graphical User Interface” vs “Window Controls”
Replies: 8
Views: 955

Re: “Graphical User Interface” vs “Window Controls”

GuiControl... commands only work for controls belonging to the script's own windows (GUIs). Thank you, that confirms my suspicion. The text you quote, however, does not say that explicitly. It seems to me it would improve the help if the "only" part were stated as clearly as you put it. BTW, you ad...
by Micromegas
24 May 2018, 03:28
Forum: Ask For Help
Topic: “Graphical User Interface” vs “Window Controls”
Replies: 8
Views: 955

“Graphical User Interface” vs “Window Controls”

As I was just writing How to choose a string from a DropDownList , I realized I'm confused by the help. Content in the left sidebar lists two chapters that both deal with controls: Window \ Controls and Graphical User Interfaces . The former contains e.g. the command Control , while the latter has G...
by Micromegas
24 May 2018, 03:14
Forum: Ask For Help
Topic: How to choose a string from a DropDownList Topic is solved
Replies: 6
Views: 668

How to choose a string from a DropDownList Topic is solved

I am trying to set a control in Notepad++, namely the Font name in the Style Configurator. It seems that there are two commands to do the job: Control and GuiControl . I tried both, but none changes the chosen string: #IfWinActive ahk_class Notepad++ +!1:: +!2:: ; Call Style Configurator: Send !t{do...
by Micromegas
23 May 2018, 09:48
Forum: Ask For Help
Topic: How to send SMP characters to Notepad++? Topic is solved
Replies: 1
Views: 263

Re: How to send SMP characters to Notepad++? Topic is solved

Found a workaround:

Code: Select all

#c::
	clipboard := bike
	Send ^v
	Return
Three minutes away from the keyboard work wonders!

Go to advanced search