Suggestions
 
Notifications
Clear all

Suggestions

16 Posts
4 Users
0 Reactions
467 Views
 mon
(@mon)
Active Member Registered
Joined: 2 years ago
Posts: 4
Topic starter  

Hi. First of all, thanks for making this great utility. I would like to make some suggestions about features that I think would be interesting in Desktop Info:

- Possibility to align items to the center of the columns.

- An option for LOGICALDRIVES / PHYSICALDRIVES to open Windows Explorer by clicking on each displayed drive. Explorer would open with the drive path.

- A new item to show processes with network activity.


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

Good suggestions:

1. put "text-align=1" in the [options] section
2. I seem to recall trying that before but I'll have another look.
3. Like TOPPROCESSCPU but for network, TOPPROCESSNET ? Seems like something worth exploring.


   
ReplyQuote
 mon
(@mon)
Active Member Registered
Joined: 2 years ago
Posts: 4
Topic starter  

Thank you very much for the quick reply.

1. But with that I get align to right not center the text.
2. It would be great.
3. Yes, something like that. I've been trying to do it using "netstat -b" but I can't get it to show just the process name to not overload the information displayed.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

1. you want this?

  left column  | right column
      xxxx     | xxxxxxxxxxxx
   xxxxxxxxx   | xxxx
    xxxxxxx    | xxxxxxx
 xxxxxxxxxxxxx | xxxxxxxx
      xxx      | xxxxx

   
ReplyQuote
 mon
(@mon)
Active Member Registered
Joined: 2 years ago
Posts: 4
Topic starter  

Yes, but I'm using only the right column. I'd like to be able to center some elements in that column, like the titles of each section, but keep the results aligned to the left.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 
 left column   | right column
 xxxx          | xxxxxxxxxxxx
 xxxxxxxxx     | xxxx
 xxxxxxx       |   xxxxxxx
 xxxxxxxxxxxxx | xxxxxxxx
 xxx           | xxxxx

ok, i'll raise a bug and look into it.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

I've added center option to ALIGN and TEXT-ALIGN item options. It works for left and/or right column and wide mode. Doesn't work on controls yet. I've also added ALIGN and TEXT-ALIGN KEY WORDS to make it easier to set alignment for a block of items.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

3. it seems there's no windows performance counters that will give network activity per process. I notice netstat doesn't do that either. Netstat does show network connections and the executable associated with each connection but no throughput stats. I think I can emulate netstats using the GetExtendedTcpTable API call.


   
ReplyQuote
 mon
(@mon)
Active Member Registered
Joined: 2 years ago
Posts: 4
Topic starter  

AppNetworkCounter ( https://www.nirsoft.net/utils/app_network_counter.html) does something similar but I don't know how that utility achieves it.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

This is part 1. It is a basic implementation of GetExtendedTcpTable. It shows a list of processes that have active network connections and processes that are listening.

I believe the tool you mentioned tracks the network activity of each application by module name rather than process id. The up side is when an application goes away and comes back, the counting continues, the down side is multiple connections within the application or multiple processes of the same application are counted as one.

The alternative is tracking by process id which is much more granular but also makes the list a whole lot bigger in the case of a browser for example.

Part 2, I think, is implement process network activity tracking.


   
ReplyQuote
(@di_user)
Active Member Registered
Joined: 2 years ago
Posts: 5
 

My suggestions, plz:
1. Clear keyboard buffer after return from CONTROL
2. Cut leading and ending spaces (
for ex., PHYSICALDRIVES, %13 "manufacturer’s serial number" contains leading spaces
)


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

1. You'll have to explain this some more.
2. This will be available in the next release under the guise of regular expression support.


   
ReplyQuote
(@di_user)
Active Member Registered
Joined: 2 years ago
Posts: 5
 

1. Create my.cmd with:
pause
2. Add config line:
CONTROL=uri:my.cmd
3. Click on control button, run my.cmd and press "Space"
4. DesktopInfo switches the active page. It looks like I press "Space" in DesktopInfo itself.


   
ReplyQuote
(@rohricht)
New Member Registered
Joined: 2 years ago
Posts: 2
 

Hi! Maybe my problem is related to the issue reported above.

I have some controls in my script as follows:

CONTROL=active:0,wide:1,width:1,display:
CONTROL2=left:0,width:95,button-color:%blue%,color:%white%,display:Passos,uri:psr
CONTROL2=left:100,width:95,button-color:%blue%,color:%white%,display:Comando,uri:cmd.exe
CONTROL2=left:200,width:95,button-color:%blue%,color:%white%,display:Chamado,uri: https://centraldeservicos.joinville.sc.gov.br 
CONTROL2=left:300,width:95,button-color:%orange%,color:%white%,display:Bloquear,uri:C:WindowsSystem32rundll32.exe,args:user32.dll,LockWorkStation

When I click in a button, the focus stay over it and an unexpected automatic action is triggered.

E.g.: If I click the prompt (CMD) button, the prompt opens correctly. If I click to close it, changing the focus, everything is fine. But if I type exit and hit Enter, the prompt is closed and the CMD source folder (system32) is opened.

If I put the lock screen button in the first position, the machine enters in a lock looping. You click to lock, it works, but when you type password and hits Enter, you login and are logged out again, as if the focus is locked over the lock button and it's automatically triggered when you login, locking the machina again.

I searched the forum on the subject without success.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

The keyboard buffer issue is an interesting one. The solution is not obvious. The controls react to keypress as they should, as does any Windows program. What's missing is the focus rectangle. In fact you can use the TAB key to move the focus to the next control, you just can't see the focus rectangle but it's still doing it.

Remember DTI merely starts the external process and goes right back to pondering it's navel. It's not waiting around for the external process to end, it's long forgotten about it. So the issue seems to be that at some arbitrary point in time DTI receives a key down message from Windows and dutifully sends it to the control that currently has focus.

You can test this:

Click on one of the CONTROLS then close that window.
Press the SPACE bar and watch the first CONTROL trigger. This is the control that has focus. Close that window.
Press TAB then SPACE and watch the next CONTROL trigger.
Press TAB then SPACE again and watch the next CONTROL trigger.
etc...
Click on the cmd.exe CONTROL, type exit and enter. Watch the control with focus trigger.

In other words, DTI is behaving exactly the way a Windows program is supposed to behave. The problem is Windows (cmd.exe) keeps keystrokes in the keyboard buffer when it probably shouldn't.

So the question is, should DTI respond to key presses at all and exactly how should it respond?

Perhaps an option to ignore external keystrokes?


   
ReplyQuote
Page 1 / 2
Glenn's Page