Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / copy mouse movements??

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 22nd Jul 2006 23:41 Edited at: 22nd Jul 2006 23:42
how would i copy my mouse movements,what im trying to do is draw a picture,then have dbp copy the mouse movements. & then run another dbp program to draw the picture i made.


???
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 23rd Jul 2006 01:16
Just keep storing the Mousex() Mousey() in an array. The write a program that moves the mouse pointer to those coordinates, one after another. Like Dot to dot art.

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 23rd Jul 2006 13:23
Yeah he's right but dot is slow so try box.

David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 23rd Jul 2006 16:56
ok,ill try that,thats really exactly what i was thinking but i dont know anything about arrays.a little over my head,anyway ill see if i can figure them out.

thanks!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Jul 2006 19:27
use line instead and connect the new dot to the old dot, because you can move the mouse faster than it can update.

"Using Unix is the computing equivalent of listening only to music by David Cassidy" - Rob Pike
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 23rd Jul 2006 23:37
anyone know where i can get a small example on making an array,& using it??

ive looked at the example that comes with dbp but i dont understand it.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Jul 2006 00:27 Edited at: 24th Jul 2006 00:27


"Using Unix is the computing equivalent of listening only to music by David Cassidy" - Rob Pike
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 26th Jul 2006 13:57
Phaelax that's a Type array... maybe a bit complex? That did teach me something though! Now I can make ghost cars!

Anyway try this, I just made it. It's my first tutorial:
http://forum.thegamecreators.com/?m=forum_view&t=84908&b=7

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 26th Jul 2006 17:55
I used a UDT because I think DB has problems with growing/shrinking arrays when theres more than 1 dimension. Besides, he should learn about UDT's and how useful they can be.

"Using Unix is the computing equivalent of listening only to music by David Cassidy" - Rob Pike
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 26th Jul 2006 18:33
i appreciate the code help phaelax,but i dont understand your code example.maybe if u added comments as to what each line means...
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 26th Jul 2006 21:11
This is how you would use Phaelax's function. I added some comments.



Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 27th Jul 2006 00:07
David ignored my tutorial...

David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 27th Jul 2006 00:10
Quote: "David ignored my tutorial..."


no,i actually saved it on my hd,stuff like that i save & study.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 27th Jul 2006 00:17
oh ok then

Login to post a reply

Server time is: 2024-11-26 16:42:19
Your offset time is: 2024-11-26 16:42:19