Announcement

Collapse
No announcement yet.

Automapa ((Europe) GPS Navigation) running with Wine

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automapa ((Europe) GPS Navigation) running with Wine

    Hi,

    just want to let you know that automapa runs fine with wine.
    (see http://www.automapa.pl/?PEI=13252&lng=EN for more information about the software)

    you can configure a keyboard shortcut for each action, so you can control it by sending keystrokes with xdotool
    Attached Files
    Last edited by BennY-; 01-16-2013, 11:53 AM.

  • #2
    I know Automapa that is a very good Gps software.
    Do you have a list of the short cut or key stroke please ?

    Comment


    • #3
      Originally posted by pierrotm777 View Post
      Do you have a list of the short cut or key stroke please ?
      search for the "keymappings.data" file in your automapa directory, thats my content:
      Code:
      _AppVersion=replace with content of your file
      _Version=replace with content of your file
      _PPCDevice=replace with content of your file
      MCount=121
      Mapping0=262223;HelpInstructions
      Mapping1=262222;HelpMenu
      Mapping2=262221;MiniTrafficGetAMTEventsWholeCountry
      Mapping3=262220;MapMoveScreenRight
      Mapping4=262219;MapMoveScreenLeft
      Mapping5=262218;MapMoveScreenDown
      Mapping6=262217;MapMoveScreenUp
      Mapping7=262212;MapCenter
      Mapping8=262211;MapZoomOut
      Mapping9=262210;MapZoomIn
      Mapping10=262209;BtnFSTapAndHold
      Mapping11=327760;SaveRouteAsTrack
      Mapping12=327761;TrailHistoryOnOff
      Mapping13=262227;HelpAboutMenu
      Mapping14=262226;AbroadInfo
      Mapping15=262224;MyPosition
      Mapping16=196687;RoadCalculate
      Mapping17=196686;StartAsGps
      Mapping18=196685;RoadTypeDlg
      Mapping19=196684;RoadModifyMenu
      Mapping20=196683;NPAsEnd
      Mapping21=196682;NPAsByArea
      Mapping22=196681;NPAsByPoint
      Mapping23=196680;NPAsByEx
      Mapping24=196679;NPAsBy
      Mapping25=196678;NPAsStart
      Mapping26=196677;MapSearchDlg
      Mapping27=196676;AddressBookDlg
      Mapping28=196675;ShowGpsPtDlg
      Mapping29=196674;GpsStatusExDlg
      Mapping30=196673;GpsOnOff
      Mapping31=262229;MapCursor
      Mapping32=262230;MapCursorTracking
      Mapping33=262228;Menu
      Mapping34=262231;GotoMenu
      Mapping35=262232;RoadMenu
      Mapping36=262233;GpsMenuEx
      Mapping37=262234;POIMenu
      Mapping38=37;MapMoveRight
      Mapping39=39;MapMoveLeft
      Mapping40=38;MapMoveDown
      Mapping41=40;MapMoveUp
      Mapping42=196698;RoadAlternative
      Mapping43=196697;RoadWalk
      Mapping44=196696;RoadCrossCountry
      Mapping45=196695;RoadSoft
      Mapping46=196694;RoadEasy
      Mapping47=196693;Road4x4
      Mapping48=196692;RoadShort
      Mapping49=196691;RoadOptimal
      Mapping50=196690;RoadQuick
      Mapping51=196689;RoadShow
      Mapping52=196688;RoadInfoDlg
      Mapping53=131137;UserMenu
      Mapping54=131138;UserMenuCopy
      Mapping55=65615;MuteOnOff
      Mapping56=65614;KeyboardSettingsDlg
      Mapping57=65613;RecentLocationsDlg
      Mapping58=65612;WorkLocation
      Mapping59=65611;HomeLocation
      Mapping60=65610;DelayedAddFavoriteOnTheRight
      Mapping61=65609;DelayedAddFavoriteOnTheLeft
      Mapping62=65608;DelayedAddFavoriteAtGpsPt
      Mapping63=65607;NPGpsToFavoritesBP
      Mapping64=65606;NPToFavorites
      Mapping65=65605;FavoritesDlg
      Mapping66=65604;BlockPOIWarning
      Mapping67=65603;BlockPOIDisplay
      Mapping68=65602;DelayedAddPOIOnTheRight
      Mapping69=65601;DelayedAddPOIOnTheLeft
      Mapping70=65626;BTNScale
      Mapping71=65625;BtnMode3D2D
      Mapping72=65622;MapRotateOnOff
      Mapping73=65624;Quit
      Mapping74=65621;RotateScreenRight
      Mapping75=65620;RotateScreenLeft
      Mapping76=65619;MapRotateRight
      Mapping77=65618;MapRotateLeft
      Mapping78=65617;VolumeDown
      Mapping79=65616;VolumeUp
      Mapping80=393295;RoadRemove
      Mapping81=393294;RoadDemo
      Mapping82=393293;RoadLoadPoints
      Mapping83=393292;RoadPointsRvrs
      Mapping84=393291;NextTurnSound
      Mapping85=393290;RoadAutoRecalculate
      Mapping86=393289;RoadDetourCancel
      Mapping87=393288;BlockSegmentAfterManeuver
      Mapping88=393287;RoadDetourMenu
      Mapping89=393286;ToggleNavigateToByOrEndRoadPoint
      Mapping90=393285;LastManeuver
      Mapping91=393284;FirstManeuver
      Mapping92=393283;PrevManeuver
      Mapping93=393282;NextManeuver
      Mapping94=393281;RoadOriginal
      Mapping95=393306;DelayedAddPOIAtGpsPt
      Mapping96=393305;NPGpsToPOIBP
      Mapping97=393304;NPToPoi
      Mapping98=393303;UserPoiManagerDlg
      Mapping99=393302;POIWarningDlg
      Mapping100=393301;PoiCategoriesDlg
      Mapping101=393300;PoiSearchDlg
      Mapping102=393299;RecentRoutes
      Mapping103=393298;RoadTrackOnOff
      Mapping104=393297;RoadSavePoints
      Mapping105=393296;RoadDeleteNextVia
      Mapping106=327745;TrackingMenu
      Mapping107=327746;SettingsMenu
      Mapping108=327747;OptionsMenu
      Mapping109=327748;NightModeOnOff
      Mapping110=327749;ToggleUseEasyCommands
      Mapping111=327750;PilotOnOff
      Mapping112=327751;ToggleMouseMapMoveZoom
      Mapping113=327752;OnBoardComputerOnOff
      Mapping114=327753;SaveTrack
      Mapping115=327754;SaveTrackWithoutDlg
      Mapping116=327755;GpsReplaySpeedInc
      Mapping117=327756;GpsReplaySpeedDec
      Mapping118=327757;ReplayTrack
      Mapping119=327758;ShowTrack
      Mapping120=327759;HideTrack

      Keycodes with description (i'm going to translate them later, but it's better then nothing for now )
      Code:
      Shift_L+u contextmenue of map
      Shift_L+w route to
      Shift_L+x menue route
      Shift_L+y menue gps
      Shift_L+z menue poi
      
      Shift_L+Ctrl_L+a menue: show position / navigation
      Shift_L+Ctrl_L+b menue: settings
      Shift_L+Ctrl_L+c menue: options
      Shift_L+Ctrl_L+d toggle nightmode on/off
      Shift_L+Ctrl_L+e toggle menue on/off
      Shift_L+Ctrl_L+f toggle pilot on/off
      Shift_L+Ctrl_L+g toggle automatic map movement/zoom
      Shift_L+Ctrl_L+h boardcomputer on/off
      Shift_L+Ctrl_L+i save tracks on/off
      Shift_L+Ctrl_L+j (OB) save tracks on/off
      Shift_L+Ctrl_L+k gps track speed up (i think this is for gps lag)
      Shift_L+Ctrl_L+l gps track slow down (i think this is for gps lag)
      Shift_L+Ctrl_L+m play/stop track playback
      Shift_L+Ctrl_L+n show track
      Shift_L+Ctrl_L+o hide track
      Shift_L+Ctrl_L+p save track
      Shift_L+Ctrl_L+q toggle track display while driving (on/off)
      
      Control_L+Alt_L+a gps on/off
      Control_L+Alt_L+b gps information
      Control_L+Alt_L+c route to gps location
      Control_L+Alt_L+d route to contact
      Control_L+Alt_L+e route to address
      Control_L+Alt_L+f set route start point
      Control_L+Alt_L+g set stop over point
      Control_L+Alt_L+h typ des über punktes wählen und setzen (?)
      Control_L+Alt_L+i über den punkt setzen (?)
      Control_L+Alt_L+j über die gegend setzen (?)
      Control_L+Alt_L+k set route end point
      Control_L+Alt_L+l menue: change route
      Control_L+Alt_L+m set route type
      Control_L+Alt_L+n (OB) alternative route (?)
      Control_L+Alt_L+p route information
      Control_L+Alt_L+q show complete route
      Control_L+Alt_L+r fast route
      Control_L+Alt_L+s optimal route
      Control_L+Alt_L+t short route
      Control_L+Alt_L+u off road route
      Control_L+Alt_L+v easy route
      Control_L+Alt_L+w route: low difficulty (?)
      Control_L+Alt_L+x route free air (?)
      Control_L+Alt_L+y route by feet
      Control_L+Alt_L+z alternative route
      Shift_L+Alt_L+a original route
      Shift_L+Alt_L+b next route action
      Shift_L+Alt_L+c last route action
      Shift_L+Alt_L+d first route action
      Shift_L+Alt_L+e last route action
      Shift_L+Alt_L+f route to: route end point/route poi (?)
      Shift_L+Alt_L+g menue: route redirection
      Shift_L+Alt_L+h block route after action
      Shift_L+Alt_L+i remove route redirection
      Shift_L+Alt_L+j auto correct route on/off
      Shift_L+Alt_L+k announce next action
      Shift_L+Alt_L+l routenpunkte umkehren (?)
      Shift_L+Alt_L+m load route
      Shift_L+Alt_L+n demo route
      Shift_L+Alt_L+o remove route
      Shift_L+Alt_L+p remove next route poi
      Shift_L+Alt_L+q save route
      Shift_L+Alt_L+r show route on/off
      Shift_L+Alt_L+s typical route
      Shift_L+Alt_L+t route to poi
      Shift_L+Alt_L+u show poi
      Shift_L+Alt_L+v poi warning
      Shift_L+Alt_L+w poi settings
      Shift_L+Alt_L+x add to poi
      Shift_L+Alt_L+y (ob) add to poi
      Shift_L+Alt_L+z add current gps location to poi
      Control_L+a add location left by current location to poi
      Control_L+b add location right by current location to poi
      Control_L+c show/hide poi's
      Control_L+d toggle poi warnings
      Control_L+e route to favorite
      Control_L+r rotate map left
      Control_L+s rotate map right
      Control_L+t rotate screen left
      Control_L+u rotate screen right
      Control_L+v automatic map rotation on/off
      Control_L+z maßstab innerorrts/außerorts/ansicht
      Shift_L+a fullscreen on/off
      
      Shift_L+i move mapview down (full screen height)
      Shift_L+j move mapview up (full screen height)
      Shift_L+k move mapview right (full screen height)
      Shift_L+l move mapview left (full screen height)
      Shift_L+m download traffic data (whole country)
      Shift_L+n accident menue
      Shift_L+o tips for driver
      Shift_L+p where am i?
      Shift_L+r informations over country
      Shift_L+s menue: help
      
      
      
      Control_L+y 2D/3D/3DR
      Control_L+x close automapa
      Shift_L+b zoom in +
      Shift_L+c zoom out -
      Shift_L+d center map 
      Down 	mapview down
      Up 		mapview up
      Right 	mapview right
      Left	mapview left
      Control_L+K route home
      Control_L+l route work
      Control_L+m route history
      Control_L+o sounds/annoucents on/off
      Control_L+p volume up
      Control_L+q volume down
      Shift_L+v contextmenue map
      Shift_L+t menue

      my script for sending keystrokes
      Code:
      #!/bin/sh
      export DISPLAY=:0.0
      
      NAME="tpcAm.exe"
      
      #activate window
      xdotool search --name "$NAME" windowactivate
      #wmctrl -R "$NAME" 
      
      xdotool $1
      
      if test "$1" = "key Tab Return"
      then
      	#move window on top
      	wmctrl -R "$NAME"
      	#move mousecursor over automapa window (location might be another then on my system)
      	xte "mousemove 768 1"
      	#make a mouseclick on automapa
      	xdotool search --name "$NAME" click 1
      fi;
      the focus part "key Tab Return" is needed if some other window takes focus, because automapa don't get the keystrokes when another window is actice. I think this is because of wine don't gives the OS keystrokes to the "emulated" programs (which is good for security reasons).


      and those are the keys i actually handle in my control gui
      Code:
      if(strcmp(w->label(), (char *) "2D/3D") == 0)			gps_navigation_sendkey((char *) "Control_L+y");
      else if(strcmp(w->label(), (char *) "zoom in") == 0)	gps_navigation_sendkey((char *) "Shift_L+b");
      else if(strcmp(w->label(), (char *) "zoom out") == 0)	gps_navigation_sendkey((char *) "Shift_L+c");
      else if(strcmp(w->label(), (char *) "center") == 0)		gps_navigation_sendkey((char *) "Shift_L+d");
      else if(strcmp(w->label(), (char *) "day/night") == 0)	gps_navigation_sendkey((char *) "Shift_L+Control_L+d");
      else if(strcmp(w->label(), (char *) "boardcomputer") == 0)	gps_navigation_sendkey((char *) "Shift_L+Control_L+h");
      else if(strcmp(w->label(), (char *) "back") == 0)	gps_navigation_sendkey((char *) "Tab Return");
      else if(strcmp(w->label(), (char *) "enter") == 0)	gps_navigation_sendkey((char *) "Return");
      else if(strcmp(w->label(), (char *) "<") == 0)	gps_navigation_sendkey((char *) "Left");
      else if(strcmp(w->label(), (char *) ">") == 0)	gps_navigation_sendkey((char *) "Right");
      else if(strcmp(w->label(), (char *) "/\\") == 0)	gps_navigation_sendkey((char *) "Up");
      else if(strcmp(w->label(), (char *) "\\/") == 0)	gps_navigation_sendkey((char *) "Down");
      else if(strcmp(w->label(), (char *) "main menue") == 0)	gps_navigation_sendkey((char *) "Shift_L+t");
      else if(strcmp(w->label(), (char *) "map menue") == 0)	gps_navigation_sendkey((char *) "Shift_L+v");
      else if(strcmp(w->label(), (char *) "route home") == 0)	gps_navigation_sendkey((char *) "Control_L+k");
      else if(strcmp(w->label(), (char *) "route work") == 0)	gps_navigation_sendkey((char *) "Control_L+l");
      else if(strcmp(w->label(), (char *) "route history") == 0)	gps_navigation_sendkey((char *) "Control_L+m");
      else if(strcmp(w->label(), (char *) "mute") == 0)	gps_navigation_sendkey((char *) "Control_L+o");
      else if(strcmp(w->label(), (char *) "vol +") == 0)	gps_navigation_sendkey((char *) "Control_L+p");
      else if(strcmp(w->label(), (char *) "vol -") == 0)	gps_navigation_sendkey((char *) "Control_L+q");
      else if(strcmp(w->label(), (char *) "display") == 0)	gps_navigation_sendkey((char *) "Shift_L+a");
      sorry for the code, but havn't much time for that part at the moment
      Last edited by BennY-; 01-16-2013, 11:47 AM.

      Comment


      • #4
        Cool job , i try these sendkey as soon as possible !

        Comment


        • #5
          I have downloaded the Demo version and i don't found the keymappings.data file !
          I have tried too modified the key into the software but that don't create a new keymappings.data file !

          Comment


          • #6
            Originally posted by pierrotm777 View Post
            I have downloaded the Demo version and i don't found the keymappings.data file !
            I have tried too modified the key into the software but that don't create a new keymappings.data file !
            have you searched recursive? it's in one of the subfolders (Profiles/profilename/Data Files) (bold text is variable afaik)

            edit: i have translated some of the shortcut keys in the list above, as i don't know all functions some might be not really exact
            Last edited by BennY-; 01-16-2013, 11:48 AM.

            Comment


            • #7
              Ok,
              I have found the file into the directory:
              .\Profiles\osobowy\Data Files

              Comment


              • #8
                wine is working fine with automapa?

                Comment

                Working...
                X