hi guys
i have a script like this, in windows 7 work perfect , in windows 10 not work , some one can explain me why ??'
#include <Array.au3>
#include <MsgBoxConstants.au3>
Global $aGPathFoto= FileReadToArray (@ScriptDir & "\TEMP\PathFoto.txt")
Local $ctrl = 0
While 1
Local $hWnd = WinWait("[CLASS:#32770]", "", 10)
If WinExists("[CLASS:#32770]") Then
If $ctrl < 2 Then
ControlSend($hWnd, "Choose File to Upload", "[CLASS:Edit; INSTANCE:1]", $aGPathFoto[0]&"{Enter}")
Exit
$ctrl += 1
Else
ExitLoop
EndIf
EndIf
WEnd
$aGpathfoto = C:\Users\Public\Pictures\Sample Pictures\Chrysanthemum.jpg