Sign in to follow this  
Followers 0
Ticki84

Mumble music script

6 posts in this topic

Hello everyone,

I try to do an script for a Music Jukebox. When someone send a youtube link on Mumble, it will click on it and the music will start, after that it send a message.

If somebody send another link, it will stop the older one.

But it seem no work i don't know why, can somebody help me?

Local $1time = 1
Local $check

While 1
    $check = PixelGetColor(340, 972);Take the color
    If $check = 0x0000FF Then;Compare to a link color
        Sleep(100)
        If $1time = 0 Then
            MouseClick("left", 169, 1029);Go on firefox
            Sleep(100)
            MouseClick("left", 1640, 56);Kill applet
            Sleep(100)
        Else
            $1time = 0
        EndIf
        Sleep(1000)
        MouseClick("left", 280, 966);Click on the link
        Sleep(10000)
        MouseClick("left", 104, 1029);Go to Mumble
        Sleep(100)
        MouseClick("left", 102, 910);Go to Mumble2
        Sleep(100)
        MouseClick("left", 261, 992);Click to speak
        Sleep(100)
        Send("Musique reçue.");Send a msg
        Sleep(100)
    EndIf
    Sleep(100)
WEnd

Thx in advance.

Share this post


Link to post
Share on other sites



Hey ticki84 and welcome to the forums :)

What doesn't work exactly? Could you give us more details ?

------------------------

Salut ticky84 et bienvenue sur les forums :)

Qu'est ce qui ne marche pas exactement ? Peux-tu nous donner plus de détails ?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Je suis français.

 

En gros je lance le programme mais il m'effectue seulement les actions pour aller sur Mumble.

Il ne me clique donc pas sur le lien.

Il ne semble pas détecter le lien sauf que je fais plusieurs cliques gauche/droit sur l'icone du script.

Trans:

In short I start the script but it only goes as far as getting to Mumble.

It does not click on the link.

It does not seem to find the link unless I click left/right several times in the script icon.

Edited by Melba23
Added translation

Share this post


Link to post
Share on other sites

Ticki84,

Bien que je comprends bien le francais, nous sommes anglophone ici. Veux-tu bien poster en anglais pour que tout le monde puisse comprendre si'il te plait. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Ticki,

What do you mean by "but it only goes as far as getting to Mumble"?

Because your script should not do anything if the correct pixel color is not detected!

-----------------

Ticki,

Que veux-tu dire par "mais il m'effectue seulement les actions pour aller sur Mumble." ?

Car ton script se base sur la couleur d'un pixel donc s'il ne detecte pas un lien, il ne devrait rien faire à la base!

Share this post


Link to post
Share on other sites

It only execute this:

MouseClick("left", 104, 1029);Go to Mumble
Sleep(100)
MouseClick("left", 102, 910);Go to Mumble2

It only detect the blue color of the link if i click some times on the script icon i don't know why.

----------------

Il exécute seulement ça:

MouseClick("left", 104, 1029);Go to Mumble
Sleep(100)
MouseClick("left", 102, 910);Go to Mumble2

Il ne détecte que la couleur bleu quand je clique plusieurs fois sur l'icone du script (dans la barre des icones en bas à droite).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0