Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 window problem
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
spencerbr




PostPosted: Sat Dec 09, 2006 3:02 pm   Post subject: window problem

doesn't load when you click for insertion point
code:

    % Load
    if x >= 55 and x <= 95 and y >= 345 and y <= 385 and button = 1 then
        var winID3 : int
        delay (500)
        winID3 := Window.Open ("position:center;center,graphics:200;100")
        locate (1, 1)
        put "Load : Enter File Name"
        get file
        delay (100)
        locate (1, 1)
        put "Click on insertion point"
        delay (500)
        Window.Hide (winID3)
        mousewhere (x, y, button)
        if button = 1 and y >= 20 and x >= 100 then
            Pic.ScreenLoad (file + ".bmp", x, y, picCopy)
        end if
        delay (500)
        Window.Close (winID3)
    end if
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sat Dec 09, 2006 3:10 pm   Post subject: (No subject)

sure it does, it's just that
code:

        put "Click on insertion point"
        delay (500)
        Window.Hide (winID3)
        mousewhere (x, y, button)
        if button = 1 and y >= 20 and x >= 100 then

There's just 0.5 of a second between seeing "click on" and checking once if the button has been pressed.

You need a loop in there
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
spencerbr




PostPosted: Sat Dec 09, 2006 4:30 pm   Post subject: (No subject)

ok, thx, it works now
spencerbr




PostPosted: Sat Dec 09, 2006 4:40 pm   Post subject: (No subject)

its still messed up... it gives .5 seconds to click but on the wrong window
McKenzie




PostPosted: Sat Dec 09, 2006 9:22 pm   Post subject: (No subject)

What exactly do you want it to do?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: