{"id":5201,"date":"2013-12-14T17:00:15","date_gmt":"2013-12-14T16:00:15","guid":{"rendered":"http:\/\/blogs.wittwer.fr\/whiler\/?p=5201"},"modified":"2023-03-12T14:48:25","modified_gmt":"2023-03-12T13:48:25","slug":"wets2g19display","status":"publish","type":"post","link":"https:\/\/blogs.wittwer.fr\/whiler\/2013\/12\/14\/wets2g19display\/","title":{"rendered":"wETS2G19Display"},"content":{"rendered":"<p>Il y a un peu moins d&rsquo;un an, j&rsquo;\u00e9crivais un article qui parlait d&rsquo;un jeu, <a href=\"\/whiler\/2013\/01\/08\/ets2\/\" title=\"Article sur Euro Truck Simulator 2\">ETS2<\/a>.<\/p>\n<p>R\u00e9cemment, je suis retourn\u00e9 voir les nouvelles mises \u00e0 jour qui \u00e9taient sorties depuis et en fouillant leur site, j&rsquo;ai d\u00e9couvert qu&rsquo;il existait un <a href=\"http:\/\/fr.wikipedia.org\/wiki\/SDK\" rel=\"glossary\" target=\"_blank\" title=\"Wikipedia, D&eacute;finition de&nbsp;: SDK\" style=\"\" >SDK<\/a><sup style=\"font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA\" ><em>W<\/em><\/sup> permettant de collecter des informations en direct du jeu.<\/p>\n<p>Comme j&rsquo;avais d\u00e9j\u00e0 \u00e9galement jou\u00e9 avec l'<a href=\"http:\/\/fr.wikipedia.org\/wiki\/Interface_de_programmation\" rel=\"glossary\" target=\"_blank\" title=\"Wikipedia, D&eacute;finition de&nbsp;: API\" style=\"\" >API<\/a><sup style=\"font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA\" ><em>W<\/em><\/sup> de mon <a href=\"\/whiler\/2011\/12\/11\/lcdwclock\/\" title=\"Article sur LCDwClock\">clavier Logitech G19<\/a> afin d&rsquo;afficher des donn\u00e9es sur son \u00e9cran LCD, j&rsquo;ai eu envie de jouer \u00e0 afficher des donn\u00e9es du jeu sur cet \u00e9cran.<\/p>\n<p>C&rsquo;est ainsi qu&rsquo;est n\u00e9 <a href=\"https:\/\/www.whiler.com\/freewares\/download?wETS2G19Display.dll\" title=\"T\u00e9l\u00e9charger wETS2G19Display.dll\">wETS2G19Display<\/a>&nbsp;!  <img src=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-includes\/images\/smilies\/skype\/\/wink.gif\" alt=\";)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/> <\/p>\n<div id=\"attachment_5202\" style=\"width: 330px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5202\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/splash.png\" alt=\"wETS2G19Display\" width=\"320\" height=\"240\" class=\"size-full wp-image-5202\" srcset=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/uploads\/2013\/12\/splash.png 320w, https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/uploads\/2013\/12\/splash-300x225.png 300w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><p id=\"caption-attachment-5202\" class=\"wp-caption-text\">wETS2G19Display<\/p><\/div>\n<p><!--more-->C&rsquo;est une <a href=\"http:\/\/fr.wikipedia.org\/wiki\/Dynamic_Link_Library\" rel=\"glossary\" target=\"_blank\" title=\"Wikipedia, D&eacute;finition de&nbsp;: DLL\" style=\"\" >DLL<\/a><sup style=\"font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA\" ><em>W<\/em><\/sup> \u00e9crite en <a href=\"https:\/\/www.embarcadero.com\/fr\/products\/delphi\" title=\"Page officielle de Delphi\" target=\"_blank\" rel=\"noopener\">Delphi<\/a>, gr\u00e2ce \u00e0 la <a href=\"https:\/\/forum.scssoft.com\/viewtopic.php?f=41&#038;t=103732&#038;hilit=delphi\" title=\"Telemetry Library\" target=\"_blank\" rel=\"noopener\">biblioth\u00e8que de t\u00e9l\u00e9m\u00e9trie port\u00e9e par Sniper<\/a>. <\/p>\n<p>En sp\u00e9cifiant au jeu que l&rsquo;on souhaite l&rsquo;utiliser (ajout d&rsquo;une cl\u00e9 de registre pour sp\u00e9cifier l&#8217;emplacement de la DLL), on peut alors visualiser pendant que l&rsquo;on joue des informations concernant son camion en temps r\u00e9el.<\/p>\n<p>Voici quelques captures r\u00e9alis\u00e9es pendant que j&rsquo;\u00e9tais au volant&nbsp;:  <img src=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-includes\/images\/smilies\/skype\/\/laugh.gif\" alt=\":D\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><br \/>\n<center><\/p>\n<table>\n<tr>\n<td><div id=\"attachment_5203\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a title=\"R\u00e9gulateur\" href=\"\/whiler\/wp-content\/uploads\/2013\/12\/cruise_control_rain.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5203\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/cruise_control_rain-150x150.png\" alt=\"R\u00e9gulateur\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-5203\" \/><\/a><p id=\"caption-attachment-5203\" class=\"wp-caption-text\">R\u00e9gulateur<\/p><\/div><\/td>\n<td><div id=\"attachment_5204\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a title=\"Miles par heure\" href=\"\/whiler\/wp-content\/uploads\/2013\/12\/beacon_mph.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5204\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/beacon_mph-150x150.png\" alt=\"Miles par heure\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-5204\" \/><\/a><p id=\"caption-attachment-5204\" class=\"wp-caption-text\">Miles par heure<\/p><\/div><\/td>\n<\/tr>\n<tr>\n<td><div id=\"attachment_5207\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a title=\"Marche arri\u00e8re\" href=\"\/whiler\/wp-content\/uploads\/2013\/12\/reverse.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5207\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/reverse-150x150.png\" alt=\"Marche arri\u00e8re\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-5207\" \/><\/a><p id=\"caption-attachment-5207\" class=\"wp-caption-text\">Marche arri\u00e8re<\/p><\/div><\/td>\n<td><div id=\"attachment_5208\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a title=\"Phares allum\u00e9s\" href=\"\/whiler\/wp-content\/uploads\/2013\/12\/lights.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5208\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/lights-150x150.png\" alt=\"Phares allum\u00e9s\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-5208\" \/><\/a><p id=\"caption-attachment-5208\" class=\"wp-caption-text\">Phares allum\u00e9s<\/p><\/div><\/td>\n<\/tr>\n<tr>\n<td><div id=\"attachment_5209\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a title=\"\u00c0 sec !\" href=\"\/whiler\/wp-content\/uploads\/2013\/12\/warning_fuel.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5209\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/warning_fuel-150x150.png\" alt=\"\u00c0 sec !\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-5209\" \/><\/a><p id=\"caption-attachment-5209\" class=\"wp-caption-text\">\u00c0 sec !<\/p><\/div><\/td>\n<td><div id=\"attachment_5210\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a title=\"Copie de l'\u00e9cran LCD dans le presse-papier\" href=\"\/whiler\/wp-content\/uploads\/2013\/12\/clipboard.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5210\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/clipboard-150x150.png\" alt=\"Copie de l&#039;\u00e9cran LCD dans le presse-papier\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-5210\" \/><\/a><p id=\"caption-attachment-5210\" class=\"wp-caption-text\">Copie de l&rsquo;\u00e9cran LCD dans le presse-papier<\/p><\/div><\/td>\n<\/tr>\n<tr>\n<td><div id=\"attachment_5211\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a title=\"Affichage simplifi\u00e9\" href=\"\/whiler\/wp-content\/uploads\/2013\/12\/speed_only.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5211\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/speed_only-150x150.png\" alt=\"Affichage simplifi\u00e9\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-5211\" \/><\/a><p id=\"caption-attachment-5211\" class=\"wp-caption-text\">Affichage simplifi\u00e9<\/p><\/div><\/td>\n<td><div id=\"attachment_5212\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a title=\"R\u00e9gulateur &amp; mph\" href=\"\/whiler\/wp-content\/uploads\/2013\/12\/speed_miles_cruise_control.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5212\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/speed_miles_cruise_control-150x150.png\" alt=\"R\u00e9gulateur &amp; mph\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-5212\" \/><\/a><p id=\"caption-attachment-5212\" class=\"wp-caption-text\">R\u00e9gulateur &#038; mph<\/p><\/div><\/td>\n<\/tr>\n<tr>\n<td><div id=\"attachment_5213\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a title=\"Direction &#038; jauges\" href=\"\/whiler\/wp-content\/uploads\/2013\/12\/orientation_flat.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5213\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/orientation_flat-150x150.png\" alt=\"Direction &amp; jauges\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-5213\" \/><\/a><p id=\"caption-attachment-5213\" class=\"wp-caption-text\">Direction &#038; jauges<\/p><\/div><\/td>\n<td><div id=\"attachment_5214\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a title=\"\u00c7a penche !\" href=\"\/whiler\/wp-content\/uploads\/2013\/12\/orientation_up.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5214\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/orientation_up-150x150.png\" alt=\"\u00c7a penche !\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-5214\" \/><\/a><p id=\"caption-attachment-5214\" class=\"wp-caption-text\">\u00c7a penche !<\/p><\/div><\/td>\n<\/tr>\n<tr>\n<td><div id=\"attachment_5215\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a title=\"Probl\u00e8mes de pression\" href=\"\/whiler\/wp-content\/uploads\/2013\/12\/orientation_down.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5215\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/orientation_down-150x150.png\" alt=\"Probl\u00e8mes de pression\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-5215\" \/><\/a><p id=\"caption-attachment-5215\" class=\"wp-caption-text\">Probl\u00e8mes de pression<\/p><\/div><\/td>\n<td>&nbsp;<\/td>\n<\/tr>\n<\/table>\n<p><\/center><\/p>\n<p>Pour l&rsquo;utiliser, il faut cr\u00e9er une nouvelle cl\u00e9 de registre. D&rsquo;apr\u00e8s la documentation,  <code class=\"codecolorer dos dawn\"><span class=\"dos\">HKEY_LOCAL_MACHINE\\SOFTWARE\\SCS Software\\Euro Truck Simulator 2\\Plugins<\/span><\/code>, sur ma machine&nbsp;:<code class=\"codecolorer dos dawn\"><span class=\"dos\">HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\SCS Software\\Euro Truck Simulator 2\\Plugins<\/span><\/code><br \/>\nCette cl\u00e9 doit contenir une valeur cha\u00eene avec le nom de votre choix et la valeur pointant avec un chemin absolu vers la DLL de wETS2G19Display.<br \/>\n<div id=\"attachment_5223\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"\/whiler\/wp-content\/uploads\/2013\/12\/registry.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5223\" src=\"\/whiler\/wp-content\/uploads\/2013\/12\/registry-300x68.png\" alt=\"Ajout de l&#039;extension dans la base de registre\" width=\"300\" height=\"68\" class=\"size-medium wp-image-5223\" srcset=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/uploads\/2013\/12\/registry-300x68.png 300w, https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/uploads\/2013\/12\/registry.png 657w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-5223\" class=\"wp-caption-text\">Ajout de l&rsquo;extension dans la base de registre<\/p><\/div><\/p>\n<p>Vous pouvez t\u00e9l\u00e9charger wETS2G19Display depuis <a href=\"https:\/\/www.whiler.com\/freewares\/download?wETS2G19Display.dll\" title=\"T\u00e9l\u00e9charger wETS2G19Display.dll\">ce lien<\/a>.<\/p>\n<p>Attention, comme le pr\u00e9cise le jeu, et malgr\u00e9 les tests que j&rsquo;ai pu effectuer, son utilisation pourrait g\u00e9n\u00e9rer des plantages du jeu. Merci de ne pas me tenir responsable en cas de probl\u00e8me et effectuez des sauvegardes r\u00e9guli\u00e8res, au cas o\u00f9&#8230;<br \/>\nSi vous n&rsquo;avez pas de clavier Logitech G19 avec un affichage LCD, cette extension ne vous sert \u00e0 rien. Vous pouvez essayer avec d&rsquo;autres mod\u00e8les Logitech ayant un LCD, mais je ne les ai pas test\u00e9s.<\/p>\n<p>L&rsquo;utilisation des boutons permettant de manipuler l&rsquo;extension est assez simple et d\u00e9crite sur la <a href=\"\/whiler\/2013\/12\/14\/wets2g19display\/2\/\" title=\"Aller sur la seconde page\">page suivante<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p><a href=\"https:\/\/www.whiler.com\/freewares\/download?wETS2G19Display.dll\" title=\"T\u00e9l\u00e9charger wETS2G19Display.dll\">wETS2G19Display<\/a> est d\u00e9velopp\u00e9 avec <a target=\"_blank\" href=\"https:\/\/www.embarcadero.com\/fr\/products\/delphi\" rel=\"noopener\">Embarcadero Delphi XE2<\/a>.<\/p><\/blockquote>\n<p><center><a href=\"\/whiler\/category\/computer\/delphi\/\" title=\"Articles concernant Delphi\"><img loading=\"lazy\" decoding=\"async\" src=\"\/whiler\/wp-content\/uploads\/2009\/10\/built_with_delphi.png\" alt=\"D\u00e9velopp\u00e9 en Delphi\" title=\"D\u00e9velopp\u00e9 en Delphi\" width=\"125\" height=\"51\" class=\"size-full wp-image-2721\" \/><\/a><\/center><\/p>\n<p><!--nextpage--><br \/>\nLes fl\u00e8ches <em>Haut<\/em> &#038; <em>Bas<\/em> permettent de passer des km\/h au mph et vice versa. Cela s&rsquo;av\u00e8re pratique lorsque vous roulez par exemple en Angleterre avec un camion ayant un volant \u00e0 gauche.<br \/>\nLes fl\u00e8ches <em>Gauche<\/em> et <em>Droite<\/em> permettent de changer l&rsquo;\u00e9cran affich\u00e9. Avec la version 1.0, il existe 4 affichages distincts&nbsp;:<\/p>\n<ul>\n<li>Vitesse uniquement<\/li>\n<li><strong>Vitesse, tours par minute, essuie-glace, phares, &#8230;<\/strong><\/li>\n<li>Boussole, jauges, pente, &#8230;<\/li>\n<li>Votre bureau Windows (qui est masqu\u00e9 par le jeu)<\/li>\n<\/ul>\n<p>Le bouton <em>OK<\/em> permet d&rsquo;effectuer une capture de l&rsquo;\u00e9cran LCD qui est plac\u00e9e dans le presse-papier. Vous pourrez ensuite la coller o\u00f9 vous le souhaitez (\u00e9diteur d&rsquo;images, skype, &#8230;)<\/p>\n<p>Si vous avez des questions, n&rsquo;h\u00e9sitez pas \u00e0 les poser en commentaire&#8230;  <img src=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-includes\/images\/smilies\/skype\/\/wink.gif\" alt=\";)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Il y a un peu moins d\u2019un an, j\u2019\u00e9crivais un article qui parlait d\u2019un jeu, ETS2.<\/p>\n<p>R\u00e9cemment, je suis retourn\u00e9 voir les nouvelles mises \u00e0 jour qui \u00e9taient sorties depuis et en fouillant leur site, j\u2019ai d\u00e9couvert qu\u2019il existait un SDK permettant de collecter des informations en direct du jeu.<\/p>\n<p>Comme j\u2019avais d\u00e9j\u00e0 \u00e9galement jou\u00e9 avec l\u2019API de mon clavier Logitech G19 afin d\u2019afficher des donn\u00e9es sur son \u00e9cran LCD, j\u2019ai eu envie de jouer \u00e0 afficher des donn\u00e9es du jeu sur cet \u00e9cran.<\/p>\n<p>C\u2019est ainsi qu\u2019est n\u00e9 wETS2G19Display !<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[7,5],"tags":[99,15,154,129],"class_list":["post-5201","post","type-post","status-publish","format-standard","hentry","category-delphi","category-computer","tag-addons","tag-api","tag-delphi","tag-jeu"],"_links":{"self":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts\/5201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/comments?post=5201"}],"version-history":[{"count":1,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts\/5201\/revisions"}],"predecessor-version":[{"id":6331,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts\/5201\/revisions\/6331"}],"wp:attachment":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/media?parent=5201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/categories?post=5201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/tags?post=5201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}