Remote Control Under WinCE

Source: Internet
Author: User

I used to introduce it to others.Windows CETo demonstrateProgramIs usedRemote zoominTo take screenshots, the device is refreshed,Remote zoominYou have to go to manualRefreshInCEAndPCThe two sides are very busy. At that time, I thought, would it save so much trouble if I had the automatic refresh function. If you canPCClient direct controlCEEquipment, isn't it better?

After reading the Help fileWinCEYesRDP, Add the corresponding components. After compilation, test the device and findCEYou can log in.Windows XPAnd the effect is good! HoweverCEIt cannot.Server, Can only doClient. Therefore, it is impossible to directly use ready-made components. You can only make such a small tool by yourself, so as not to be too busy in the future.

A preliminary analysis is given. To achieve this function,CEThe client needs to do two things. First, real-time screenshots are concurrently sentPC. Second, receivePCCommands sent from the client(Message commands for mouse and keyboard)Simulate mouse and keyboard events. WhilePCAs long as the client does two corresponding tasks, the first is to receiveCEScreen Content sent from the clientBufAnd display it. The second is to capture the mouse and keyboard messages andCESent in the past. These items are easy to implement.

FirstCEThe main task is to copy the device environment of the screen to the corresponding memory device environment, and then sendDiBData in,PCCall a functionStretchdibits ()Show receivedColor data. The only thing to note here is that the mouse pointer information is not captured during screenshots, so the mouse pointer is animated after screenshots. Otherwise,PCEnd cannot be displayedCEThe mouse position and action.

Simulate mouse and keyboard events onCEIt is easy to useMouse_event ()AndKeybd_event ()These two functions are enough. WhilePCYou can use either of the following methods to capture the mouse and keyboard messages. Pretranslatemessage Method 2 is done in various message processing functions. Note that the keyboard message must be in Pretranslatemessage Or cannot be captured. At the beginning, I was confused here for a while. L

I will not talk much about the principles.WindowsThe idea of remote control software is the same. Next we will consider some details. For example, communication methods,EVCThe remote tool inActiveSyncFor communication, you can also useEthernet. So it is best to use these two methods for convenience. In addition, if you are usingActiveSyncIs it usable?RapiDirectly copy the program on the deviceCEAnd run it. This saves the trouble of manual copying.

After a while, I found that all these requirements can be met. After all the parts are completed, the joint debugging basically achieved the expected results. HoweverCEWhen the resolution is large, it feels a little dull. So I thought about the optimization method. There are basically the following three points: comparison, segmentation, and compression. The so-called comparison is inCEAfter screenshots are taken, make a backup. When screenshots are taken again, compare them with the backups. If they are inconsistent, send them again. Otherwise, do not send them.PCUpdate. Parts can be used together with the comparison. If the screen is only partial update, only the updated blocks can be sent, while other blocks are not sent. Compression can theoretically improve transmission efficiency. A rough comparison is as follows:640*480Of16bitThe bitmap is600 KAnd the compressedJPGDozens of imagesK, The difference is considerable. All three methods can save network bandwidth, but they also increaseCPUThe actual effect is hard to say. This small tool is mainly used in the LAN, and bandwidth is not a problem, so we will not optimize it for the time being.

Later, someone askedCEWhere is the touch screen calibration,CEHow to Create a synchronous connection. To ensure accurate operations, he recorded a video using the remote display tool and screen recording experts, and the effect was quite good. Later, we thought it would be better to integrate the screen recording function in this small tool, which saves the trouble of screen recording experts. So I foundBMPSaveAviAdded the screen recording function. Of course, because there is no compression, the recordedAviThe file is very large. It takes dozens of megabytes in a minute!

Since we have this little toolWindowsCEThe program can be easily recorded.WinCEThe operation steps below save a lot of saliva. Now I will share it with you and hope it can solve your problems.Pai_^

RelatedRMCTool description:

1.Because it supportsUSB ActiveSyncAnd can automatically copy files to the device for running.LCDYou can use your computer monitor as a device.LCDDisplay.(Debugging in the past two days supports multi-resolutionEbootThis function is used, and the effect is quite good.).

2.Do not modify the device program when you want to use synchronous connections and automatically copy the device program.Rmcec.exeAndRmcpc.exeIn the same directory.

In fact, I found several software with similar functions on the Internet. One of them isWindows Mobile Power toysIt seems likeRMCFaster, but not supportedEthernetOnlyUSBAnd manually copy the file to the device. The other one isSOTIThe company's software looks very professional and has tried to crack it.5.0The trial version does not know whether the attack is broken or not completely cracked. It takes a while to close it. Use your ownRMCIt's simple and convenient.Pai_^

wince : http://files.cnblogs.com/we-hjb/CERHOST.rar

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.