Search found 207 matches

by Micromegas
06 Oct 2019, 13:29
Forum: Other Programming Languages
Topic: Can anyone explain what this code does?
Replies: 3
Views: 448

Re: Can anyone explain what this code does?

This is not an AHK question. Why don't you ask at the appropriate forum for the language?
by Micromegas
06 Oct 2019, 06:18
Forum: Ask For Help
Topic: Is there a way to detect text information on notepad and Microsoft Word? Topic is solved
Replies: 2
Views: 203

Re: Is there a way to detect text information on notepad and Microsoft Word? Topic is solved

What kind of text information do you mean? If you need the selected text you can use clipboard, as in the following:

Code: Select all

SendInput ^c
ClipWait 0.3
MsgBox % Clipboard
by Micromegas
06 Oct 2019, 06:13
Forum: Ask For Help
Topic: Variable Decreasing Overtime
Replies: 2
Views: 194

Re: Variable Decreasing Overtime

Have you tried SetTimer?
by Micromegas
06 Oct 2019, 05:59
Forum: Ask For Help
Topic: Hotkeys overriden by ms-gamingoverlay Topic is solved
Replies: 2
Views: 202

Re: Hotkeys overriden by ms-gamingoverlay Topic is solved

Update: Using a different version of AHK, which solved my other problem, didn't fix this one.
by Micromegas
06 Oct 2019, 05:51
Forum: Ask For Help
Topic: Unicode displayed as question marks Topic is solved
Replies: 3
Views: 297

Re: Unicode displayed as question marks Topic is solved

Thanks for your answers. I found the problem: AHK was installed as the ANSI version. (See https://www.autohotkey.com/docs/Program.htm#install) Running the file with the Unicode version of AHK fixes the issue.
by Micromegas
05 Oct 2019, 07:09
Forum: Ask For Help
Topic: Unicode displayed as question marks Topic is solved
Replies: 3
Views: 297

Unicode displayed as question marks Topic is solved

On a new (actually, refurbished) computer running Win 10 Professional, I have several fundamental problems. #2: Unicode displayed as question marks. Now f and g in the following, which got displayed nicely on my old box, just give me question marks: #Hotstring * ? ::f::ф g::Send г d::Send {U+0434} E...
by Micromegas
05 Oct 2019, 06:23
Forum: Ask For Help
Topic: Hotkeys overriden by ms-gamingoverlay Topic is solved
Replies: 2
Views: 202

Hotkeys overriden by ms-gamingoverlay Topic is solved

On a new (actually, refurbished) computer running Win 10 Professional, I have several fundamental problems. #1: Many of my shortcuts (both those using the Win key and those with the Alt key) bring up the XBox game bar (why?). I managed to uninstall that with the tips from https://gist.github.com/jos...
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: 276

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

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

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

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

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

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

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

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

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

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

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!

Go to advanced search