This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |