Sujet : Re: batch
De : nospam (at) *nospam* invalid.invalid (Didier)
Groupes : fr.comp.os.ms-windowsDate : 17. May 2022, 09:19:32
Autres entêtes
Organisation : Aioe.org NNTP Server
Message-ID : <t5via4$joe$1@gioia.aioe.org>
References : 1 2 3 4
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0
Le 17/05/2022 à 07:50, Sergio a écrit :
Le 16/05/2022 à 18:06, chebol a écrit :
:(> powershell, c'est bien aussi
>
C KOI ?
Une bouze de Microsoft réinventant la roue en tentant de faire des batch inbittables au commun des mortels.
Idéal pour faire des virus...
Eh oui ! Linux et ses diiférents shells, c'est bôôôcoup plus clair ;-)
Exemple :
<code>
-- getconnections with InputBegan / InputEnded does not work without setting Synapse to the game's context level
set_identity(2)
local didFire = false
for _, signal in next, getconnections(signal) do
if type(signal.Function) == 'function' and islclosure(signal.Function) then
local scr = rawget(getfenv(signal.Function), 'script')
if scr == target then
didFire = true
pcall(signal.Function, ...)
end
end
end
-- if not didFire then fail"couldnt fire input signal" end
set_identity(7)
</code>