-
Download the latest LuaJIT sources
-
Create temporary folder for LuaJIT sources.
I assume you would useC:\Temp\
folder. -
Download and install Portable "Git for Windows"
-
#!/usr/bin/env lua | |
--------------------------------------------------------------------------------------------------------------------------------------- | |
-- Display list of globals used by your Lua script | |
--------------------------------------------------------------------------------------------------------------------------------------- | |
-- Version: 2019-03-28 | |
-- License: MIT (see at the end of this file) | |
-- | |
-- Reads your Lua script from STDIN | |
-- Writes list of globals to STDOUT (if the script is syntactically correct) | |
-- Writes parsing error to STDERR (if the script is not syntactically correct) |
-- Convertor from GSM7 to ASCII | |
-- Usage: | |
-- print(GSM7_to_ASCII("F4F29C9E769F1B")) | |
function GSM7_to_ASCII(hex_string) | |
local GSM_Base = { | |
[0] = '@', '£', '$', '¥', 'è', 'é', 'ù', 'ì', 'ò', 'Ç', '\n', |
------------------------------------------------------------------------------------------------------------------------------ | |
-- Module: utf8_filenames | |
------------------------------------------------------------------------------------------------------------------------------ | |
-- Filename: utf8_filenames.lua | |
-- Version: 2019-07-13 | |
-- License: MIT (see at the end of this file) | |
-- This module modifies standard Lua functions so that they work with UTF-8 filenames on Windows: | |
-- io.open | |
-- io.popen |
--------------------------------------------------------------------------------------------- | |
-- LGS_script_template.lua | |
--------------------------------------------------------------------------------------------- | |
-- Version: 2019-04-19 | |
-- Author: Egor Skriptunoff | |
-- | |
-- | |
-- This is a template for "Logitech Gaming Software" script file. | |
-- Four useful features are implemented here: | |
-- |
-- This LuaJIT script receives first OutputDebugMessage() from LGS/GHUB, prints the message to stdout and exits | |
-- Waiting is limited to 2 seconds | |
local timeout_msec = 2000 -- set 2^32-1 for infinite waiting | |
local ffi = require"ffi" | |
local psapi = ffi.load"psapi" | |
ffi.cdef[[ | |
uint32_t EnumProcesses(uint32_t *, uint32_t, uint32_t *); |
local wcwidth -- function wcwidth(codepoint) returns 0, 1 or 2 for codepoints from the range 0..0x10FFFF | |
do -- implementation from the C library "utf8proc" was rewritten in Lua, compressed and minified | |
local d = [[r6rur7!&B!!(!"my!"arCssststssrNx|}ssrDr+r&sr{zsxttsvr7sssr4r1rq}rP{{sr.vs{suswrAu!!/rGrLusr(sy|tr | |
3urNssytttu{s|tr0sturNsswvttuusr4tus}urNsszsusur*tr,xsurNssytttuyu|tr4srQwuusv{sr>wrOysusvyt}tr3urNssysusvyt}tr2vrMt | |
sysusv{s|tr3ur\svxssszr(trSsty~zrxst{}xr`tr1sssssvtrGr*stw}sr:{srzr*r-vvusutyuvr#~ss|vrxrv!%=u!)zur3ur3tr4trVr6{srCv | |
!!.tr8s!!.~v~!"5wrO|sr3tsrFr'rUwrEr'r<{~ur4r#rNr$rFr*!!Pusr+vsxstu!!~rPsw!%Kwr.yrGws|rvr7!%itr#t!!vvusts!%Itr+trH~rA | |
sr)sr#sztr'twtzswsr+sytssvstsysvtr2sr9sssvussrSur.sr$s!)#trIsvs!$7u!!Esrvr6!!8r0sro~!"0r0~vr@vr'trlttr{wrAsrtsrj~rEs | |
r>z!jZrV#C1u!,;urM!$Fvs|r6trft!"jsusvsr-wvsritrHr(r0r(r#sr<zr/r#~r3uvrEr$r:srYr$~sztrCurHssuttwtssr?wwt!"Fzstr("8frr | |
!5`!c|!#jt!!"rZs!'er&|xr&r9sr)sv!!Kssrv!!7yr(u!%As!"<s!!Mw!1^ustwvr>uvs!!]t!%}v!$!t!!Q}!!gurKr% |
Windowless LuaJIT does not create a console window.
It runs invisible for user.
Please note that "windowless" means "doesn't have stdin, stdout and stderr".
You will not be able to see error message.
io.read()
, io.write()
and print()
in your Lua script will not work.
But in some situations invisible LuaJIT is just what you need very much.
For example, to avoid a GUI application (especially a game) to lose input focus when some background Lua script is started.
Windowless Lua does not create a console window.
It runs invisible for user.
Please note that "windowless" means "doesn't have stdin, stdout and stderr".
You will not be able to see error message.
io.read()
, io.write()
and print()
in your Lua script will not work.
But in some situations invisible Lua is just what you need very much.
For example, to avoid a GUI application (especially a game) to lose input focus when some background Lua script is started.
-
Download the latest Lua and LuaJIT sources
-
Create temporary folder for Lua sources.
I assume you would useC:\Temp\
folder. -
Visit Lua FTP webpage and download the latest Lua source archive, currently it is
lua-5.4.3.tar.gz
-
- Use suitable software (7-Zip, WinRar, WinZip or TotalCommander) to unpack the archive.