| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Apr 10, 2003 12:28 am Post subject: |
|
|
never mind i didn't see it unzip it to a folder
sorry
 _________________ Have a nice day  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Apr 10, 2003 1:18 am Post subject: |
|
|
problem - or bug
if i click the right mouse button then curser gets unlocked so that don't really stop it unless they don't click on mouse buttons  _________________ Have a nice day  |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Thu Apr 10, 2003 10:15 am Post subject: |
|
|
For me the only ways of unlocking the mouse without using the PROT CLIP command seems to be by dragging something (a title bar for example), or switching to a different window. It wouldn't unlock just by right-clicking.
Maybe the spot you've choosen to lock the mouse at isn't very suitable. Maybe a spot somewhere on your dialog would be best, but then still the user could get around by moving your dialog using keyboard shotcuts so that the mouse would be unlocked as well.
So for now I don't know an ultimate solution either...
Tommy
| tim6389 wrote: | problem - or bug
if i click the right mouse button then curser gets unlocked so that don't really stop it unless they don't click on mouse buttons  |
|
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Apr 10, 2003 12:53 pm Post subject: Re: how to disable mouse clicks???? |
|
|
| tim6389 wrote: | hello all
i have made a program that auto runs other programs etc, BUT problem is if the user min the window then window send won't works right is there a way to disable mouse clicks? right and left clicks? then have then turned back on after script ends?
thanks |
Why can't you just use WINDOW NORMAL and WINDOW ACTIVATE before you use WINDOW SEND? You could put these in a loop. If you need to just put them in a seperate EXE and a IF...END to stop and start the loop and to exit the external program when your main program is done. The effects would be the same. Every time the user minimizes the program the external EXE would bring it back up hehehehehehehe _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Apr 10, 2003 3:08 pm Post subject: |
|
|
Maybe another idea: you can create a little dialog at the mouse position if it's over the button you want to disable...
You can use the code unbeneath to place it into a loop...
| Code: |
DIALOG CREATE,MyClickableWindow,1,1,3,3,NOTITLE
DIALOG SHOW
dialog setpos,,@pred(@mousepos(y)),@pred(@mousepos(x))
window click,MyClickableWindow,2,2
|
_________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Apr 10, 2003 7:00 pm Post subject: |
|
|
The best way is probably to blank out the screen since also the mouse
clipping can be turned off by pressing CTRL+ALT+DEL in Windows NT
based systems. Try this code to blank the screen while executing other
commands:
| Code: | Title Please Wait...
TASKBAR HIDE
REM -- The following lines are for demonstration only --
shell open,@windir()\notepad.exe
wait 0.5
%%hwnd = @winexists(@winactive())
REM -- End demonstration code --
DIALOG CREATE,Please wait...,-1,0,@sysinfo(screenwidth),@sysinfo(screenheight),COLOR Black,CLASS TWaitWnd,NOTITLE,ONTOP
DIALOG ADD,STYLE,BIG,Verdana,14,BC,,WHITE
DIALOG ADD,TEXT,TEXT1,50,0,@sysinfo(screenwidth),,Please wait while we make some changes...,,BIG
DIALOG SHOW
WINDOW SEND,%%hwnd,This is some test text...
wait 4
TASKBAR SHOW
:Close
exit |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Apr 10, 2003 11:16 pm Post subject: |
|
|
mindpower - yes that is what i have now
FreezingFire - that is one idea that could be used
BUT i think if i was to added the code :
after every command when its running the auto part then if they unlock it it will re-lock meaning like this: what you think?
| Code: |
PROT CLIP,1,1,1,1
window send,%W,@CR()
PROT CLIP,1,1,1,1
wait 1
PROT CLIP,1,1,1,1
%o = @winactive(I)
PROT CLIP,1,1,1,1
wait 1
PROT CLIP,1,1,1,1
window close,%o
PROT CLIP,1,1,1,1
wait 1
PROT CLIP,1,1,1,1
%W = @winactive(I)
|
problem is in my script i have a 60 secs wait SO during this time as you know it don't run the next line of code how can i have a 60secs wait BUT still have it run the PROT CLIP,1,1,1,1 DURING the 60secs?
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Apr 10, 2003 11:50 pm Post subject: |
|
|
Use something like the following to process code while waiting 60 seconds:
| Code: | info Start
%%wait = 60
%%start_time = @datetime(nnss)
%%end_time = @fadd(@datetime(nnss),%%wait)
repeat
info Process code here
REM -- Such as PROT CLIP --
until @greater(@datetime(nnss),%%end_time)
warn Done |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Apr 10, 2003 11:54 pm Post subject: |
|
|
Here's basically what you want to do:
| Code: | EXTERNAL VDSPROT.DLL,Your_Registration_Here
REM -- Set decimalsep --
OPTION DECIMALSEP,"."
%%wait = 60
%%start_time = @datetime(nn)
%%end_time = @fadd(@datetime(nnss),%%wait)
repeat
PROT CLIP,1,1,1,1
REM -- Wait .001 seconds to avoid 100% processor usage --
WAIT "0.001"
until @greater(@datetime(nnss),%%end_time) |
Note that you can also do other processing such as WINDOW SEND or
something else in the same space as where PROT CLIP is.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Apr 10, 2003 11:58 pm Post subject: |
|
|
ok
would my other idea work to? or would i be wasting my time?
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Apr 11, 2003 12:34 am Post subject: |
|
|
| tim6389 wrote: |
after every command when its running the auto part then if they unlock it it will re-lock meaning like this: what you think?
| Code: |
PROT CLIP,1,1,1,1
window send,%W,@CR()
PROT CLIP,1,1,1,1
wait 1
PROT CLIP,1,1,1,1
%o = @winactive(I)
PROT CLIP,1,1,1,1
wait 1
PROT CLIP,1,1,1,1
window close,%o
PROT CLIP,1,1,1,1
wait 1
PROT CLIP,1,1,1,1
%W = @winactive(I)
|
|
This idea? Which idea? _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Apr 11, 2003 1:24 am Post subject: |
|
|
sorry i didn't tell ya what idea yes that one _________________ Have a nice day  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Apr 11, 2003 1:49 am Post subject: or |
|
|
what if i do this
| Code: |
cursor pos, 1000,1000
|
then
would that move the curser WAY off the screen ( number is high cuase of diff display setting people might have) then lock the cursor? that is what would happen right?
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Apr 11, 2003 3:22 am Post subject: ahhhhhhhh |
|
|
ahhhh it seems that this works in 98se
| Code: |
cursor pos, 1000,1000
|
but in XP it just makes the curser just disapears if I move the mouse it reapears.... _________________ Have a nice day  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Apr 11, 2003 6:55 pm Post subject: |
|
|
OK... how about you tell me exactly what you need to do and then I write
you some code if I can.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| 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
|
|