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 18:44
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How can a script or batch file let a laptop switch displays with one key? View 1,068 Replies 4
Original Poster Posted 2010-01-30 20:38 ·  中国 浙江 嘉兴 电信
中级用户
★★
Credits 360
Posts 216
Joined 2007-05-29 17:41
19-year member
UID 89677
Gender Male
Status Offline
Most laptops in use now need the FN+F8/F7 key combination
to switch to a projector


Is there any way for a batch file or script to achieve one-key switching, or programmatic switching?

I've been thinking about it for days. I used the SENDKEYS command in scripts before, but it doesn't have the FN key..

[ Last edited by bd123456789 on 2010-2-7 at 16:40 ]
Floor 2 Posted 2010-02-05 11:44 ·  中国 浙江 嘉兴 海宁市 电信
中级用户
★★
Credits 360
Posts 216
Joined 2007-05-29 17:41
19-year member
UID 89677
Gender Male
Status Offline
Has anyone looked into this?
Floor 3 Posted 2010-02-05 12:47 ·  中国 天津 移动
新手上路
Credits 9
Posts 9
Joined 2009-08-27 23:14
16-year member
UID 151077
Gender Male
Status Offline
Following this!
Floor 4 Posted 2010-02-05 12:54 ·  中国 北京 中电华通通信有限公司
高级用户
★★★
据说是李先生
Credits 609
Posts 400
Joined 2008-04-23 15:55
18-year member
UID 116706
Gender Male
Status Offline
I found these remarks online:

The Fn key is designed differently on different kinds of laptops, so their key values are all different.
http://www.qikan.com.cn/Article/dnah/dnah200820/dnah20082062.html

The Fn key is handled at the BIOS level, ordinary programs can't catch it.
http://topic.csdn.net/t/20060828/14/4980722.html

On laptops, the FN key does not serve an input function. Like the Ctrl key, it is purely a modifier key. The key combinations formed by FN and other keys may be supported directly by the BIOS (this is how most brands do it), or they may be at the software level (for example, Sony's approach). Of course, the most common form now is a hybrid one, meaning some key combinations are directly supported by the BIOS and can be used in any environment, while some combinations require additional software support in the operating system before they take effect.
http://www.360doc.com/content/06/1001/15/3032_220751.shtml

[ Last edited by qinchun36 on 2010-2-5 at 12:59 ]
┏━━━━━━┓
┃据说是李先生┃
┠──────┨
┃*ntRSS┃
┗━━━━━━┛
Floor 5 Posted 2010-02-07 16:38 ·  中国 浙江 嘉兴 电信
中级用户
★★
Credits 360
Posts 216
Joined 2007-05-29 17:41
19-year member
UID 89677
Gender Male
Status Offline
Learning, learning.
Many thanks, many thanks!

Looks like BIOS settings are generally needed.
But for this, it depends on the computer's factory configuration.
Forum Jump: