中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 09:31
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Original] Farewell to the Keyboard, Control CMD with Mouse Based on SYBC 1.1.41
Printable Version  2,141 / 13
Floor1 sl543001 Posted 2010-04-25 21:58
中级用户 Posts 225 Credits 499
In order to test the stability of SYBC, the mouse control version of Dou Di Zhu (Landlord) has been updated.
Now release the just-written SYBC demo code - mouse soft keyboard
The entire script runs without any keyboard keys,
Everyone can input any CMD command just with the mouse
It can be taken and used without a keyboard
Note: The right side of number 0 is a space

[ Last edited by sl543001 on 2010-4-26 at 22:48 ]

Attachments
sbjp.GIF (15.06 KiB)
鼠标控制命令行输入2010-4-26.rar (2.02 KiB)
Floor2 sl543001 Posted 2010-04-25 22:00
中级用户 Posts 225 Credits 499
Supplementary: Regardless of row markers, the effect is the same if the mouse is clicked in the same column regardless of height

SYBC1.1.41 mouse function does not support without third parties, so the SYBC.COM entity file is generated
Floor3 jarry0932 Posted 2010-04-26 00:17
初级用户 Posts 122 Credits 128
Give it a support, SYBC, amazing…
Floor4 ZJHJ Posted 2010-04-26 10:23
高级用户 Posts 374 Credits 609
Unable to execute. It seems that SYBC M cannot freeze the screen.

[ Last edited by ZJHJ on 2010-4-26 at 10:30 ]

Attachments
yyy.gif (35.6 KiB)
Floor5 ZJHJ Posted 2010-04-26 11:05
高级用户 Posts 374 Credits 609
It is suggested that the color setting still be written as no third - party loading into memory, so that there can be unlimited single - line code, which is convenient for the development and application of SYBC. The mouse function can be separately released from CMD as a file.

I uploaded a ConsExt.exe that supports the mouse function and is compatible with your 1.1.31 memory - loading application. It is very simple and convenient to use this way, and it is also convenient for the development of SYBC. Please make your mouse function smaller (just because ConsExt.exe is 200K too large) and do not add other auxiliary functions. In fact, ConsExt.exe also has many functions (also has color character setting). The advantage of SYBC is that it is easy to set with single - line code.

@ECHO Off&(CHCP 437 &GRAFTABL 936)>NUL
call :SYBC 103000e 275 - byte $0BCMD color character $0E setting module (1.1.31)$79 Developer: jxfa0086768 qq 354324773;$0c Setting color characters is very convenient$0f The demonstration seen now$6a is the single - line code output effect$0d Place the module in your own script$0d and directly; Follow the required content. Because the code is loaded into memory,$f9 The single - line code parameter can be infinitely long;$e3 Make the call times very few$4c Fast display speed$07 Compatible with ConsExt.exe to realize mouse operation$0f No initialization process is required;:11001$4c☉$4c▄▄▄▄$4c☉;$c4▌$c9 Player SYBN$4c▌;$c4▌$ce Remaining cards 17$4c▌;$4c☉$c4▄▄▄▄$4c☉;:11601$f1┏━━━━┓;┃╳╳╳╳┃;┃╳$f2 Landlord$f1╳┃;┃╳╳╳╳┃;┃╳$fc2010$f1╳┃;┃╳╳╳╳┃;┗━━━━┛;:11016f0 $e0 $b0 $a0 $d0 $c0 $90 ;$f0 $e0 $b0 $a0 $d0 $c0 $90 ;$f0 $e0 $b0 $a0 $d0 $c0 $90 ;$f0 $e0 $b0 $a0 $d0 $c0 $90 ;$f0 $e0 $b0 $a0 $d0 $c0 $90 ;$f0 $e0 $b0 $a0 $d0 $c0 $90 ;$f0 $e0 $b0 $a0 $d0 $c0 $90 ;$f0 $e0 $b0 $a0 $d0 $c0 $90 ;$f0 $e0 $b0 $a0 $d0 $c0 $90 ;:1094010 1 ;$20 2 ;$30 3 ;$40 4 ;$50 5 ;$60 6 ;$70 7 ;$80 8 ;$90 9 ;$a0 a ;$b0 b ;$c0 c ;$d0 d ;$e0 e ;$f0 f ;:10000$f0 :::│$fC Product$f9 Computer left $f00 $f2+0$fC=$f00 $f0│$fC  Landlord V0.0  $f0│$f0 $f0│ Bottom card │::: ;:10100$f0 ::│$fC Points$f9 Computer right $f00 $f2+0$fC=$f00 $f0│$f9 Development: SYBN NETBENTON PLP $f0│$f9 Computer left $f0│ │:: ;:10200$f0 :│$fC Rank$f9 Player SYBN $f00 $f2+0$fC=$f00 $f0│$f22010 - 3 - 20  Press F1 to view help$f0│$fD Bid 3 points $f0│ │: ;:12320ec View code;
start "NewThread" /b ConsExt.exe /showtime 54 08 0 10 8 "Local time: "
::Get mouse coordinates
:hh
ConsExt /event
set /a sbs=%errorlevel%+1
set mX=%sbs:~0,-3%
set mY=%sbs:~-2,2%
call :SYBC 12016$0e Coordinates ( X %mX%, Y %mY% )
::Mouse coordinate judgment
if %sbs% LSS 500 goto hh
if %mX% GTR 21 if %mX% LSS 28 if %mY%==24 goto kdm
ping/n 0 127.1>nul>NUL
goto hh
::pause>nul
exit
:kdm
start mrt.exe %0
goto hh
:SYBC
SET SYBCOM=A100`80BE AC00 003C 0375 83E9 3C00 ACFF 4275`2CBE AC00 E08A 86AC 50C4 BE1F 0000 3CAC`7553 ACFB 593C F675 3CAC 7542 ACF1 433C`EC75 3CAC 7553 ACE7 3D3C E275 14EB 3CAC`743A 3C0F 740D 3C4D 7400 8349 01EE 48EB`54B4 E8AC 0093 ADE8 3C00 7F18 8A37 E8F0`0087 A1E8 3C00 7F4F 8A2B B0D0 F602 50E2`A0B0 E6F6 035F 57F8 3CAC 7424 E80A 006A`49E8 8A00 EBCA E817 003F CA8A 10EB 00B0`16CD C48A 4CB4 21CD 815F A0C7 5700 B850`B800 0750 2B5A 8AEE ACD1 243C D974 3B3C`8C74 0D3C DE74 003C DA74 233C 0575 D783`EB01 AA01 C28A EBAA E8E0 001D 3C93 7E39`0402 8009 39FB 037E C380 2409 800F 0FE3`10B2 E2F6 C302 D08A ACC3 203C FB74 0D3C`A274 003C 9E74 D88A 3CAC 7420 3CEC 740D`3C93 7400 C38F 2C93 8030 30EB 0AB4 E4F6`C302 C3 `
set SYBCS=%*
SET V=`A80`DB FF``RCX`113`g`Q
(ECHO.%SYBCOM:`=&ECHO.DW %&ECHO.%V:`=&ECHO.%)|DEBUG>nul
goto :EOF

