Hi everyone,
Long post again, though this is by way of a thank you for the help to my previous question, - and something of a question, and some general info, not Alpha specific, but may be relevant for desktop app devs.
The background to this is that some time ago, I wrote some code to de-munge, & purge google's results links of tracking data, with the option to scan the target URL for specific info. This is using MS-Access.
Works very nicely. Users can simply drag a link (or Right Click Copy and then hit a Paste button).
It all worked very nicely until Win7 or Win8, where the drag drop aspect fails.
It seems that on Win7/8, one can not simply drag a link, or even text from the browser to anything - including wordpad.
By the same token, one can not drag text, even from word pad to my lil 'drop box' in Win7 or Win8.
This seems very odd because all other versions of Win seem okay.
Now, while I know this is such a trivial thing, and may not be relevant to most desktop apps, it is still really annoying when there is no apparent reason.
So, I'm curious to know if this is the same in Alpha Five.
Given a text box on a form, can you drag a link or text from a browser to the text box (while running on Win7\Win8)?. My guess is no.
If my guess is correct, and in the event that someone else may need to know, and since I'm so grateful for the feedback I received to my previous question, I figured I'd share.
After a lot of research, where I see suggestions of very odd Win Registry Hacks or turning off Protected Mode for Explorer - none of which work btw, and are certainly not practical as end user advice, I realized the following.
All browsers run in 'Protected Mode' on Win 7/Win8. This is to prevent malicious code - which is why we no longer need anti stealth or anti-virus programs (thank you Microsoft, you are my hero).
But, Microsoft's 'Protected Mode' a bit pedantic. Bit like the overtly moral guy who wouldn't sleep with his wife because she was a married woman.
Along with 'Protected Mode', all browsers function under lower permissions. So, even if your app is running under elevated perms, the browser itself is low man on the ladder, and can't invoke as a Drag/Drop source.
Without the need to modify Protected Mode (so it's still doing it's job), one needs to launch the Browser/Program with Admin Permissions.
There are 3 ways of doing this.
1. For just this session: Right Click App icon and Click Run As Admin
2. For All sessions, Right Click App Icon, Click Properties.
On the Shortcut Tab, Click Advanced, Click Run As Admin
3. Registry Edit, or Via Code
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
New String Value = [Full Path to App Name]
Data = "RUNASADMIN"
Once the target (browser or Wordpad) runs as Admin, it will invoke as a Drag Drop Source, so Drag and Drop will work.
This does not compromise Protected Mode or Windows Defender. Simply allows Drag Drop to Work.
Only applies to Win7 and above.
Proviso for single session:
If another instance of the browser is already running, the new instance will inherit the start up params of the existing instance, so close all browser sessions and start a new one with Run as Admin.
Hopefully, I'm not the only one who finds this useful.
Best Wishes to all, Gary
Long post again, though this is by way of a thank you for the help to my previous question, - and something of a question, and some general info, not Alpha specific, but may be relevant for desktop app devs.
The background to this is that some time ago, I wrote some code to de-munge, & purge google's results links of tracking data, with the option to scan the target URL for specific info. This is using MS-Access.
Works very nicely. Users can simply drag a link (or Right Click Copy and then hit a Paste button).
It all worked very nicely until Win7 or Win8, where the drag drop aspect fails.
It seems that on Win7/8, one can not simply drag a link, or even text from the browser to anything - including wordpad.
By the same token, one can not drag text, even from word pad to my lil 'drop box' in Win7 or Win8.
This seems very odd because all other versions of Win seem okay.
Now, while I know this is such a trivial thing, and may not be relevant to most desktop apps, it is still really annoying when there is no apparent reason.
So, I'm curious to know if this is the same in Alpha Five.
Given a text box on a form, can you drag a link or text from a browser to the text box (while running on Win7\Win8)?. My guess is no.
If my guess is correct, and in the event that someone else may need to know, and since I'm so grateful for the feedback I received to my previous question, I figured I'd share.
After a lot of research, where I see suggestions of very odd Win Registry Hacks or turning off Protected Mode for Explorer - none of which work btw, and are certainly not practical as end user advice, I realized the following.
All browsers run in 'Protected Mode' on Win 7/Win8. This is to prevent malicious code - which is why we no longer need anti stealth or anti-virus programs (thank you Microsoft, you are my hero).
But, Microsoft's 'Protected Mode' a bit pedantic. Bit like the overtly moral guy who wouldn't sleep with his wife because she was a married woman.
Along with 'Protected Mode', all browsers function under lower permissions. So, even if your app is running under elevated perms, the browser itself is low man on the ladder, and can't invoke as a Drag/Drop source.
Without the need to modify Protected Mode (so it's still doing it's job), one needs to launch the Browser/Program with Admin Permissions.
There are 3 ways of doing this.
1. For just this session: Right Click App icon and Click Run As Admin
2. For All sessions, Right Click App Icon, Click Properties.
On the Shortcut Tab, Click Advanced, Click Run As Admin
3. Registry Edit, or Via Code
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
New String Value = [Full Path to App Name]
Data = "RUNASADMIN"
Once the target (browser or Wordpad) runs as Admin, it will invoke as a Drag Drop Source, so Drag and Drop will work.
This does not compromise Protected Mode or Windows Defender. Simply allows Drag Drop to Work.
Only applies to Win7 and above.
Proviso for single session:
If another instance of the browser is already running, the new instance will inherit the start up params of the existing instance, so close all browser sessions and start a new one with Run as Admin.
Hopefully, I'm not the only one who finds this useful.
Best Wishes to all, Gary
Comment