HomeMicrosoft Streets and TripsFree add-ons for Microsoft Streets and Trips › A new hotkey to place a pushpin on the map

A new hotkey to place a pushpin on the map

Reply to Thread
Page 3 of 4
toyfountain
Senior Member
Avez-vous essayez les paramètres d'affichage de défaut de Win XP? Je remarque que celui des photos semble différent. La boite de message est verte, il y a un icône pour l'imprimante, le texte est italique. Keys utilise la police sélectionnée pour Windows. Si le paramètre par défaut règle le problème, je verrai si je peut ajouter des paramètres dans Keys. C'est ce que j'utilise avec une résolution de 1280X800 sur un Dell Inspiron 1300.

cordialement
toyfountain
nialag
Member
Allo,

Oui, j'ai rétabi l'affichage original, mais ça ne change rien, toujours le même problème...

Je n'utilise pas les paramètres standarts (couleurs)de Windows, et les caractères que j'utilise dans les barres de titres sont un peu plus gros, mais ça n'affecte pas les caractères à l'intérieur des fenêtres.

Je n'ai pas ce problème avec les fenêtres originales de S&T et avec aucun autre programme.

L'icône d'imprimante est un petit programme "Hardcopy" qui me permet de sauvegarder mes images écran en fichier *.jpg ou autres fichiers d'image.

Merci

Alain
toyfountain
Senior Member
J'ai fait une nouvelle version qui spécifie la police Trebuchet MS Bold. Il est sur mon Dell avec Win XP et c'est celui que Keys utilise sur mon ordinateur. J'imagine que cette police doit être sur le votre aussi. SVP essayez-le en espérant que cela est la solution pour votre système.
Attached Files
File Type: zip toyfountain_Keys_2_53_3_beta_added_hotkeys_english.zip (528.1 KB, 138 views)
nialag
Member
Pas de changement, toujours les mêmes fenêtres avec les mêmes caractères... J'ai changé la résolution de l'écran à 1280X768 p. les caratères sont plus gros dans les fenêtres Windows, mais dans les fenêtres S&T et Keys il n'y a pas de changement...

???

J'ai également un vieux portable Fujitsu que je n'utilise plus avec S&T 2008 car il est trop lent... Je vais faire des test avec ce dernier... J'ai utilisé S&T 2007 sur ce dernier, mais pas les Keys car ça faisait geler le tout...


Merci pour les essayes.

Alain
nialag
Member
Bonjour,

Je n'ai pas de problème d'affichage avec mon vieux Fujitsu Pentium III 500 Mhz E series Lifebook Écran VGA 1024X768 ppp. La configuration de l'affichage (couleur et format des caractères) est la même sur tous mes ordis.

Avec les 2 Dell avec écran très haute définition les caractères dépassent les fenêtres... !!!

Merci pour les informations

Alain
toyfountain
Senior Member
Quote:
Originally Posted by Driven1
I tossed another feature need at him and he bounced me over to you 'cause you're already working on it.

Pushpin Hot Keys. Here's an excerpt of what I wrote to Marv...

The ability to create a Pushpin from a hotkey that marks the spot that you're at while using GPS Tracking. I'd like to take it just a bit further than Neludok though and suggest Custom Pushpins with different symbols associated to different hotkeys. I'd like to also associate some sort of sound cue to each type that will sound when tracking comes near a previously created pushpin. .......


.......As Bugs Bunny once said, "Ain't I a Stinker!"

I know this one's a toughie. If it can't be done, just say so and I'll leave ya alone.

Happy Holidays!

So Toyfountain, whatcha think? Can it be done?



Thanks!
Driven1

Winter is almost over. I don't know if you still need this.

I think the new POI Scanner v1.6 will fullfil the hope of having a sound cue and more. It can read up to four different mp3 files associated with four different special pushpins. It will tell you the kind of hazard that was set up and at which distance it was set.

It took three months to develop, but I think it's now done successfully.
crazyst
Member
I'm doing something slightly different but easier and I'm hoping for some help.

I put in all my pushpins manually so what I'm looking for is a hotkey sequence that places a pushpin where my cursor currently is without having to mouse over to the "create pushpin" button (Button78).

So the cursor will always be in the Map Control window when I press the sequence (I hope). I'll worry about error handling later.

It looks like all I need is ControlFocus and ControlClick plus the coordinates of the mouse (maybe).

However I can't seem to get the ControlFocus and ControlClick to work. Nothing happens when I run the script. It's a stupid newbie question but maybe someone will have pity on me and enlighten me on how to get it working. Here's what I have to try and get the focus and the click:

ControlFocus, Button78, "Create Pushpin", "AfxWnd702"
Sleep 100
ControlClick, Button78, "Create Pushpin", "AfxWnd702"

