| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> was there a reason for this request besides lack of understaning how a computer and operating system work? <1> Don't know. Never know with this guy. <2> Id there something wrong with this line: num1 = Rnd() Mod 10 <2> I declared num1 with Dim num1 as integer under the Public Cl*** Form1 <2> and I print it with Label3.Text = "What is the product of " & num1 & <2> but it only shows 1 or 0 <1> As it should. <1> Considering that Rnd() will always return a value from 0 to 1 (ie: .261093) <1> Thus, Rnd() is going to return a value that's being rounded to an integer between 0 and 1, Rnd() Mod 10 will always return a 0 or 1. <2> how can I make it an integer ? <2> ow <2> Rnd is round... I thoght it was random <2> lol <1> No, it IS random. <1> However, MOD requires an integer, so it's being rounded. <1> To make RND an integer, you would multiply it by the number of values you want it to represent. IE:
<1> Int(Rnd() * 10) gives you 0-9 <1> Int(Rnd() * 100) gives you 0 - 99 <2> ok <2> Thanks <3> I thought of a way around what that guy said <3> you could probably directly use some interrupts to get the pointer position heh heh <3> but good luck on doing that in vb. it isn't easy :) <3> with asm or something <2> damn I'm tired <2> I'm gonna finish this later <2> bye bye all <2> and thanks again <4> is there another way to compare bmp picture other then picture1.point = picture2.point ? <4> can any1 give me some help here ?? i tried to compare and move my mouse to the point.. it works well when it is a active windows.... but when i form1.visible = false... it sends my mouse to 0,0 can any 1 help me <5> Vygoon1986: you could compare the files if you want them EXACTLY the same. if they are images, you'll have to do it pixel by pixel <5> Vygoon1986: and your mouse problem is because you've screwed up your coordinates <5> Vygoon1986: www.nomorepasting.com -> paste your mouse moving call/anything directly related <4> Smirker hold on i need to arrange everything then i paste it in <4> ok.... http://www.nomorepasting.com/paste.php?pasteID=73230 <4> can u just have a look for me.. and tell me whats wrong... <4> smirker u see any problem there ? <6> other than it's ungodly inefficent? <6> perhaps if you DESCRIBED the problem? <4> em ? thats is a biggners work... <6> What is your goal? <4> em.. ok the problem is that it works find when it is a active windows... <4> when i set it to run in the background the mouse will move to 0,0 <4> means if i key in form1.visible = false <6> well your form is invisible then <6> what do you expect? <6> And you're also not calling Prosess() anywhere <4> i expect the code to scan the picture and sends the mouse to where it should be <6> Prosess() is not being called <4> i used a timer to call it <4> i didnt paste it in... <6> mmkay, I'll say this again <6> What is the goal of this code? <6> Don't just repeat what you've said <6> because what you've said made no sense <6> Describe in more words what you're trying to accomplishj <6> accomplish* <4> ok i have a game running.. i use used the alt printscreen to capture the whole game windows... so i need to find the button in the screen... so i scan for it.. after i get the button i get the coordinate so i p*** it to my mouse to move then just click <4> the code i put in is not complete... it just shows the movement part <5> scan for the button? :P <5> using Point() ?! <6> ick <6> That's horrible <5> indeed. <6> but, regardless <6> what is the problem with the code? <5> Vygoon1986: if the button is in the same spot every time, use fixed coordinates. if the button moves, and youre lucky enough that the button has its own handle, using FindWindow() and FindWindowEx() (something like that =\). if not, re***ess your options. <4> http://www.nomorepasting.com/paste.php?pasteID=73231 <4> no it is not fix.... <6> no, it is not fix. you not change. <6> did u read Smirker? <4> it appear randomly any where the can windows... <6> is this a regular windows type of window? <6> or is it a graphical button? <4> graphical <6> What game? <4> so i cannot use findwindowes
<4> *FindWindowEx <6> I'm guessing 'reject' is a picturebox that has a copy of the button image in it? <4> yes <4> reject is the button and screenshoot is the screen <4> so i am finding the button in the screen line by line <5> Vygoon1986: change screenshot's AutoRedraw to TRUE <4> ok <4> then ? <6> Then... try again <5> duh? <4> em ok <4> wait... <4> em i get the y but not the x movement... <4> but the coding should be ok right ? <5> i wouldnt trust your code if my life depended on it <5> go through the code yourself now, and figure it out. <4> em it still have the same problem <5> maybe think about indenting it properly, and understanding the code you've taken from samples <4> when the form1 is the active window it is ok... when it is not it goes crazy <7> omg... Smirker and Teycho thanks for your help <5> hey? <7> i know whats the problem... the code is fine.. just fine... <7> u know whats the problem ? <7> the visual basic program.... <8> how to write Me.Caption = "Libraria Virtuala" + <here i want add crrent date>? <7> i restart the computer and i run it again.. it was PERFECT.. it does what i wan and is what i wanted it to run... <8> don't know to convert now to string <5> poloman_: Date <9> if it's VB6, try _& Now_ <5> or & Date =p <5> if you want the date. <5> TriAngle: congrats. <8> tried but i get an error <5> no poloman_, listen. <8> please write the whole line if u can <5> Me.Caption = "The date is " & Date <8> aha thx <7> Smirker i cant imagine what kind of error is that... <9> ok, have the TV on waiting for Boston Legal to come on, and America's Funniest Videos or whatever just had a guy ripping off some comic a long time ago with a bit about how motorocycles sound like their names.. Yamaha, Suzuki, etc <7> i wasted 3 f day... for this stupid problem <7> and now i know.. the fixing is just restart computer.... <7> fixing = solution <0> and what was the problem <5> FuIru: that would have been both extremely humorous and exceptionally entertaining =p <5> TriAngle: is screenshot's AutoRedraw still TRUE ? <7> yes it is true <7> wait i try if it works in false <9> (Smirker): It was when I first saw it yeeeears ago... not so much when this guy did it <5> ah ok <5> imo <COUNTRY>'s Funniest (optional word) Videos usually have very lame content <7> Smirker weird... y it dun work in false ? <7> what is autoredraw means ?? <5> TriAngle: i'm pretty sure restarting wasn't what fixed it ;) <5> TriAngle: google it. you will learn something that will save you time in the future doing these sorts of things. <7> em... just when u told me to set the autoredraw to true i set it and i saved it... then i run it... it was the same... <7> same error <7> then suddenly the computer restart and i try to rerun again <5> whatever helps you sleep <7> it was fine... fixed... <7> so what was it.. haha... <5> quite frankly, i dont care ;) <7> em thanks anyway <7> finally i am able to get some decent sleep <5> i would still google what i told you to <5> otherwise youve learnt nothing. <7> yupp <7> i am doing it now <7> oh... it means auto restored after window switching <5> there is more to it than that. <7> restore the picture after i do something to the form ? <5> if your window isnt visible, the picture data will be erased <5> therefore you 'scanning' it will be doing nothing
Return to
#vb or Go to some related
logs:
#linux dalnet oddity #chat-world #allnitecafe #india #india #kl #allnitecafe End of Fashion O yeah mp3 Wrong parameter count for fgetcsv()
|
|