Small Basic/Visual Basic Help pls!

Chat about anything not covered in these forums, but keep it civil!

Post » Sun Dec 25, 2011 7:03 pm

Hey guys as you have mybie seen from from my last post I am still noob,
But I am getting the hang of it a bit.

I am busy crateing an new download manager, so far so good.

but there is one problem, everyting works, but why does

If(downloadlistgo = 1) Then
GraphicsWindow.Clear()
Downloadlisttext = Network.GetWebPageContents("http://dl.dropbox.com/u/37148455/Download%20list.txt")
downloadlistgo = downloadlistgo -1
EndIf

Not working correctly!
here is the full code, pls help!

GraphicsWindow.Show()

'Start of layout
newsx =-0
newsy =-0
downloadlistgo = 0
News = Network.GetWebPageContents("http://dl.dropbox.com/u/37148455/News.txt")
GraphicsWindow.Drawtext(newsx, newsy, News)





'Download List setup

DownloadlistW = 110
DowbloadlistH = 30
DownloadlistX = GraphicsWindow.Width - 110
DownloadlistY = GraphicsWindow.Height - 30
GraphicsWindow.MouseDown = handleClick
GraphicsWindow.BrushColor = "Gray"
GraphicsWindow.FillRectangle(DownloadlistX, DownloadlistY,DownloadlistW, DowbloadlistH)
GraphicsWindow.DrawRectangle(DownloadlistX, DownloadlistY,DownloadlistW, DowbloadlistH)
GraphicsWindow.BrushColor = "Black"
GraphicsWindow.DrawText(DownloadlistX + 10, Downloadlisty + 7, "Download list")
'Download list in action

Sub handleClick
xpos = GraphicsWindow.MouseX
ypos = GraphicsWindow.MouseY
If(xpos > Downloadlistx And xpos < (DownloadlistX + DownloadlistW)) Then
    If(ypos > Downloadlisty And ypos < (DownloadlistY + DowbloadlistH)) Then
      downloadlistgo = downloadlistgo + 1
    EndIf
EndIf
EndSub

If(downloadlistgo = 1) Then
GraphicsWindow.Clear()
Downloadlisttext = Network.GetWebPageContents("http://dl.dropbox.com/u/37148455/Download%20list.txt")
downloadlistgo = downloadlistgo -1
EndIf
B
7
S
2
G
1
Posts: 193
Reputation: 1,745

Post » Sun Dec 25, 2011 7:40 pm

I think you should rather find a forum about small/visual basic and post your question up there.

Even for the "open topics", this is really out of scope and seem totally out of topic.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sun Dec 25, 2011 8:37 pm

Unless you were to do something like that in CC, which is actually doable.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Sun Dec 25, 2011 11:21 pm

www.stackoverflow.com
lucid2011-12-25 23:23:12
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Mon Dec 26, 2011 7:22 am

Thanks guys!
B
7
S
2
G
1
Posts: 193
Reputation: 1,745


Return to Open Topic

Who is online

Users browsing this forum: No registered users and 4 guests