Refresh Button
 
Notifications
Clear all

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

Refresh Button

7 Posts
2 Users
1 Reactions
101 Views
(@kpirvin)
Active Member Registered
Joined: 3 weeks ago
Posts: 4
Topic starter  

Hey Glenn, is there an option that refreshes/reloads Desktop Info so all the scripts rerun again at the click of a button.

For auditing and the need for current data at a particular timestamp for evidence, I'd like to be able to just click a button and have Desktop Info re-initialize or refresh all the data displayed in the Window.


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1849
 

the right click context menu has a Reload option


   
ReplyQuote
(@kpirvin)
Active Member Registered
Joined: 3 weeks ago
Posts: 4
Topic starter  

Is there a way to make that action a button. My DesktopInfo is not using the window version DesktopInfoW.exe


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1849
 

@kpirvin not currently, I'll add that to the list. you can right click on any visible pixel. a bar chart. image or navigation button make a good target.


   
ReplyQuote
(@kpirvin)
Active Member Registered
Joined: 3 weeks ago
Posts: 4
Topic starter  

I just get the context menu like if I was right clicking on the desktop.

I'm guessing I have something disable or not enabled to allow right click for the DPI window


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1849
 

@kpirvin Check you have the [text] section in your configuration. the entries starting with "menu-" and "nav-" enables the context menu and navigation options.

[text]
noresults=<n/a>
error=[error]
null-result=<null>
unknown=Unknown
executing=<executing>
true=true,yes,good
false=false,no,bad
menu-export=Export
menu-snapshot=Snapshot
menu-ini=Select Config
menu-reload=Reload
menu-configuration=Edit Configuration
menu-log=Open Log File
menu-manual=Read Manual
menu-wmode=Start W Mode
menu-about=About Desktop Info
menu-quit=Quit
nav-previous=Previous
nav-home=Home
nav-next=Next

 

also check the [options] section has "contextmenu=1"

because it's transparent if you miss a foreground pixel you'll be clicking on the desktop.


   
ReplyQuote
(@kpirvin)
Active Member Registered
Joined: 3 weeks ago
Posts: 4
Topic starter  

The contextmenu=1 helped but I think the accuracy of clicking on a pixel is too complicated for my target audience. 🙁

I ended up doing this based on some Reload-DesktopInfo.cmd help I found on your site but converted it to an embedded powershell since WMIC is deprecated-ish in 2025.

I had to start the new one first before the killing the old one since it wouldn't have a chance to relaunch with it being inline.

Course this means any system or user variables that change won't be in the new DesktopInfo but I'm kewl with that.

 

BUTTON=global:0,x:{{%x2%-21}},y:5,width:40,height:30,style:b,button-color:%black%,font-face:Arial,font-size:20,align:c,display:⟳,uri:{page},args:6,hint:Reload DesktopInfo
 
#  Reload DTI
PAGE=6
PAGE-TITLE=Reload DTI
WIDE=1
SET-SECTION=key:reload-dti,value:reload-dti.ps1
CMD=interval:0,text:Reload DTI,trim:1,file:powershell.exe,parameters:%reload-dti%,display:%4,no-wait:1
 
[reload-dti.ps1]
$CurrentProcessID = (get-process -Name "DesktopInfo").Id
$ProcessCMD = (get-process -Name "DesktopInfo").Path
& $ProcessCMD
Stop-Process -Id $CurrentProcessID -Force

   
Glenn reacted
ReplyQuote
Glenn's Page