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


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Apr 15, 2003 9:28 pm Post subject: ahhh k |
|
|
thanks i will check that out......
i'am having a problem with evloop (maybe there is a better way to do this)
what i'am trying to do is when you run the script you get the main window during this time if you hit a key then it would pop-up a window or what ever..like having hidden fuction here is what i have BUT it don't work right screen flickers and when its open after a bit i get a error cuase for some resaon it starts to run the rest of the script
| Code: |
:EVLOOP
if @keyboard(1)
DIALOG CREATE,test,-1,0,299,460
DIALOG ADD,BUTTON,exit,436,112,64,24,BUTTON1
DIALOG SHOW
goto evloop
else
end
WAIT EVENT,1
if @event()
else
goto evloop
end
|
p.s i know this is off the topic but i didn't want to start a new one
sorry _________________ Have a nice day  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Apr 15, 2003 9:43 pm Post subject: unless |
|
|
humm this evloop not a good idea.......unless there is a way to do this during the main window...... i can however make this work BEFORE you run the script meaning if you hold down the 1 key then run the script that works fine...BUT what about if you want to do it during your main window? _________________ Have a nice day  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Apr 15, 2003 9:44 pm Post subject: |
|
|
I think this qualifies as a new topic.
As for your problem, try something such as the following. I haven't tested
it and I can't guarantee that the commands/functions of the hotkeys are
entirely correct, but it also uses the VDSHOT.DLL in the VDSPACK.
| Code: | EXTERNAL @path(%0)VDSHOT.DLL
REM -- When you press the HOME key you will get a HOTKEY1 event --
HOTKEY ADD,1,Home
:EVLOOP
WAIT EVENT
%%event = @event()
if %%event
goto %%event
end
:HotKey1
DIALOG CREATE,test,-1,0,299,460
DIALOG ADD,BUTTON,exit,436,112,64,24,BUTTON1
DIALOG SHOW
goto evloop
:Close
HOTKEY DELETE,1
EXIT |
I hope this helps.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Apr 15, 2003 9:49 pm Post subject: |
|
|
hummmm what about using the vdskey.dll file can that be made to work?
p.s yea i guess i should have post it as a new topic sorry about that _________________ Have a nice day  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Apr 15, 2003 10:01 pm Post subject: |
|
|
| Quote: | | p.s yea i guess i should have post it as a new topic sorry about that |
No problem.
| Quote: | | hummmm what about using the vdskey.dll file can that be made to work? |
Try something like this:
| Code: | EXTERNAL @path(%0)VDSKEY.DLL
OPTION DECIMALSEP,"."
:EVLOOP
WAIT EVENT,"0.5"
%%event = @event()
if %%event
goto %%event
end
:Timer
if @keyboard(1)
goto HotKey1
end
goto evloop
:HotKey1
DIALOG CREATE,test,-1,0,299,460
DIALOG ADD,BUTTON,exit,436,112,64,24,BUTTON1
DIALOG SHOW
goto evloop
:Close
EXIT |
Again, it hasn't been tested. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Apr 15, 2003 10:15 pm Post subject: |
|
|
thanks FF it get a few errors BUT that is becuase when i have that window open and i close it it exits out of the script (i think i know how to fix that)....your code seems to work fine...thanks again _________________ Have a nice day  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Apr 16, 2003 12:14 am Post subject: |
|
|
No problem.
If you have any more questions go ahead and ask.  _________________ 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
|
|