Minor UVKSR thing - Sticky Notes

You need help to start using UVK? You have a doubt on a UVK feature? Post here!
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
Post Reply
Xander
Posts: 438
Joined: Sun May 24, 2015 11:55 pm
Contact:

Minor UVKSR thing - Sticky Notes

Post by Xander »

I've gotten in the habit of using Sticky Notes for things that I want to remember to tell the client ("run the printer-install shortcut when you get home", HD has 5700hrs of use on it, etc.) As sort of mini-report.

Since most PCs I'm seeing are Win10, I have Command 1 as explorer.exe shell:appsFolder\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe!App and have it set as [x] Run only if commands 2,3 don't exist and the radio button as (x) Run always.

Command 2 is just stikynot.exe for the odd Win7 system and (x) Run always
https://i.gyazo.com/b50548e01a30f7d64ca ... f3d94f.png (img tag isn't working)

But, when run on a Win10 PC, I get the 'file not found' on Command 2. What am I missing here?
Fred
Site Admin
Posts: 2357
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: Minor UVKSR thing - Sticky Notes

Post by Fred »

Hi Xander.

I understand what your issue is, but the application is behaving as expected. Command 1 runs only if stickynot.exe does not exist, which will work fine on Windows 7, but Command 2 is always executed, which gives the 'file not found' error on Windows 10.

I suggest you create a separate app for each command, and run the good one for each windows version. Or you can make your app run a UVK script that will check for tha current Windows version and run the correct command automatically. Let me know if you need help with that.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Xander
Posts: 438
Joined: Sun May 24, 2015 11:55 pm
Contact:

Re: Minor UVKSR thing - Sticky Notes

Post by Xander »

Think I figured it out. Just swap the two commands -- run StikyNot but only if the StickyNote App is not available.
Post Reply