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


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Aug 02, 2002 10:06 pm Post subject: |
|
|
| Code: |
%%tempfile = @windir(T)
if @not(@equal(@strdel(@windir(T),1,-1),\))
%%tempfile = %%tempfile\
end
%%tempfile = %%tempfile"vdsworld.tmp"
%%url = http://192.168.1.3/members/logger/log42.txt
%%username = xxx
%%password = xxx
%%tempfile1 = %%tempfile"vdsworld1.tmp"
%%url1 = http://192.168.1.3/members/logger/log1.txt
%%Button = 0
rem %%interval is in seconds
%%interval = 1
REM @PATH(%0) gives the full path to your exe, or the path to VDS itself. C:\vds in front of @PATH..
directory change,c:\vds@path(%0)
external vdsipp.dll
internet http,create,1
internet http,threads,1,off
internet http,protocol,1,1
internet http,useragent,1,VDSWORLD
internet http,authenticate,1,%%username,%%password
DIALOG CREATE,New Dialog,-1,0,484,298
DIALOG ADD,STYLE,sFont,Courier New,8,,,
DIALOG ADD,LIST,lTEXT,25,12,466,170,,sFont
DIALOG ADD,BUTTON,BUTTON1,210,14,64,24,button1
DIALOG ADD,BUTTON,BUTTON2,254,14,64,24,BUTTON2
DIALOG ADD,BUTTON,BUTTON3,210,96,64,24,BUTTON3
DIALOG ADD,BUTTON,BUTTON4,254,98,64,24,BUTTON4
DIALOG ADD,BUTTON,BUTTON5,212,182,64,24,BUTTON5
DIALOG ADD,BUTTON,BUTTON6,256,184,64,24,BUTTON6
DIALOG ADD,BUTTON,BUTTON7,210,262,64,24,BUTTON7
DIALOG ADD,BUTTON,BUTTON8,256,264,64,24,BUTTON8
DIALOG ADD,BUTTON,BUTTON9,210,346,64,24,BUTTON9
DIALOG ADD,BUTTON,BUTTON10,254,348,64,24,BUTTON10
DIALOG SHOW
%%dh = @sum(2,@dlgpos(SB,H))
goto evloop
:Timer
if @EQUAL(%%Button,1)
internet http,download,1,%%url,%%tempfile
list loadfile,lText,%%tempfile
end
if @EQUAL(%%Button,2)
internet http,download,1,%%url1,%%tempfile1
list loadfile,lText,%%tempfile1
end
:evloop
wait event,%%interval
goto @event()
:BUTTON1BUTTON
internet http,download,1,%%url,%%tempfile
list loadfile,lText,%%tempfile
%%Button = 1
goto evloop
:BUTTON2BUTTON
internet http,download,1,%%url1,%%tempfile1
list loadfile,lText,%%tempfile1
%%Button = 2
goto evloop
:RESIZE
PARSE "%H;%W",@dlgpos(,HW)
DIALOG SETPOS,ED,0,1,@diff(%W,2),@diff(%H,%%dh)
goto evloop
:close
internet http,destroy,1
exit
|
_________________ -Sheep
My pockets hurt...
Last edited by SnarlingSheep on Fri Aug 02, 2002 10:27 pm; edited 1 time in total |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 10:25 pm Post subject: hummm |
|
|
| well i tryied the new code same thing. it loads the button one as soon as you start it...hummm |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Aug 02, 2002 10:28 pm Post subject: |
|
|
I must not be multi-tasking very well today...
Try again, should be all set now. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 10:39 pm Post subject: ok |
|
|
great i think its working thanks a mil
buttons are not so good i mean they are hard to keep line so it looks nice....hummm what do you guys do to make the buttons like nice?
thanks |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Fri Aug 02, 2002 10:42 pm Post subject: |
|
|
I think both the dialog editors of VDS 3 and VDS 4 allow for a grid to be enabled. In
the Properties window in the dialog editor, try to enable both the "Snap to grid"
and "Show grid" check boxes. Enabling the grid allows for very easy alignment of
the dialog controls.
Tommy |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 10:46 pm Post subject: ahhh k |
|
|
also to can the box color be chnaged if so how?
the gray look is ok, but i though some nice colors would help |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Aug 02, 2002 10:51 pm Post subject: |
|
|
I look at what pixel the first button is from the top and change all of the other buttons in the row to that number. You can find the pixel from the top number by looking at the "Top" box. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Aug 02, 2002 10:52 pm Post subject: |
|
|
Do you mean the color of the button? If so, I think maybe Tommy's VDSDLL3 may allow for changing buttons like this... _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 10:54 pm Post subject: yea button color |
|
|
| yea button color AND the main window box color..i would lik to know who to do this? |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Aug 02, 2002 10:57 pm Post subject: |
|
|
If you want to change the color of your dialog you can add either a GRADIENT or a SHAPE element and make it the same width and height as your dialog. It needs to be before all of your other elements except for STYLE elements in most cases though.
In your case try adding this:
DIALOG ADD,SHAPE,SHAPE1,0,0,484,298,WHITE,WHITE,,RECTANGLE
Underneath these lines in your script:
DIALOG CREATE,New Dialog,-1,0,484,298
DIALOG ADD,STYLE,sFont,Courier New,8,,, _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Fri Aug 02, 2002 11:00 pm Post subject: |
|
|
It isn't possible to change the color of buttons with my VDSDLL... You could always
try to use images or even a shape as Sheep noted as buttons... These kinds of
elements can of course have custom colors. |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 11:03 pm Post subject: hummmm |
|
|
well i tried that i got a invaild command warning.....
| Code: | | DIALOG ADD,SHAPE,SHAPE1,0,0,484,298,WHITE,WHITE,,RECTANGLE |
hummm do i need a dll for this to work? |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Fri Aug 02, 2002 11:04 pm Post subject: |
|
|
| The shape element is only available in VDS version 4. You're probably still using 3. |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Aug 02, 2002 11:05 pm Post subject: |
|
|
If you are using VDS 4 that should work just fine..are you? _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 11:08 pm Post subject: ahhhhhh |
|
|
yea it 3 ...hummm i downloaded it off the company site...unless i clicked ont he wrong link there
i'am d/l 4 now  |
|
| 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
|
|