Posts tagged ‘Windows Mobile 6’

Mobile Developement – RDP AutoLogin extended (version 4)

Hello

on the wish of the one or other user I extended the RDP AutoLogin code and we now reached level 4.

The new code simply has only one extension, it supports the color depth selection. Also the color depth and other settings are visible on the dialog of Remote Desktop Mobile, the settings itself are done via the Default.rdp file. But you are right, RDP_AutoLogin also controls some of the dialog items directly.

  1. ...
  2. Domain:s:
  3. ColorDepthID:i:3
  4. ScreenStyle:i:0
  5. DesktopWidth:i:640
  6. DesktopHeight:i:480
  7. UserName:s:rdesktop
  8. ...
  9. ServerName:s:192.168.128.5
  10. SavePassword:i:1
  11. ...

The color depth setting supports two modes, 8 Bit with 256b colors (ColorDepthID:i:1) and 16 Bit with ~65000 colors (ColorDepthID:i:3).

  1. REGEDIT4
  2.  
  3. [HKEY_LOCAL_MACHINE\Software\RDP_autologin]
  4. "FitToScreen"="1"
  5. "FullScreen"="1"
  6. "Status"="connecting..."
  7. "Save Password"="1"
  8. "Domain"=""
  9. "Password"="Intermec+2004"
  10. "Username"="rdesktop"
  11. "Computer"="192.168.0.130"
  12. "DesktopWidth"=640
  13. "DesktopHeight"=480
  14. "startOnExit"="\\rdp_keepBusy.exe"
  15. "execargs"="noRDPstart"
  16. "UseMouseClick"="0" //added with version 3 to switch between mouse and keyboard simulation
  17. "ColorDepth"=1 //added with version 4 to enable switching between 8 and 16 Bit colors

The code changes are small. Some code addition to read the value from the registry and some to write the rdp file:

  1. void readReg(){
  2. ...
  3.         //ColorDepth new with version 4
  4.         if(RegReadDword(L"ColorDepth", &dwTemp) == 0)
  5.             dwColorDepth=dwTemp;
  6. ...
  7. }
  8. void writeRDP(){
  9. ...
  10. else if(wcsstr(rdpLines[c].line, L"ColorDepthID")!=NULL){
  11. wsprintf(szTemp, rdpLines[c].line, dwColorDepth); //3=HighColor(16Bit) or 1=(8Bit) color
  12. }
  13. ...
  14. }

Additionally I have added a new project to the solution to enable to set all the settings not only via the registry but using a GUI application. RDP_Autologin_Settings is born:

Continue reading ‘Mobile Developement – RDP AutoLogin extended (version 4)’ »

Internet Explorer Mobile handles key events

WOW, IEM (tested from AKU 6.1.5) handles key events.

Continue reading ‘Internet Explorer Mobile handles key events’ »

AJAX and Windows Mobile 6

Some time ago MS announced an extended Mobile Internet Explorer (sorry, it has to be called Internet Explorer Mobile now, nor Pocket Internet Explorer. Thanks to all these new terms for the same thing to MS. PIE, MIE, IEM is all the same) with the release of Windows Mobile 6.1.4: Internet Explorer Mobile.

I did a short test and will still recommend Access Netfront for professional use. IEM runs slow and I can not see the ((un-)documented) enhancements for web programmers.

Josef