j'ai un gros, gros problème avec auto it.
J'ai créé un logiciel pour des membres d'un site, seul problème : celui ci marche très bien chez d'autre personne, et chez d'autre elles obtiennent un "Error: Subscrit used with non-Array variable."
Pour éviter de vous passer le long script, j'ai demandé aux membres d'exécuter ce fichier :
Code : Tout sélectionner
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseUpx=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
WinActivate("Client PVP.net");
$pos=WinGetPos("Client PVP.net");
$coord = PixelSearch( $pos[0], $pos[1], $pos[0]+$pos[2], $pos[1]+$pos[3], 0x8D692E)
If @error Then
MsgBox(0,"info","test 1 : error")
Else
MsgBox(0,"info","test 1 : good")
EndIf
$coord = PixelSearch(0,0,@DesktopWidth,@DesktopHeight, 0x8D692E)
If @error Then
MsgBox(0,"info","test 2 : error")
Else
MsgBox(0,"info","test 2 : good")
EndIf
$coord = PixelSearch( $pos[0], $pos[1], $pos[0]+$pos[2], $pos[1]+$pos[3], 0x8D692E,1)
If @error Then
MsgBox(0,"info","test 3 : error")
Else
MsgBox(0,"info","test 3 : good")
EndIf
$coord = PixelSearch( $pos[0], $pos[1], $pos[0]+$pos[2], $pos[1]+$pos[3], 0x8D692E,5)
If @error Then
MsgBox(0,"info","test 4 : error")
Else
MsgBox(0,"info","test 4 : good")
EndIf
$coord = PixelSearch( $pos[0], $pos[1], $pos[0]+$pos[2], $pos[1]+$pos[3], 0x8D692E,10)
If @error Then
MsgBox(0,"info","test 5 : error")
Else
MsgBox(0,"info","test 5 : good")
EndIf
$coord = PixelSearch( $pos[0], $pos[1], $pos[0]+$pos[2], $pos[1]+$pos[3], 0x8D692E,25)
If @error Then
MsgBox(0,"info","test 6 : error")
Else
MsgBox(0,"info","test 6 : good")
EndIf
$coord = PixelSearch( $pos[0], $pos[1], $pos[0]+$pos[2], $pos[1]+$pos[3], 0x8D692E,50)
If @error Then
MsgBox(0,"info","test 7 : error")
Else
MsgBox(0,"info","test 7 : good")
EndIf
$coord = PixelSearch(0,0,@DesktopWidth,@DesktopHeight, 0x8D692E,50)
If @error Then
MsgBox(0,"info","test 8 : error")
Else
MsgBox(0,"info","test 8 : good")
EndIfIls ont tous le message Error: Subscrit used with non-Array variable. à la ligne 6.
Le fait que ca ne touche que certaine personne me fait penser que ca vient d'auto it en lui même. Mais je me trompe peut être.
En tout cas je galère à chercher à corriger le bug étant donné que chez moi, tout marche à merveille.
merci d'avance
bonne journée



