QuickView Plugin

This is where you talk about Plugins. How they are made and how they work, show examples.

Re: QuickView Plugin

Postby mark68 » Sat Jan 27, 2024 9:37 pm

dezsoe wrote:"Documents and settings" is a link only, it was a folder in XP, but time flies... However, I'll check if I can do anything to use hard links and network drives. (I can't remember if I've ever tested with network drives.)



Any chance of looking at this Deszoe?

It would be useful to browse network drives.

Ps, I cannot seem to get it to show drive c it is locked on d which is a data drive installed in the PC, not one where the g code files are stored and if i create a shortcut in drive d to the folder where g code files are it loads text data of the shortcut link it doesn't open the link.
Attachments
Screenshot 2024-01-27 213342.png
mark68
 
Posts: 59
Joined: Tue Oct 22, 2019 10:42 pm
Location: Yorkshire Uk

Re: QuickView Plugin

Postby dezsoe » Tue Jan 30, 2024 6:52 pm

OK, I fixed some issues. The symlink folders do not appear now. The network drives worked, there was nothing to do with them, but you cannot browse the network.

This download works for UCCNC 1.2113 to 1.2115.

This download works for UCCNC 1.2116 or later.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: QuickView Plugin

Postby mark68 » Tue Jan 30, 2024 9:40 pm

[quote="dezsoe"]OK, I fixed some issues. The symlink folders do not appear now. The network drives worked, there was nothing to do with them, but you cannot browse the network.

I've replaced both existing .dll files in each version I have installed, when clicking on drives it still pops up the error window followed by the do you want to cloase window.

Also happens when I click refresh.

Extracted this from the error window, if it's any use?


System.IO.IOException: The device is not ready.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.DriveInfo.get_VolumeLabel()
at UCCNC_QuickView.PluginForm.UpdateFiles()
at UCCNC_QuickView.PluginForm.btnDrives_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Attachments
Screenshot 2024-01-30 213418.png
mark68
 
Posts: 59
Joined: Tue Oct 22, 2019 10:42 pm
Location: Yorkshire Uk

Re: QuickView Plugin

Postby dezsoe » Wed Jan 31, 2024 9:19 am

Is the drive that you click a real drive? I've tested with local and network drives and it works fine here.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: QuickView Plugin

Postby dezsoe » Wed Jan 31, 2024 10:05 am

You get the error message from GetVolumeLabel (part of .Net, not my code). I couldn't find out what I see on the screenshots: there is a dot below the error message. Try to rename your drive: there may be a special character in its name.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: QuickView Plugin

Postby mark68 » Wed Jan 31, 2024 7:56 pm

dezsoe wrote:You get the error message from GetVolumeLabel (part of .Net, not my code). I couldn't find out what I see on the screenshots: there is a dot below the error message. Try to rename your drive: there may be a special character in its name.


Yes it is a real drive with nothing special about my drive names, I am using windows 11 though, you maybe still on windows 10 ?

If I click continue on the error message then you can see the drive is acessible.


Screenshot 2024-01-31 195338.png



Quickview error when clicking drives.txt
(12.1 KiB) Downloaded 174 times



Screenshot 2024-01-31 194456.png
Screenshot 2024-01-31 194456.png (6.01 KiB) Viewed 3103 times
mark68
 
Posts: 59
Joined: Tue Oct 22, 2019 10:42 pm
Location: Yorkshire Uk

Re: QuickView Plugin

Postby dezsoe » Wed Jan 31, 2024 10:14 pm

Of course, I work on Win11 and before I upload a new version I test it on Win10 and Win7 too, both 32 and 64 bits.

I assume that you didn't try to rename the drive, despite it could have helped a lot. So now I made a version which shows only a question mark instead of the volume label if it cannot be read. The download links are the same. Which drive gets the question mark?
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: QuickView Plugin

Postby mark68 » Wed Jan 31, 2024 10:21 pm

dezsoe wrote:Of course, I work on Win11 and before I upload a new version I test it on Win10 and Win7 too, both 32 and 64 bits.

I assume that you didn't try to rename the drive, despite it could have helped a lot. So now I made a version which shows only a question mark instead of the volume label if it cannot be read. The download links are the same. Which drive gets the question mark?



Interesting, is it the dvd drive that is causing it?


Screenshot 2024-01-31 222330.png
mark68
 
Posts: 59
Joined: Tue Oct 22, 2019 10:42 pm
Location: Yorkshire Uk

Re: QuickView Plugin

Postby mark68 » Wed Jan 31, 2024 10:26 pm

Yes, clicking on G causes the crash.

Note, this drive wasn't showing until your new version yet it was physical present.

Screenshot 2024-01-31 222541.png
mark68
 
Posts: 59
Joined: Tue Oct 22, 2019 10:42 pm
Location: Yorkshire Uk

Re: QuickView Plugin

Postby dezsoe » Wed Jan 31, 2024 10:41 pm

Ahha! It didn't show up, because of the exception. Now that I handle it you get the "?" and the drive shows on the list. Hm. It was so many years ago when I had a CD/DVD the last time... OK, I need to handle this problem, thanks for the info.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

PreviousNext

Return to Plugins

Who is online

Users browsing this forum: No registered users and 7 guests