Results 1 to 15 of 30

Hybrid View

  1. #1
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    Wow sorry, somehow I totally missed the part about you already trying .Sleep() and not liking the 'gui freeze.'

    I guess the easiest way (without having to explain a whole lot) would be to do as pootuba said and making a custon wait function: the key part is calling Application.DoEvents()
    ..from post above..
    Code:
    Sub Wait(ByVal cTime As Long)
    Dim sTime As Long
    
    sTime = GetTickCount + cTime
    
    Do While sTime >= GetTickCount
    Application.DoEvents()
    Loop
    End Sub
    the parameter cTime is the number of "ticks" to wait, a tick being some very small fraction of a second. (idk off top of my head..) This is probably the easiest way. Replace all of the System.Threading.Sleep() calls with a call to the above Sub.
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

  2. #2
    silentrunner2's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Posts
    629
    Reputation
    110
    Thanks
    2,871
    My Mood
    Busy
    Quote Originally Posted by abuckau907 View Post
    Wow sorry, somehow I totally missed the part about you already trying .Sleep() and not liking the 'gui freeze.'

    I guess the easiest way (without having to explain a whole lot) would be to do as pootuba said and making a custon wait function: the key part is calling Application.DoEvents()
    ..from post above..
    Code:
    Sub Wait(ByVal cTime As Long)
    Dim sTime As Long
    
    sTime = GetTickCount + cTime
    
    Do While sTime >= GetTickCount
    Application.DoEvents()
    Loop
    End Sub
    the parameter cTime is the number of "ticks" to wait, a tick being some very small fraction of a second. (idk off top of my head..) This is probably the easiest way. Replace all of the System.Threading.Sleep() calls with a call to the above Sub.
    Hey thanks for coming back to me, I used that code it seemed to work alittle better but once it finished it seemed to make my code run over and over i tryed removing the loop but had the same problem. Im i doing something really stupid, i used the function and then called it between codes like so "wait(10)"

    Btw im running the code in a timer could not cause a problem, after it completes the timer is turned off could this maybe be conflicting with it somehow.

    Thanks
    Last edited by silentrunner2; 04-26-2013 at 05:18 AM.
    My Projects


    Don't Ask For Thanks Earn It
    You: "Please Give Thanks"
    Me: "...................No"

Similar Threads

  1. Looking for AWM Code or account.
    By Verial in forum Trade Accounts/Keys/Items
    Replies: 5
    Last Post: 06-18-2009, 12:32 PM
  2. [help] making account and playing warrock
    By Darky in forum WarRock Korea Hacks
    Replies: 6
    Last Post: 07-05-2007, 08:43 PM
  3. well make accounts!!!!!!!
    By damanis1 in forum WarRock Korea Hacks
    Replies: 13
    Last Post: 05-12-2007, 02:10 PM
  4. Make Accounts
    By ktalin91 in forum WarRock Korea Hacks
    Replies: 0
    Last Post: 05-09-2007, 01:32 PM
  5. Make accounts for US version?
    By chris9273 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 05-28-2006, 11:31 AM