| View previous topic :: View next topic |
| Author |
Message |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Sun Mar 20, 2005 3:36 pm Post subject: Disable Right Click |
|
|
Is there a way to disable right click on the VDS Browser?
Nathan |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
|
| Back to top |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Mon Mar 21, 2005 8:50 am Post subject: |
|
|
I tried that, but you can not left click when the anicon is shown.
And the registry entry does not work for the VDS Browser, it does work however for Internet Explorer..
Any ideas?
Nathan |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Mon Mar 21, 2005 1:45 pm Post subject: |
|
|
If you use the IETWEAKS2 demo that comes with VDSSURFX, you will be able to disable the right-click on the IE shell, but it will also disable it for all IE instances. Its a general effect.
Anyway dont know if its that you want.  |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Mon Mar 21, 2005 8:09 pm Post subject: |
|
|
Hi Rubes_sw,
Here is one way to do it (using the VDS Browser) utilizing browser enable/disable:
| Code: | title VDS Explorer
#DEFINE COMMAND,BROWSER
#DEFINE FUNCTION,BROWSER
external vdsbrw50
DIALOG CREATE,VDS Explorer,-1,0,600,650,SAVEPOS,CLASS VDSBrowser
dialog add,line,line1,120,4,591,468
DIALOG ADD,BROWSER,Browser1,120,4,591,468,http://www.yahoo.com,,OFFLINE
dialog disable,browser1
LOADLIB user32.dll
%%VK_RBUTTON = $02
%%VK_LBUTTON = $01
DIALOG SHOW
:evloop
wait event,.0001
%E = @event()
if @not(@null(%E))
goto %E
end
goto evloop
:close
freelib user32
exit
:timer
%%line = @winexists(~line1)
if @equal(@winatpoint(@mousepos(X),@mousepos(Y)),%%line)
%%LButton = @LIB(user32,GetAsyncKeyState,INT:,%%VK_LBUTTON)
%%LButton = @LIB(user32,GetAsyncKeyState,INT:,%%VK_LBUTTON)
if @not(@equal(%%LButton,0))
dialog enable,browser1
%X = @diff(@mousepos(X),@winpos(VDS Explorer,L))
%Y = @diff(@mousepos(Y),@winpos(VDS Explorer,T))
rem option skdelay,30
repeat
%%LButton = @LIB(user32,GetAsyncKeyState,INT:,%%VK_LBUTTON)
until @equal(%%LButton,0)
window click,VDS Explorer,%X,%Y
window click,VDS Explorer,%X,%Y
dialog disable,browser1
end
end
%%LButton = @LIB(user32,GetAsyncKeyState,INT:,%%VK_LBUTTON)
goto evloop |
There might be a more creative way to do this, but this comes to mind. Also, whereas the above example works, the "Hand" icon will not appear while moving the mouse pointer over a link.
Cheers,
- Boo |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|