Discord Tabbing Issue Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
SSena
Posts: 4
Joined: 19 Sep 2021, 20:56

Discord Tabbing Issue

19 Sep 2021, 21:14

Code: Select all

Z::
loop 10000 {	
Random, time, 1000, 10000
SetTitleMatchMode, 2
ControlFocus,, ahk_exe Discord.exe
controlSend,,{enter},ahk_exe Discord.exe
controlSend,,{text}!test,ahk_exe Discord.exe
controlSend,,{enter},ahk_exe Discord.exe
Sleep time
}
[Mod edit: [code][/code] tags added.]

I'm trying to make a macro that helps me send some texts to discord while its in the background
When I use that part of the code (SetTitleMatchMode, 2
ControlFocus,, ahk_exe Discord.exe)
It sometimes makes me go to the discord tab, making me tab out of my game and making me manually needing to tab in
Anyway to fix this, it randomly tabs me out so I don't understand what's causing the issue

Edit: it just seems like some inconsistencies, since the tab ins only happens once/twice then stops so its just a minor inconvenience
Last edited by SSena on 20 Sep 2021, 08:06, edited 1 time in total.
User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Re: Discord Tabbing Issue  Topic is solved

20 Sep 2021, 05:36

You could try removing that command. An alternative could be specifying a Discord control for the send. Unfortunately, these commands do not always work for all windows.

Since you are not matching any window titles, the match mode would seem to have no effect.

There are lots of forum posts about Discord, so you might have a look there, too, to see how others have done it.
SSena
Posts: 4
Joined: 19 Sep 2021, 20:56

Re: Discord Tabbing Issue

20 Sep 2021, 08:01

Exactly, when i replace the discord with notepad, it doesn't experience the same issues that was what confused me

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Lamron750 and 278 guests