******************
This will do what I want it to do but I would prefer it not be dependent on the coordinates and not move the mouse if possible (I'm using 1024x768 with S&T maximized and a taskbar that is double the normal height) (62, 695 is the X,Y of the create pushpin button).

^LButton::
BlockInput, SendAndMouse
SetTitleMatchMode, 2
SetTitleMatchMode, Slow
WinWait, Microsoft Streets & Trips,
IfWinNotActive, Microsoft Streets & Trips, , WinActivate, Microsoft Streets & Trips,
WinWaitActive, Microsoft Streets & Trips,
Sleep, 5
MouseGetPos, origx, origy
MouseClick, left, 62, 695
MouseMove, origx, origy
MouseClick, left, origx, origy


Thanks,
Curt
Marvin Hlavac
Laptop GPS World
www.laptopgpsworld.com
Hi Curt,

Welcome to Laptop GPS World. :welcome:

I've played with this feature long ago - I never succeeded (but toyfountain did, so he may be able to help.). If my memory serves me well, I recall also having difficulty controllong the "Create Pushpin" button on the Drawing tool bar. But it was long ago, and I may be wrong now. In any case, abandon AutoHotkey application, and switch to AutoIt. It gives you more options. Then use the included "AutoIt Window Info" application to read ControlIDs of the buttons you need to access.
crazyst
Member
Ok thanks. I'll give that a try.

Curt
toyfountain
Senior Member
Maybe looking at the section of code for the push_pin function might help you. You'll just need to substitute the code that determined the location of the GPS dark burgundy pixel with the code needed to locate the mouse location.

Func push_pin()
reset_hotkeys()
Sleep(250)
ControlClick($productname, "", $panbutton)
ControlClick($productname, "", $panbutton)
Sleep(250)
MouseMove(600, 400, 0 )
ControlClick($productname, "", $createpushpin)
Sleep(250)
$pos_AfxWnd702 = ControlGetPos($productname, "", "AfxWnd702")
$left_GPSsearch = $pos_AfxWnd702[0]
$top_GPSsearch = $pos_AfxWnd702[1]
$right_GPSsearch = $pos_AfxWnd702[0] + $pos_AfxWnd702[2]
$bottom_GPSsearch = $pos_AfxWnd702[1] + $pos_AfxWnd702[3] + $titlebarhight
$coord_GPS = PixelSearch($left_GPSsearch, $top_GPSsearch, $right_GPSsearch, $bottom_GPSsearch, 0x800000, 0, 1 )
If Not @error Then
$coord_xGPS = $coord_GPS[0] - $left_GPSsearch - 8
$coord_yGPS = $coord_GPS[1] - $top_GPSsearch - $titlebarhight + 12
ControlFocus($productname, "", "AfxWnd702")
Sleep(250)
ControlClick($productname, "", "AfxWnd702", "left", 1, $coord_xGPS, $coord_yGPS )
EndIf
ControlClick($productname, "", $selectbutton)
EndFunc

Once you modify the code of one of the modified Keys versions with the AutoIt editor, just compile it to a .exe file to run it.
crazyst
Member
Thanks. I'll take a look at it. I need to port my AutoHotKey code to AutoIt and then I'll give it a go.

Thanks again for posting the portion I'm looking at.

Curt
mobile1@dooleyfam
Member
Hey guys,
I drive 18 wheeler in the US and use both of your programs and I must say they are awesome. But, this program would be invaluable to me and was wondering if you needed a beta tester? If not do you have any clue when this may be released?

Marc
Marvin Hlavac
Laptop GPS World
www.laptopgpsworld.com
Hi Marc,

Welcome to Laptop GPS World. :welcome:

toyfountain would be able to answer you better, but he hasn't posted for a while. I think this application is a part of his modified S&T Keys. There is a download link on the previous page (click), and I'm not sure if there have been any subsequent improvements.

Try that version, and let us know how you like it.
toyfountain
Senior Member
Quote:
Originally Posted by mobile1@dooleyfam
Hey guys,
I drive 18 wheeler in the US and use both of your programs and I must say they are awesome. But, this program would be invaluable to me and was wondering if you needed a beta tester? If not do you have any clue when this may be released?

Marc
Welcome Marc

Which function of the program do you mean? To be able to insert push pins without having to re-click on the push pin button?

It's true, I haven't posted much lately, but I try ans read the posts here every few days. I've been very busy with another project. Since gas went up so much I kinda of revolted against the refineries and decided to begin e-biking to work. It's a 30 km commute for me. I bought a new e-bike at Canadian Tire, researched about e-biking, modded it to my liking and repaired it some. It's been an adventure so far, but things are slowly getting back to normal. There are benefits too. We use the car less and I feel better.

I've also been planning a major trip for the family this year. After years of consideration, we have decided to take the kids to DisneyWorld. A 2400 km trip is ahead of us. S&T will really be useful on the trip.
mobile1@dooleyfam
Member
Hey again,
Ya I was thinking the One Key Pushpin program. I understand there isn't much to bata testing this type of program but the more people looking at it the better.
Marvin, thanks for pointing me at that link I must have skipped right over it.
I'm also sorry for not getting back a bit sooner. Between driving 3400 miles a week and fighting with a couple software projects of my own I have fallen behind also.
thx Marc
© Laptop GPS WorldContact Resources Site Map