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


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Nov 01, 2002 10:18 pm Post subject: :) |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Fri Nov 01, 2002 10:23 pm Post subject: |
|
|
Maybe it's easier to have a chatbox on vdsworld... My check-up tool was flashing all the time...  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Nov 01, 2002 10:51 pm Post subject: ok |
|
|
| 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 |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Nov 01, 2002 11:12 pm Post subject: hummm |
|
|
any ideas? or tips
thanks
i thought be adding a line or 2 it would work  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Nov 02, 2002 11:53 am Post subject: |
|
|
If this isn't working, I'll give it up...
| 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 |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sat Nov 02, 2002 3:17 pm Post subject: no go |
|
|
when i hit the "disconected" button then my window pop-ups so its kind-of working  |
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Sat Nov 02, 2002 5:25 pm Post subject: Re: and my looks like this |
|
|
| 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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Nov 02, 2002 6:53 pm Post subject: |
|
|
Tim,
You should add the following line to your Disconnect button label:
| Code: | | %%connected = false |
|
|
| Back to top |
|
 |
|