You can test for the existence of a MoveCopy setting using SysInfo(). This code will check for a MoveCopy setting named "Test":
I'm not sure what you mean by "PQ Import Profiles" - do you mean Load profiles, GetMail profiles, or Geocaching.com Access>Download PQ profiles? Assuming you mean Geocaching.com Access, this code will check for a saved PQ Download setting named "Test":
Note that in both cases we are checking for settings with that name, it does not necessarily mean that these are the settings you think they are (i.e. another user could have saved different settings with the name that you are looking for).
You can use MacroSet to do this.
See the help file under the "Name" parameter:
To avoid confusion or overwriting your friends saved settings, I'd suggest naming your saved settings something that is likely to be unique - e.g.: "MyMacro_PQSettings", where "MyMacro" is the name of your macro. Image may be NSFW.
Clik here to view.
GSK |
$Settings = SysInfo("S_MoveCopy") IF At("Test",$Settings)=0 MSGOK Msg="The setting 'Test' does NOT exist" ELSE MSGOK Msg="The setting 'Test' does exist" ENDIF |
I'm not sure what you mean by "PQ Import Profiles" - do you mean Load profiles, GetMail profiles, or Geocaching.com Access>Download PQ profiles? Assuming you mean Geocaching.com Access, this code will check for a saved PQ Download setting named "Test":
GSK |
$Settings = SysInfo("S_PQLoad") IF At("Test",$Settings)=0 MSGOK Msg="The setting 'Test' does NOT exist" ELSE MSGOK Msg="The setting 'Test' does exist" ENDIF |
Note that in both cases we are checking for settings with that name, it does not necessarily mean that these are the settings you think they are (i.e. another user could have saved different settings with the name that you are looking for).
QUOTE |
...what would be the best technique to create an PQ import profile of Move/Copy profile on the fly in a macro? |
You can use MacroSet to do this.
See the help file under the "Name" parameter:
QUOTE |
However, there may be times you do actually want to update or add a particular setting name to the relevant drop down box in the GSAK GUI (for a complete example, see this link). In this case add this parameter with the required name, but be aware if this setting does exist on the target computer it will be completely overridden without warning. |
To avoid confusion or overwriting your friends saved settings, I'd suggest naming your saved settings something that is likely to be unique - e.g.: "MyMacro_PQSettings", where "MyMacro" is the name of your macro. Image may be NSFW.
Clik here to view.
