Lors de l'execution de mon script, a la fin de ce dernier, le message d'erreur suivant se produit
Le script :mysql.au3 (48) : ==> The requested action with this object has failed.:
Return $oConnectionObj.execute($sQuery)
Return $oConnectionObj.execute($sQuery)^ ERROR
Code : Tout sélectionner
#include "MySQL.au3"
#cs
Messages d'infos à l'attention de l'utilisateur
#ce
MsgBox(4096, "Metabay Algo", "N'oubliez pas d'allumer vos enceintes et votre micro")
MsgBox(4096, "Metabay Algo", "Toutes les fenêtres du navigateur chrome vont se fermer")
MsgBox(4096, "Metabay Algo", "Lancement ...")
While 1
#cs
Connexion à la base de donnée
#ce
$Namelist = ""
$UserName = "root"
$Password = ""
$Database = "algoMetabay"
$MySQLServerName = "localhost"
$SQLInstance = _MySQLConnect($UserName, $Password, $Database, $MySQLServerName)
#cs
Requete Sql
#ce
$SQLCode = "SELECT * FROM mp3parsedecode WHERE linkAssoc = '' LIMIT 0, 1"
$TableContents = _Query($SQLInstance, $SQLCode)
With $TableContents
While Not .EOF
#cs
$NameList &= .Fields ("linkDownload").value & " " & .Fields ("linkArtist").value & @CRLF
#ce
$Namelist &= .Fields("linkDownload" ).value
.MoveNext
WEnd
EndWith
MsgBox(64, "Result", $Namelist, 1)
$url = 'http://localhost/algoMetabay/startPlayerTodecode.php?link=' & $Namelist
ProcessClose("chrome.exe")
ShellExecute($url);
Sleep(1000)
$sUrl = "http://www.midomi.com/";
$oIE = ShellExecute($sUrl);
Sleep(11000)
MouseClick("left", 600, 300, 1)
Sleep(15000)
AutoItSetOption("WinTitleMatchMode", 2)
$handle = WinGetHandle("")
$urlView = ControlGetText($handle, "", "Chrome_AutocompleteEditView1")
If $urlView == 'http://www.midomi.com/' Then
Sleep(8000)
EndIf;
; alert the present url
MsgBox(4096, "", ControlGetText($handle, "", "Chrome_AutocompleteEditView1"), 1)
$yop = ControlGetText($handle, "", "Chrome_AutocompleteEditView1")
$requet = "UPDATE mp3parsedecode SET linkAssoc = '" & $yop & "' WHERE linkDownload = '" & $Namelist & "'";
_Query($SQLInstance, $requet)
WEnd
Merci d'avance,
fclm



