China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 10:21
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Original] Farewell to the Keyboard, Control CMD with Mouse Based on SYBC 1.1.41 View 2,143 Replies 13
Original Poster Posted 2010-04-25 21:58 ·  中国 河北 廊坊 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
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 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
plp626 +15 2010-04-25 22:36
Attachments
sbjp.GIF
鼠标控制命令行输入2010-4-26.rar (2.02 KiB, Downloads: 107)
SYBNQQ:354324773
Floor 2 Posted 2010-04-25 22:00 ·  中国 河北 廊坊 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
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
SYBNQQ:354324773
Floor 3 Posted 2010-04-26 00:17 ·  中国 陕西 咸阳 电信
初级用户
★★
Credits 128
Posts 122
Joined 2009-09-21 06:24
16-year member
UID 152378
Gender Male
Status Offline
Give it a support, SYBC, amazing…
Floor 4 Posted 2010-04-26 10:23 ·  中国 四川 泸州 联通
高级用户
★★★
Credits 609
Posts 374
Joined 2006-08-02 22:38
20-year member
UID 59720
Status Offline
Unable to execute. It seems that SYBC M cannot freeze the screen.

[ Last edited by ZJHJ on 2010-4-26 at 10:30 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
sl543001 +4 2010-04-26 22:49
Attachments
yyy.gif
Floor 5 Posted 2010-04-26 11:05 ·  中国 四川 泸州 联通
高级用户
★★★
Credits 609
Posts 374
Joined 2006-08-02 22:38
20-year member
UID 59720
Status Offline
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 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
sl543001 +4 2010-04-26 22:49
Attachments
CMD彩色字符设置SYBC1.1.31.rar (36.18 KiB, Credits to download 1 pts, Downloads: 17)
Floor 6 Posted 2010-04-26 11:13 ·  中国 四川 成都 电信
初级用户
★★
Credits 118
Posts 66
Joined 2006-08-18 16:04
19-year member
UID 60797
Gender Male
Status Offline
Learned, that's amazing.
Floor 7 Posted 2010-04-26 20:20 ·  中国 河北 廊坊 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
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, Downloads: 20)
SYBNQQ:354324773
Floor 8 Posted 2010-04-26 20:26 ·  中国 河北 廊坊 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
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, Downloads: 21)
SYBNQQ:354324773
Floor 9 Posted 2010-04-27 09:02 ·  中国 四川 南充 联通
高级用户
★★★
Credits 609
Posts 374
Joined 2006-08-02 22:38
20-year member
UID 59720
Status Offline
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 ]
Floor 10 Posted 2010-05-02 14:07 ·  中国 江西 南昌 电信
初级用户
Credits 43
Posts 29
Joined 2008-03-31 15:01
18-year member
UID 114543
Gender Male
Status Offline
Ah, interesting program
Floor 11 Posted 2010-05-02 14:50 ·  中国 陕西 西安 电信
新手上路
Credits 1
Posts 1
Joined 2010-04-30 09:13
16-year member
UID 165818
Gender Male
Status Offline
Floor 12 Posted 2010-05-10 18:05 ·  中国 河北 廊坊 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
There are still some small problems that haven't been solved
SYBNQQ:354324773
Floor 13 Posted 2010-05-10 21:55 ·  中国 四川 泸州 联通
高级用户
★★★
Credits 609
Posts 374
Joined 2006-08-02 22:38
20-year member
UID 59720
Status Offline
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!
Floor 14 Posted 2010-06-02 18:19 ·  中国 广东 江门 电信
新手上路
Credits 18
Posts 11
Joined 2010-05-28 18:29
16-year member
UID 167816
Gender Male
Status Offline
Forum Jump: