Here are a solution to read the values from chrome browser into a file
; Mouseclick in the left corner
MouseClick($MOUSE_CLICK_LEFT ,130, 200, 1, 1)
SLEEP(20)
Send("{CTRLDOWN}a{CTRLUP}")
sleep(300)
Send("{CTRLDOWN}c{CTRLUP}")
sleep(200)
Local $sData = ClipGet()
MouseClick($MOUSE_CLICK_LEFT ,130, 200, 1, 1)
SLEEP(20)
logfile("sData: " & $sData)
;***********************************************************************
Func logfile($string)
;***********************************************************************
Local $FileName = "c:\Versand\Logfiles\setBillbeeID.log"
Local $handle = 0
; Open the file for creating or append
if FileExists ($FileName) Then
$handle = FileOpen($FileName, $FO_APPEND)
Else
$handle = FileOpen($FileName, $FO_OVERWRITE)
EndIf
If $handle = -1 Then
MsgBox($MB_SYSTEMMODAL, "", "An error occurred whilst writing the temporary file.")
Return False
EndIf
; Write data to the file using the handle
FileWriteLine($handle, $string)
; Close the handle returned by FileOpen.
FileClose($handle)
; Delete the file.
;FileDelete($FileName)
EndFunc ;==>Example