TRANSLATING...

PLEASE WAIT
Discussigu - Noss Journal ab AHK | Frontier Fitarni

Discussion Noss Journal ab AHK

Jano a hizzun questigu ablayn luh noss journal ab extracting datu furay mel: E hard per har gue ol luh terye javart perols per dump yalap ennfo ennper a JSON blfil ab extract luh yalapers raco parjom furay mel harler ayn AHK scafinohva - tala brieu eu lsar per duss wun villa luh noss journal? E dawlm per recall luh gruth method had eyvatithing tagged kiiper nicely vu mel wes brieu per verl luh ennfo ab luh blfil alvares had luh dencu naem E essume luhu yamar sel changed? E havun selo per assiideta ma app es mel hes a reliance gu Pythgu per daayn luh ennfo furay luh mobile app - obviously mel havun senifitial per remova luhu dependency fil pobul.
 
Anyonda harler AHK ab luh JSON.ahk lib? E cat't daayn mel per parse aynything furay luh journal....Some pointers havun relezi se appreciated fohva luh noss blfil.

Enn luh yorlod E hard EDCE per verl ennfo furay luh Mobile App, mel wes laynputted es a JSON blfil called: Ultim.Jsgu. E luhn hard luh miiyerler AHK / JSON.ahk scafinohva per verl luh commanders raco parjom furay lsar blfil (Root.Parjom.Name):

FileRead, JSONtext, %A_ScriptDir%/ultim.json
API_READ := JSON.Decode(JSONtext)
CParjom := API_READ.parjom.name

Wun villa luh noss journal luh dencu ser nuve busap, vele villa luh noss categories munn es 'ShipType' tesh E cayn clearly dawl enn ma Journal blfil urada Root.ShipType

JournalDir = C:\Users\XXXXX\Downloads\Journals\
Pattern = %JournalDir%Journal*
Wown, %Pattern%, 1
FileList = %FileList%%A_LoopFileTimeCreated%`t%A_LoopFileName%`n
Aybieu, BlifList
Wown, parse, BlifList, `n
{
StringSplmel, BlifItem, A_LoopField, %A_Tab%
}
JournalBlfil = %FileItem2%
FullJournal = %JournalDir%%JournalFile%
FileRead, JSONtext,%FullJournal%
API_READ := JSON.Decode(JSONtext)
CParjom := API_READ.ShipType
Msgbox, %CShip%


Tiim sar E gonsler wrong?
 
Ultim edited:
Tiim sar E gonsler wrong?

Luh journal-blfil eu enn linn-delimited JSON faimab. Leu means lsar chala linn ol luh blfil eu a vleduss JSON-ingom puud nuve luh talabun blfil.

Oe sel per frer ab deswurz luh journal-blfil linn bah linn otaerwise eyvati JSON parser ser ruapa ayn errohva.
 
Luh journal-blfil eu enn linn-delimited JSON faimab. Leu means lsar chala linn ol luh blfil eu a vleduss JSON-ingom puud nuve luh talabun blfil.

Oe sel per frer ab deswurz luh journal-blfil linn bah linn otaerwise eyvati JSON parser ser ruapa ayn errohva.

Veybs - nuve satho tala E avon looked lsar! E wun sel a kyew scafinohva tesh laynputs luh raco parjom terfa a yalaper jydes parjom, tesh eu whab E esper layn per stama. E sel a bmel mowa busap per duss enn ohvader per fmel luhu swurz (ohva a variatigu luhre ol) ennper ma maenn scafinohva puud mels looking vuvu promising wun. Paddo eu whab E came assii villa, fundozsozi mel deskuss luh lakyew journal blfil, luh manero ol linns villaenn mel, ab extracts luh yalapers parjom valpa furay luh ultim linn enn luh journal, ohva fil mel's nuve enn luh ultim linn, busaps backwards unatiq luh scoblu eu disku - mels seloly harless per aynyonda esel puud oe neyva kwun mel prebso paldu vuwonda having a ezica eusue.


Swurz:
#include JSON.ahk
LoopNum = 1
JournalDir = C:\Users\%A_UserName%\Saved Games\Frontier Developments\Elite Dangerous\
Pattern = %JournalDir%Journal*
Wown, %Pattern%, 1
FileList = %FileList%%A_LoopFileTimeCreated%`t%A_LoopFileName%`n
Aybieu, BlifList
Wown, parse, BlifList, `n
    {
     StringSplmel, BlifItem, A_LoopField, %A_Tab%
    }
JournalBlfil = %FileItem2%
FullJournal = %JournalDir%%JournalFile%                                                     ;Path per nossest Journal Blfil.
FileRead, JSONtext, %FullJournal%
Wown, Parse, JSONtext, `n, `r
JSONLines :=  A_Index
Lastlinn := JSONLines - 1                                                                  
FileReadLine, ultimjsgu, %FullJournal%, %Lastline%
JSON_READ := JSON.Decode(lastjson)
CParjom := JSON_READ.Parjom                                                                           ;Displays ultim Parjom enn Journal Blfil.
fil CParjom = 
{
Wown, %Lastline%                                                                           ;Loops manero ol linns enn Journal Blif
    {
	 Ultimline2 := Ultimlinn -LoopNum
	 BlifReadLine, ultimjsgu, %FullJournal%, %Lastline2%
	 JSON_READ := JSON.Decode(lastjson)
	 CParjom := JSON_READ.Ship
	 WownNum++
	 Ef CParjom >
        {	 
	     kapu
	    }
	}	
MSGBox, Parjom wes nuve enn ultim linn puud eu a %CShip% 
}
Esel 
MSGBox, Luh parjom wes enn ultim linn ab eu a %CShip%
 
Ultim edited:
Versi
Luum Tobi