[ Last edited by ZJHJ on 2010 - 4 - 26 at 11:35 ]

Attachments
CMD彩色字符设置SYBC1.1.31.rar (36.18 KiB)
Floor6 weasel Posted 2010-04-26 11:13
初级用户 Posts 66 Credits 118
Learned, that's amazing.
Floor7 sl543001 Posted 2010-04-26 20:20
中级用户 Posts 225 Credits 499
The 4th floor may not have successfully generated SYBC.COM.
This script does not replace the old version of SYBC.COM in the same directory by default. You can try forced replacement.
Attachment: Script for forced replacement

[ Last edited by sl543001 on 2010-4-26 at 22:48 ]

Attachments
鼠标控制命令行输入2010-4-26.rar (2.02 KiB)
Floor8 sl543001 Posted 2010-04-26 20:26
中级用户 Posts 225 Credits 499
I wrote version 1.1.43 of SYBC yesterday, which supports getting the row and column numbers of the mouse and remembering the key pressed, but there are still some bugs, so it won't be released for now.

Regarding putting a separate mouse COM file alone, there's no problem with that, but it's not necessary because SYBC is smaller than one cluster, and splitting it into two would waste space.

But I'll still release one:

Parameters
mous without parameters: wait for a key press and get the column number
mous h: get the previous column number
mous AJ: get the previous key pressed. 1 = left button, 2 = right button. May appear 0 and 3

Attachments
鼠标.rar (152 bytes)
Floor9 ZJHJ Posted 2010-04-27 09:02
高级用户 Posts 374 Credits 609
I feel that the 80-byte mous.com still needs improvement...
1. Enabling ntvdm occupies too much CPU (almost 100%), which is the most fatal. Running programs will be very slow, and it should exit immediately after enabling. However, ntvdm is also enabled in ConsExt.exe, but there is no situation of excessive CPU occupancy, but it recovers to 0 in time.
2. The simultaneous acquisition of X and Y coordinates cannot be enabled, which limits the development in other places, and thus loses the practical significance of CMD enabling mouse support. It is difficult to do X and Y condition judgments and then goto...
3. If the h parameter is enabled, the Y coordinate data is continuously acquired even when the mouse is not clicked, and the %errorlevel% is also obtained.

[ Last edited by ZJHJ on 2010-4-27 at 17:11 ]
Floor10 gudou Posted 2010-05-02 14:07
初级用户 Posts 29 Credits 43
Ah, interesting program
Floor11 bluejort Posted 2010-05-02 14:50
新手上路 Posts 1 Credits 1
Floor12 sl543001 Posted 2010-05-10 18:05
中级用户 Posts 225 Credits 499
There are still some small problems that haven't been solved
Floor13 ZJHJ Posted 2010-05-10 21:55
高级用户 Posts 374 Credits 609
Can you modify that 80-byte mous.com according to the request of the ninth floor? The key issue is CPU usage. Also add a function to obtain and display time. Thanks!
Floor14 214136 Posted 2010-06-02 18:19
新手上路 Posts 11 Credits 18
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023