TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to join an especific discord channel

    Windows
    2
    12
    859
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Roberto LuisR
      Roberto Luis @Roberto Luis
      last edited by

      @roberto-luis I Did it! I made a script using Autohotkey that can find the server and click on it searching for the correct color. Then, the script clicks on it and does the keyboards' commands to join the correct channel

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @Roberto Luis
        last edited by

        @roberto-luis , nice job! Would you mind posting your script here?

        Russell VanderMey

        Roberto LuisR 1 Reply Last reply Reply Quote 0
        • Roberto LuisR
          Roberto Luis @Russ
          last edited by

          @russ In fact i'm having some problems to run the script .ahk with the triggercmd, when i do it manually, it works very well, but when I copy and paste the script's target and ask triggercmd to do it, it doesn't work.

          Could u help me with it?

          Then I can share the entire project working here

          RussR 1 Reply Last reply Reply Quote 0
          • RussR
            Russ @Roberto Luis
            last edited by Russ

            @roberto-luis, can you show me your command?

            This works for me because of where autohotkey is installed on my PC, and where my script is.

            "C:\Program Files\AutoHotkey\AutoHotkey.exe" C:\autohotkeyscripts\media.ahk mute
            

            That mute at the end is a parameter for my script.

            Russell VanderMey

            Roberto LuisR 1 Reply Last reply Reply Quote 0
            • Roberto LuisR
              Roberto Luis @Russ
              last edited by

              @russimagem_2022-03-19_191654.png

              It returns me this message when I try to turn my .ahk archive onto .exe

              It says successfully compiled, but no new archive is created. Then I tried to put the content of the message on the triggercmd's command, but nothing is happening

              RussR 1 Reply Last reply Reply Quote 0
              • RussR
                Russ @Roberto Luis
                last edited by Russ

                @roberto-luis, if you rename that ToTalk.exe in the folder in the background, does it recreate a ToTalk.exe when you compile it again?

                Also, you don't have to use a compiled version. You could use a command like mine above.

                Russell VanderMey

                Roberto LuisR 1 Reply Last reply Reply Quote 0
                • Roberto LuisR
                  Roberto Luis @Russ
                  last edited by

                  @russ imagem_2022-03-19_192708.png

                  Not at all, it continues just "ToTalk.exe.ahk"

                  Roberto LuisR 1 Reply Last reply Reply Quote 0
                  • Roberto LuisR
                    Roberto Luis @Roberto Luis
                    last edited by

                    @roberto-luis It worked!

                    imagem_2022-03-19_192855.png

                    IDK what changed, but with this name the triggercmd could start my script.

                    #SingleInstance Force
                     
                    CoordMode, Pixel, Screen
                    CoordMode, Mouse, Screen
                    
                    Loop
                    {
                        PixelSearch, x, y, 1925, 11, 1994, 201, 0x7EDB32,, Fast
                        if (ErrorLevel = 0)
                        {
                            MouseMove, %x%, %y%
                            break
                        }
                    }
                    Click, Left
                    Loop 10
                    {
                    	Send, {Tab}
                    	Sleep, 300
                    }
                    Loop 8
                    {
                        Send, {Down}
                        Sleep, 300
                    }
                    Send, {Enter}
                    

                    Here u are the code, just need to change the pixel that u wanna search to click first (Pixel of the discord server's icon)

                    RussR Roberto LuisR 2 Replies Last reply Reply Quote 0
                    • RussR
                      Russ @Roberto Luis
                      last edited by

                      @roberto-luis, awesome. Nice job.

                      Russell VanderMey

                      1 Reply Last reply Reply Quote 0
                      • Roberto LuisR
                        Roberto Luis @Roberto Luis
                        last edited by

                        @Russ Thx for the help

                        RussR 1 Reply Last reply Reply Quote 0
                        • RussR
                          Russ @Roberto Luis
                          last edited by

                          @roberto-luis, np. Any time.

                          Russell VanderMey

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post