forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Evloop problem

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Tue Apr 15, 2003 9:28 pm    Post subject: ahhh k Reply with quote

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 Sad


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 Sad

sorry

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Tue Apr 15, 2003 9:43 pm    Post subject: unless Reply with quote

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 Smile
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Apr 15, 2003 9:44 pm    Post subject: Reply with quote

I think this qualifies as a new topic. Wink

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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Tue Apr 15, 2003 9:49 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Apr 15, 2003 10:01 pm    Post subject: Reply with quote

Quote:
p.s yea i guess i should have post it as a new topic sorry about that


No problem. Smile

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
View user's profile Send private message Visit poster's website
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Tue Apr 15, 2003 10:15 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Apr 16, 2003 12:14 am    Post subject: Reply with quote

No problem. Wink
If you have any more questions go ahead and ask. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group