Skip to content

Instantly share code, notes, and snippets.

View neradp's full-sized avatar

Peter Nerád neradp

View GitHub Profile
@neradp
neradp / tc.au3
Created May 10, 2021 09:44
Autoit Helper script to run Total Commander from Windows Explorer address bar at current directory
RunWait(@ComSpec & " /c %SystemDrive%&&cd %temp%&&echo %cd%>current_directory.tmp", "", @SW_hide); create temp file to save %cd%
$tmp_file = FileOpen(@TempDir & "\current_directory.tmp", 0)
; Check if file opened for reading OK
If $tmp_file = -1 Then
Exit
EndIf
; Read in lines of text until the EOF is reached
While 1
$current_directory = FileReadLine($tmp_file)
If @error = -1 Then ExitLoop
@neradp
neradp / nbl_scanner.user.js
Last active November 5, 2020 17:58
Automatic entry of cash register receipt into the national block lottery by a webcam.
This file has been truncated, but you can view the full file.
// ==UserScript==
// @name NBL QRCode Scanner
// @namespace https://nbl.nerad.sk/
// @version 3.0.2
// @license MIT <https://opensource.org/licenses/MIT>
// @icon https://narodnablockovaloteria.tipos.sk/Img/favicon.ico
// @description Automatic entry of cash register receipt into the national block lottery by a webcam.
// @author Peter Nerad <peter@nerad.sk>
// @match https://narodnablockovaloteria.tipos.sk/sk/administracia/registracia-dokladu
// @require https://openuserjs.org/src/libs/sizzle/GM_config.min.js