• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community Welcome Help & Support Tutorials & Tools Community Activity Guides Tutorial: Google Translate and Super Setmsg

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

Tutorial: Google Translate and Super Setmsg
Offline Dom!no
07-13-2020, 10:08 PM, (This post was last modified: 07-13-2020, 10:09 PM by Dom!no.)
#12
Member
Posts: 17
Threads: 3
Joined: Jul 2020

Quote:Also I made thing which copies six last phrases from chat. Which you can insert immediately into Google Translate! Without opening log file. Resolves problem of not having ability to copy from chat
[+]Copying and Pasting last six phrases from log file
Code:
Extractor()
{
Array := Array()
    Loop, read, C:\Users\User\Documents\My Games\Freelancer\DSAce.log
    {
        last_line := A_LoopReadLine

        numberWhere := RegExMatch(last_line, "^.*\d{2}\].(?!(Death:))(?!(Tip:))[^\s]+.: .*$")
        if (numberWhere > 0)
        {    
            Array.InsertAt(0,last_line)
            RemovedValue := Array.RemoveAt(6)
        }
    }
    
    Counter:=5
    While(Counter >= 0)
    {
        Temp := Array[Counter]
        SendInput, %Temp%`r
        Counter--
    }
    return
}    

#IfWinNotActive Freelancer
!v::
  Extractor()
  return    

:*:.log::
  Extractor()
  return
It's activated by pressing Alt+V or by writing .log
to work correctly this C:\Users\User\Documents\My Games\Freelancer\DSAce.log address should be leading to your log file, correct it if it's wrong.

How to make this thing work, it doesn't work as it should. Instead of the text that it should pull from the log, it outputs:

Code:
C:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\Temp
Reply  


Messages In This Thread
Tutorial: Google Translate and Super Setmsg - by darkwind - 01-18-2020, 07:05 PM
RE: Tutorial: Google Translate and Super Setmsg - by Liberty.In - 01-18-2020, 07:32 PM
RE: Tutorial: Google Translate and Super Setmsg - by Dom!no - 07-12-2020, 05:33 PM
RE: Tutorial: Google Translate and Super Setmsg - by Groshyr - 07-12-2020, 05:36 PM
RE: Tutorial: Google Translate and Super Setmsg - by Dom!no - 07-12-2020, 05:52 PM
RE: Tutorial: Google Translate and Super Setmsg - by Save My Soul - 07-12-2020, 05:55 PM
RE: Tutorial: Google Translate and Super Setmsg - by Shiki - 07-12-2020, 05:57 PM
RE: Tutorial: Google Translate and Super Setmsg - by Dom!no - 07-12-2020, 05:57 PM
RE: Tutorial: Google Translate and Super Setmsg - by Groshyr - 07-12-2020, 06:03 PM
RE: Tutorial: Google Translate and Super Setmsg - by Corile - 07-12-2020, 08:15 PM
RE: Tutorial: Google Translate and Super Setmsg - by Champ - 07-12-2020, 11:46 PM
RE: Tutorial: Google Translate and Super Setmsg - by Dom!no - 07-13-2020, 10:08 PM
RE: Tutorial: Google Translate and Super Setmsg - by darkwind - 08-04-2020, 07:27 PM

  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2025 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode