CN106815023A - A kind of method of adapter windows system start menus - Google Patents

A kind of method of adapter windows system start menus Download PDF

Info

Publication number
CN106815023A
CN106815023A CN201710012481.1A CN201710012481A CN106815023A CN 106815023 A CN106815023 A CN 106815023A CN 201710012481 A CN201710012481 A CN 201710012481A CN 106815023 A CN106815023 A CN 106815023A
Authority
CN
China
Prior art keywords
taskbar
menu
parameter
windows
windows systems
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710012481.1A
Other languages
Chinese (zh)
Other versions
CN106815023B (en
Inventor
朱明�
娄国栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Huaruan Goldencis Software Co Ltd
Original Assignee
Shandong Huaruan Goldencis Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Huaruan Goldencis Software Co Ltd filed Critical Shandong Huaruan Goldencis Software Co Ltd
Priority to CN201710012481.1A priority Critical patent/CN106815023B/en
Publication of CN106815023A publication Critical patent/CN106815023A/en
Application granted granted Critical
Publication of CN106815023B publication Critical patent/CN106815023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • G06F21/56Computer malware detection or handling, e.g. anti-virus arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

A kind of method of adapter Windows system start menus, comprises the following steps:A) window handle of taskbar and start menu is obtained;B) the SetWindowsHookExW parameter registration keyboards HOOK in Windows systems is called;C) the SetWindowsHookExW parameter registration mouses HOOK in Windows systems is called;D) according to taskbar the window's position, set the left side of self-defined start menu away from be respectively with bottom margin the left side of taskbar window away from and top margin, call SetWindowPos parameters, show customized start menu.This method is except having taken over Windows start menus, user is facilitated to distinguish two desktops, more realize the application program controlling to another desktop, application program is waited to be killed again after running compared to legacy application blacklist, this programme causes that user can only run the built-in programs of self-defined start menu GdStartMenu so that unauthorized applications cannot be run at all.

Description

A kind of method of adapter windows system start menus
Technical field
The present invention relates to computer realm, and in particular to a kind of method of adapter windows system start menus.
Background technology
The many desktops of Windows, the same desktop ring can be created by API calls CreateDesktop Border, allows same work Program to be placed on desktop the inside, and work in addition is then put into another virtual desktop, allow work and Task is more made a careful and detailed analysis, methodically.Such as under default desktop, can be entertained with access internet etc. and operated, and Can only be handled official business under desktop 2.Under existing implementation, as default desktop is with the content inside the start menu of desktop 2, all It is system default, is unfavorable for that keeper to being limited under desktop 2, such as forbids operation QQ or prohibits the use of control panel Deng being also unfavorable for that user carries out good differentiation to default desktop and desktop 2.
The content of the invention
The present invention is in order to overcome the shortcomings of above technology, there is provided one kind takes over newly-built table by Windows HOOK technologies Start menu under face, shows customized start menu, the adapter of isolation and the control of application program under achievable different desktops The method of windows system start menus.
The present invention overcomes the technical scheme that its technical problem is used to be:
A kind of method of adapter Windows system start menus, comprises the following steps:
A) API FindWindowW and the FindWindowEx parameter in Windows systems is called to obtain taskbar respectively and open The window handle of beginning menu;
B) the SetWindowsHookExW parameter registration keyboard HOOK in Windows systems are called, in GdGlobaKeyHook In function, the button of the keyboard to receiving judges, the press key contents of keyboard are defined on the struct in Windows systems In KBDLLHOOKSTRUCT parameters, when a parameter of struct KBDLLHOOKSTRUCT parameters is defined as #define VK_ During LWIN 0x5B or #define VK_RWIN 0x5C, start GdStartMenu, the beginning dish of system adapter Windows systems It is single, and custom menu is shown, while returning to the false FALSE parameters in Windows systems, terminate keyboard parameter and be defined as # The transmission of the keypad code of define VK_LWIN 0x5B or #define VK_RWIN 0x5C;
C) the SetWindowsHookExW parameter registration mouse HOOK in Windows systems are called, In GdGlobaMouseHook functions, following parameter when receiving mouse down:Including lateral coordinates x and longitudinal coordinate y, obtain and appoint Business column main window size, start menu window size is obtained, lateral coordinates x is more than the system start menu left side when mouse down Away from and less than system start menu rightmargin, longitudinal coordinate is more than taskbar top margin and following less than taskbar during mouse down Away from when, start GdStartMenu, the start menu of system adapter Windows systems, and show custom menu, while return False FALSE parameters in Windows systems, the message of parameter when terminating mouse down sends;
D) according to taskbar the window's position, the left side for setting self-defined start menu is respectively taskbar window away from bottom margin The left side away from and top margin, call SetWindowPos parameters, show customized start menu.
The beneficial effects of the invention are as follows:This method facilitates user to distinguish two tables except having taken over Windows start menus Face, more realizes the application program controlling to another desktop, to wait application program to transport compared to legacy application blacklist Killed again after row, this programme causes that user can only run the built-in programs of self-defined start menu GdStartMenu so that illegal Application program cannot be run at all.
Specific embodiment
The present invention will be further described below.
A kind of method of adapter Windows system start menus, comprises the following steps:
A) API FindWindowW and the FindWindowEx parameter in Windows systems is called to obtain taskbar respectively and open The window handle of beginning menu;B) the SetWindowsHookExW parameter registration keyboard HOOK in Windows systems are called, In GdGlobaKeyHook functions, the button of the keyboard to receiving judges, the press key contents of keyboard are defined on Windows In struct KBDLLHOOKSTRUCT parameters in system, when a parameter of struct KBDLLHOOKSTRUCT parameters is determined When justice is for #define VK_LWIN 0x5B or #define VK_RWIN 0x5C, start GdStartMenu, system adapter The start menu of Windows systems, and custom menu is shown, while the false FALSE parameters in Windows systems are returned, eventually Only keyboard parameter is defined as the transmission of the keypad code of #define VK_LWIN 0x5B or #define VK_RWIN 0x5C;c) The SetWindowsHookExW parameter registration mouse HOOK in Windows systems are called, in GdGlobaMouseHook functions In, following parameter when receiving mouse down:Including lateral coordinates x and longitudinal coordinate y, obtain taskbar main window size, acquisition Start menu window size, when mouse down, lateral coordinates x starts dish away from and less than system more than the system start menu left side Single rightmargin, longitudinal coordinate starts more than taskbar top margin and during less than taskbar bottom margin during mouse down GdStartMenu, the start menu of system adapter Windows systems, and custom menu is shown, while returning to Windows systems False FALSE parameters in system, the message of parameter when terminating mouse down sends;D) according to taskbar the window's position, set certainly Define the left side of start menu away from be respectively with bottom margin the left side of taskbar window away from and top margin, call SetWindowPos Parameter, shows customized start menu.This method facilitates user to distinguish two tables except having taken over Windows start menus Face, more realizes the application program controlling to another desktop, to wait application program to transport compared to legacy application blacklist Killed again after row, this programme causes that user can only run the built-in programs of self-defined start menu GdStartMenu so that illegal Application program cannot be run at all.Such as certain company is handled official business using virtualization desktop, and client accesses interconnection under default desktop Net, can run QQ and a sudden peal of thunder, under desktop 2, not allow to run QQ and a sudden peal of thunder.Connect by the start menu to desktop 2 Pipe, shows self-defined start menu.QQ and a control sudden peal of thunder cannot be run by start menu so under desktop 2, rather than Killed again by application program blacklist again after being behaved Deng QQ and a sudden peal of thunder, the software such as OA systems that operation can only be allowed built-in System, on the other hand, has been also convenient for user and has distinguished default desktop and desktop 2.Hold all Windows operating systems, including XP, Win7, win8 and win10 etc..Realize that adapter start menu supports mouse and keyboard button two ways by HOOK, do not change Become the use habit of user.

Claims (1)

1. a kind of method of adapter Windows system start menus, it is characterised in that comprise the following steps:
A) API FindWindowW and the FindWindowEx parameter in Windows systems is called to obtain taskbar respectively and open The window handle of beginning menu;
B) the SetWindowsHookExW parameter registration keyboard HOOK in Windows systems are called, in GdGlobaKeyHook In function, the button of the keyboard to receiving judges, the press key contents of keyboard are defined on the struct in Windows systems In KBDLLHOOKSTRUCT parameters, when a parameter of struct KBDLLHOOKSTRUCT parameters is defined as #define VK_ During LWIN 0x5B or #define VK_RWIN 0x5C, start GdStartMenu, the beginning dish of system adapter Windows systems It is single, and custom menu is shown, while returning to the false FALSE parameters in Windows systems, terminate keyboard parameter and be defined as # The transmission of the keypad code of define VK_LWIN 0x5B or #define VK_RWIN 0x5C;
C) the SetWindowsHookExW parameter registration mouse HOOK in Windows systems are called, In GdGlobaMouseHook functions, following parameter when receiving mouse down:Including lateral coordinates x and longitudinal coordinate y, obtain and appoint Business column main window size, start menu window size is obtained, lateral coordinates x is more than the system start menu left side when mouse down Away from and less than system start menu rightmargin, longitudinal coordinate is more than taskbar top margin and following less than taskbar during mouse down Away from when, start GdStartMenu, the start menu of system adapter Windows systems, and show custom menu, while return False FALSE parameters in Windows systems, the message of parameter when terminating mouse down sends;
D) according to taskbar the window's position, the left side for setting self-defined start menu is respectively taskbar window away from bottom margin The left side away from and top margin, call SetWindowPos parameters, show customized start menu.
CN201710012481.1A 2017-01-09 2017-01-09 Method for taking over windows system start menu Active CN106815023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710012481.1A CN106815023B (en) 2017-01-09 2017-01-09 Method for taking over windows system start menu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710012481.1A CN106815023B (en) 2017-01-09 2017-01-09 Method for taking over windows system start menu

