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 


Auto reconnect
Goto page Previous  1, 2
 
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: Fri Nov 01, 2002 10:18 pm    Post subject: :) Reply with quote

or something like that like a if, then , or else type of commads in the :connect code ( i have tried it and didn't get it to work) but i think i was doing some thing wrong what is messing me up is the dialog set command in there


thanks
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Nov 01, 2002 10:23 pm    Post subject: Reply with quote

Maybe it's easier to have a chatbox on vdsworld... My check-up tool was flashing all the time... Wink
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Nov 01, 2002 10:51 pm    Post subject: ok Reply with quote

but i'am having a hard time getting it to work i get erorrs when i try adding that line to the :connect
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Nov 01, 2002 11:12 pm    Post subject: hummm Reply with quote

any ideas? or tips

thanks

i thought be adding a line or 2 it would work Sad
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Nov 02, 2002 11:53 am    Post subject: Reply with quote

If this isn't working, I'll give it up... Confused

Code:
:evloop
  %e = @event()

  if @both(@equal(@net(socket,status),closed),@equal(%%connected,true))
    dialog set,status1,Not connected
    %%connected = false
    rem You can also put an INFO in here if you like...
  end

  if %E
    goto %E
  end
  %e = @net(socket,event)
  if %E
    goto %E
  end
  goto evloop

:connect
%%connected = true
rem put here the code you already have...
goto evloop
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sat Nov 02, 2002 3:17 pm    Post subject: no go Reply with quote

when i hit the "disconected" button then my window pop-ups Sad so its kind-of working Sad
Back to top
View user's profile Send private message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Sat Nov 02, 2002 5:25 pm    Post subject: Re: and my looks like this Reply with quote

tim6389 wrote:
my code there is this:

Code:

:evloop
  %E = @event()
  if %E
    goto %E
  end
  %E = @net(socket,event)
  if %E
    goto %E
  end
  goto evloop


Tim, I don't know if you know this, but you can use
net socket,vdsevents,1
now you don't have to check for events using @net(socket,event), because it generates a normal event

Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Nov 02, 2002 6:53 pm    Post subject: Reply with quote

Tim,

You should add the following line to your Disconnect button label:

Code:
%%connected = false
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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