azure Posted July 21, 2009 Author Share Posted July 21, 2009 Hey Guise? I was messing with that transparency form stuff and, ZM suggested that I make a timer and restrict how often do events are done, but I am a noob and can't figure out how to do this for the life of me. If you guys would help me figure this out I'd be very grateful Link to comment Share on other sites More sharing options...
The Oracle Posted July 21, 2009 Share Posted July 21, 2009 just copy the events you want restricted to a timer. The, create a timer and set an interval. Double click on the timer. Then paste the events in there. This way, whenever the timer "ticks", the events are done Link to comment Share on other sites More sharing options...
azure Posted July 21, 2009 Author Share Posted July 21, 2009 Yeah I was wondering about the interval is in milliseconds right? Link to comment Share on other sites More sharing options...
The Oracle Posted July 21, 2009 Share Posted July 21, 2009 yes it is, so 1000 in interval is every second.also, no offense, but lol at your name. this year's april fools joke. XD Link to comment Share on other sites More sharing options...
azure Posted July 21, 2009 Author Share Posted July 21, 2009 Really? I think I may have been AFK then. So Let me get this right, I just c/p the events I want to time into the timer code sub. I need to keep their original subs right? Link to comment Share on other sites More sharing options...
The Oracle Posted July 21, 2009 Share Posted July 21, 2009 no. you cant move anything that you want restricted to the timer. Link to comment Share on other sites More sharing options...
azure Posted July 22, 2009 Author Share Posted July 22, 2009 Unless someone can give me a reliable and easily accomplished answer, I don't think this is achievable. :( HM said to slow down how often they are called(DoEvents) and Godlord to get rid of them all together(tons and tons of source editing) So for now I'm going to declare this impossible; however, I'm going to recreate the situation and run it on a vista v-box and see if it's my computer or not. Link to comment Share on other sites More sharing options...
Dennys Posted July 22, 2009 Share Posted July 22, 2009 I would try to help you but i dont understand what excatly is the problem or what you are trying to acquire. Link to comment Share on other sites More sharing options...
azure Posted July 22, 2009 Author Share Posted July 22, 2009 Basically some of us get a weird pic screen flicker when we use transparent forms or colors. (actually from what I read it's kind of common) I read around and saw that HM(Zetta Monkey) had made a response about DoEvents. So I pm'd him and asked for a idiot friendly response, he said "make the Doevents happen less often) So I had no clue how to do that, even after researching the subject. I then asked Godlord how to do the same thing, because he's 1337, and he said take them out all together, which would be insane for me to do since I'm a noob and barely have a grasp on vb as it is. So to explain my issue in more simple words, When I put something transparent on frmMirage I get a flicker on pic screen.Ps: I managed to slow the flicker down, and even stop it(but when I did stop it Picscreen went blank) Link to comment Share on other sites More sharing options...
Dennys Posted July 22, 2009 Share Posted July 22, 2009 Well to remove is rather easy o.O just go on VB6 or w/e you use to source edit/compile and press CTRL+f then search or and delete Replace "DoEvents". Link to comment Share on other sites More sharing options...
azure Posted July 22, 2009 Author Share Posted July 22, 2009 You can't. I commented them out (all of them) and the whole shebang was fail. I had to close the program with the task manager. Link to comment Share on other sites More sharing options...
Dennys Posted July 22, 2009 Share Posted July 22, 2009 Then dont delete all of them? Or maybe do what Marsh said and reduce the frequency, so just leave some on important areas. Link to comment Share on other sites More sharing options...
azure Posted July 22, 2009 Author Share Posted July 22, 2009 It wasn't marsh, it was HM. The problem is I'm not exactly how to do that. I don't know how to call a timer from a module, or even if that's possible. Link to comment Share on other sites More sharing options...
Dennys Posted July 22, 2009 Share Posted July 22, 2009 Well i dont know if its possible to Edit the FUnction DoEvents cause when i try it on VB6 it just tells me a description of it. Its not part of The source code its part of the Coding language. Then again idk if it is possible to reduce teh timer Link to comment Share on other sites More sharing options...
azure Posted July 22, 2009 Author Share Posted July 22, 2009 I looked into the matter and it is possible to set DoEvents to a timer, but the examples and such referred to a form object and not a piece of coding (functions|blarg and stuff) in a module, this is why I'm lost for the most part. :( Link to comment Share on other sites More sharing options...
Dennys Posted July 22, 2009 Share Posted July 22, 2009 Lol post the link maybe ill understand them. Link to comment Share on other sites More sharing options...
azure Posted July 22, 2009 Author Share Posted July 22, 2009 I'll find them again. If you want I can give you the link to Hm's post too, and the quote from his pm(simple but it means more when he says it, lol) This might take a few minutes. Link to comment Share on other sites More sharing options...
Dennys Posted July 22, 2009 Share Posted July 22, 2009 ok (just posting so you wont have to double post) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now