Publications (2)

Publication Number Publication Date
CN106815023A true CN106815023A (en) 2017-06-09
CN106815023B CN106815023B (en) 2020-05-05

Family

ID=59110022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710012481.1A Active CN106815023B (en) 2017-01-09 2017-01-09 Method for taking over windows system start menu

Country Status (1)

Country Link
CN (1) CN106815023B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120227011A1 (en) * 2011-03-03 2012-09-06 Sony Network Entertainment International Llc Method and apparatus for providing customized menus
CN102722403A (en) * 2012-05-30 2012-10-10 福建天晴数码有限公司 Method for taking over Windows desktop
CN103019840A (en) * 2012-11-22 2013-04-03 北京奇虎科技有限公司 Method and device for setting desktop
CN103197921A (en) * 2012-01-05 2013-07-10 腾讯科技(深圳)有限公司 Method and system for processing program start menu
CN103365530A (en) * 2012-04-09 2013-10-23 腾讯科技(深圳)有限公司 Method and device for providing quick start entry
CN103902258A (en) * 2012-12-25 2014-07-02 腾讯科技(深圳)有限公司 Method and device for displaying self-defined menu in webpage
CN104461260A (en) * 2014-11-27 2015-03-25 武汉大学 Method for customizing mouse right-click menu for SVG
US9342216B2 (en) * 2013-04-11 2016-05-17 Disney Enterprises, Inc. Dynamic interactive menu board

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120227011A1 (en) * 2011-03-03 2012-09-06 Sony Network Entertainment International Llc Method and apparatus for providing customized menus
CN103197921A (en) * 2012-01-05 2013-07-10 腾讯科技(深圳)有限公司 Method and system for processing program start menu
CN103365530A (en) * 2012-04-09 2013-10-23 腾讯科技(深圳)有限公司 Method and device for providing quick start entry
CN102722403A (en) * 2012-05-30 2012-10-10 福建天晴数码有限公司 Method for taking over Windows desktop
CN103019840A (en) * 2012-11-22 2013-04-03 北京奇虎科技有限公司 Method and device for setting desktop
CN103902258A (en) * 2012-12-25 2014-07-02 腾讯科技(深圳)有限公司 Method and device for displaying self-defined menu in webpage
US9342216B2 (en) * 2013-04-11 2016-05-17 Disney Enterprises, Inc. Dynamic interactive menu board
CN104461260A (en) * 2014-11-27 2015-03-25 武汉大学 Method for customizing mouse right-click menu for SVG

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NTC2000: "《怎样接管windows的开始菜单,用自己的菜单替换它》", 《HTTPS://BBS.CSDN.NET/TOPICS/52498》 *

Also Published As

Publication number Publication date
CN106815023B (en) 2020-05-05

Similar Documents

Publication Publication Date Title
US9575649B2 (en) Virtual touchpad with two-mode buttons for remote desktop client
EP2511812B1 (en) Continuous recognition method of multi-touch gestures from at least two multi-touch input devices
US20110296333A1 (en) User interaction gestures with virtual keyboard
US20030217287A1 (en) Secure desktop environment for unsophisticated computer users
US6853390B1 (en) Displaying option information using a non-modal dialog box
US20110175827A1 (en) Filtering Input Streams in a Multi-Touch System
JP2005196740A (en) Graphic multi-user interface for solving contention and method for solving contention of graphic multiuser interface
JP6641570B2 (en) Multi-touch virtual mouse
WO2012034378A1 (en) Method and device for generating dynamically touch keyboard
US20060010402A1 (en) Graphical user interface navigation method and apparatus
EP4206883A1 (en) Permission setting method and apparatus and electronic device
CN102768595B (en) A kind of method and device identifying touch control operation instruction on touch-screen
WO2013152615A1 (en) Touchscreen operation processing method and touch control device
CN101408823A (en) Method for judging double clicks of touch screen
TW201030566A (en) Signal processing apparatus, signal processing method and selecting method of user-interface icon for multi-touch interface
WO2013178192A2 (en) Touchscreen single-point control method, device and mobile terminal
CN105867831B (en) The operating method and system of a kind of touch-screen
CN109885236B (en) Method for realizing interactive operation with remote system desktop based on mobile equipment
CN106815023A (en) A kind of method of adapter windows system start menus
CN102693064B (en) Method and system for quitting protection screen by terminal
JPH0644306A (en) Method and device for providing group question
CN103631408B (en) The treating method and apparatus of touch command
TW200426690A (en) A method capable of promptly switching operation mode of touch device and device thereof
JP2012248155A (en) Image utilization type authentication method
US8922515B2 (en) System and method for real-time adaptation of a GUI application for left-hand users

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PP01 Preservation of patent right

Effective date of registration: 20231113

Granted publication date: 20200505

PP01 Preservation of patent right