Search found 197 matches

by Micromegas
02 Apr 2019, 15:11
Forum: Ask For Help
Topic: difference between hotkeys and remap Topic is solved
Replies: 3
Views: 158

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: 158

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: 129

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: 129

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: 330

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: 330

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: 330

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: 180

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: 666

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: 666

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: 430

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: 430

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: 666

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: 666

“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: 430

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: 170

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!
by Micromegas
23 May 2018, 09:41
Forum: Ask For Help
Topic: How to send SMP characters to Notepad++? Topic is solved
Replies: 1
Views: 170

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

I defined some hotstrings containing characters from the Unicode Supplemental Multilingual Plane (SMP). Those work nicely (thanks to trismarck's UTF-16 surrogate tip in some applications, but unfortunately not in Notepad++. There, the following code SendMode Input ; It doesn't help to use Event or P...
by Micromegas
11 Apr 2018, 03:10
Forum: Ask For Help
Topic: Making Win+num cycle through windows, not applications
Replies: 7
Views: 495

Re: Making Win+num cycle through windows, not applications

On second thought, you might try to send #t rather than #T . Also, include a short pause like sleep 200 before you send {enter} . Here, too, you could have had the answer much sooner if you had described the symptom that your #T moves backwards, instead of just writing "it just doesn't seem to work."

Go to advanced search