Deutsch English Français Italiano |
<t5via4$joe$1@gioia.aioe.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!aioe.org!zabDkiJnTMb8/8dY5+WhLA.user.46.165.242.91.POSTED!not-for-mail From: Didier <nospam@invalid.invalid> Newsgroups: fr.comp.os.ms-windows Subject: Re: batch Date: Tue, 17 May 2022 09:19:32 +0200 Organization: Aioe.org NNTP Server Message-ID: <t5via4$joe$1@gioia.aioe.org> References: <62824b2d$0$18031$426a74cc@news.free.fr> <62824c99$0$18401$426a74cc@news.free.fr> <62827686$0$8529$426a74cc@news.free.fr> <628337a1$0$26325$426a74cc@news.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: gioia.aioe.org; logging-data="20238"; posting-host="zabDkiJnTMb8/8dY5+WhLA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Content-Language: fr X-Notice: Filtered by postfilter v. 0.9.2 Bytes: 2075 Lines: 30 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>