how to automate this

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
legyster
Posts: 106
Joined: 13 Apr 2020, 15:17

how to automate this

19 May 2020, 21:23

I would like to do something like this: it looks for an ID and, when it finds it, will add it next to that link.
https://steamid.io/lookup/<76561198172574287> here where these random numbers will always be, it sends the person's name with several different IDs, for example, this ID XsSnip3r this is the person's name
legyster
Posts: 106
Joined: 13 Apr 2020, 15:17

Re: how to automate this

20 May 2020, 13:39

Looking for a log file ID when you find the random ID, send it to the website and send the person's name from that ID after sending a message box with the name
vsub
Posts: 541
Joined: 29 Sep 2015, 03:39

Re: how to automate this

20 May 2020, 14:20

Is there is something unique around that id,something that can be used to determine that that is the id
Maybe you can post a part of it
legyster
Posts: 106
Joined: 13 Apr 2020, 15:17

Re: how to automate this

20 May 2020, 14:42

LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:445d3272-c700-4ffb-aeaa-c43a0fe84f20|76561198402317547

this id changes all the time 445d3272-c700-4ffb-aeaa-c43a0fe84f20
this too 76561198402317547

the text that comes before is always the same

it searches from the bottom up the first ID found sends it to the site, then sends the message box with the person's name and stops searching
legyster
Posts: 106
Joined: 13 Apr 2020, 15:17

Re: how to automate this

20 May 2020, 14:45

I would like to do it like this, but I think it would be more difficult to search for a specific number from the bottom up and, when you find it, look for the text I sent below the number, look for the ID and send it to the website and website, send me the name of the person with a message box
User avatar
Chunjee
Posts: 1420
Joined: 18 Apr 2014, 19:05
Contact:

Re: how to automate this

20 May 2020, 15:34

I would capture all the ID numbers in an array, then just prepend them with https://steamid.io/lookup/ and send them off the the browser.



Any other way is a fools errand and I will fight this point to the end.
vsub
Posts: 541
Joined: 29 Sep 2015, 03:39

Re: how to automate this

20 May 2020, 16:43

legyster wrote:
20 May 2020, 14:42
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:445d3272-c700-4ffb-aeaa-c43a0fe84f20|76561198402317547

this id changes all the time 445d3272-c700-4ffb-aeaa-c43a0fe84f20
this too 76561198402317547

the text that comes before is always the same

it searches from the bottom up the first ID found sends it to the site, then sends the message box with the person's name and stops searching
How are they stored in the log file?
Is it something like
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:

What do you want to send from that
The first part after id: or the second part after the | or both
legyster
Posts: 106
Joined: 13 Apr 2020, 15:17

Re: how to automate this

20 May 2020, 17:06

the second part plus the two numbers are always random

this number 76561198402317547
vsub
Posts: 541
Joined: 29 Sep 2015, 03:39

Re: how to automate this

20 May 2020, 17:59

I am not sure if this is what you want

Code: Select all

; FileRead,Log,your log file location
; lets say your log file contains this below(uncommend the line above and remove the log variable below when you set the log file path
Log =
(
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:4ewrwe272-c700-4ffb-aeaa-cewrew84f20|15
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:34eeere-c700-4ffb-aeaa-c43a0fe84f20|14
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:ewrew-c700-4ffb-aeaa-c43a0fe84f20|13
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:rtert-c700-4ffb-aeaa-c43a0fe84f20|12
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:ewrr-c700-4ffb-aeaa-c43a0fe84f20|11
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:ewrr-c700-4ffb-aeaa-c43a0fe84f20|10
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:ewrr-c700-4ffb-aeaa-c43a0fe84f20|9
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:ewrr-c700-4ffb-aeaa-c43a0fe84f20|8
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:ewrr-c700-4ffb-aeaa-c43a0fe84f20|7
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:ewrr-c700-4ffb-aeaa-c43a0fe84f20|6
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:ewrr-c700-4ffb-aeaa-c43a0fe84f20|5
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:ewrr-c700-4ffb-aeaa-c43a0fe84f20|4
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:ewrr-c700-4ffb-aeaa-c43a0fe84f20|3
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:ewrr-c700-4ffb-aeaa-c43a0fe84f20|2
LogOnline:Mirrors: [OnlineSession] Session:GameSession Id:ewrr-c700-4ffb-aeaa-c43a0fe84f20|1
)



Loop,Parse,Log,`n
{
If A_LoopField =
Break
Else
Count := A_Index
}

Loop,% Count
{
If A_Index = 1
Stop := Count
Else
Stop := Count - A_Index
Loop,Parse,Log,`n
{
If A_LoopField =
Break
If (A_Index = Stop)
{
List .= "https://steamid.io/lookup/<" SubStr(A_LoopField,Instr(A_LoopField,"|")+1) ">`n"
Break
}
}
}
MsgBox,% List
I don't know what is the proper way to reverse a list so I am looping the variable multiple times

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], RandomBoy, scriptor2016 and 348 guests