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 


grrrrrrrr window and buttons....help
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Aug 02, 2002 10:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 10:25 pm    Post subject: hummm Reply with quote

well i tryied the new code same thing. it loads the button one as soon as you start it...hummm
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Aug 02, 2002 10:28 pm    Post subject: Reply with quote

I must not be multi-tasking very well today...
Try again, should be all set now.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 10:39 pm    Post subject: ok Reply with quote

great i think its working Smile 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
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Fri Aug 02, 2002 10:42 pm    Post subject: Reply with quote

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


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 10:46 pm    Post subject: ahhh k Reply with quote

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


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 02, 2002 10:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 02, 2002 10:52 pm    Post subject: Reply with quote

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


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 10:54 pm    Post subject: yea button color Reply with quote

yea button color AND the main window box color..i would lik to know who to do this?
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Aug 02, 2002 10:57 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Fri Aug 02, 2002 11:00 pm    Post subject: Reply with quote

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


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 11:03 pm    Post subject: hummmm Reply with quote

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
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Fri Aug 02, 2002 11:04 pm    Post subject: Reply with quote

The shape element is only available in VDS version 4. You're probably still using 3.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Aug 02, 2002 11:05 pm    Post subject: Reply with quote

If you are using VDS 4 that should work just fine..are you?
_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 11:08 pm    Post subject: ahhhhhh Reply with quote

yea it 3 ...hummm i downloaded it off the company site...unless i clicked ont he wrong link there Sad

i'am d/l 4 now Smile
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, 3  Next
Page 2 of 3

 
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