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.

DarkBASIC Professional Discussion / if mouseclick() =1 problem!?

Author
Message
TheGreenCow
22
Years of Service
User Offline
Joined: 2nd Sep 2003
Location:
Posted: 16th Sep 2003 23:17
Whenever I use the command If mouseclick() = 1 ... endif
my computer freezes after the program is done and when i reboot and I open the file again, the section form if to endif is missing, even though I saved and all the other new additions are there!
I am using windows XP with the latest upgrades, so is my computer causing the problem, or is DBPro, or am I causing it?

the only green cow of the Draconum High Council
Looking for a 3D dude
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 17th Sep 2003 00:34
not sure how to answer this because people are using XP,2000,98, ME etc etc with dbp and MOUSECLICK and I haven't heard of this problem. Maybe someone here knows of a bug (or potential bug) concerning these issues. Post your code so the community can see what you are doing exactly

-RUST-
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 17th Sep 2003 00:53
My programs use Mouseclick() routines and it has never been a problem.

Please include a larger section of code and i'm sure the problem will be clear to someone.

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 17th Sep 2003 01:35
don't know about the missing code but...

you should do something like this if you are just wanting to detect a mouseclick, and not a constant holding down of the mouse button...



Otherwise you may find something that should happen once going ballistic, possibly even crashing your PC

TheGreenCow
22
Years of Service
User Offline
Joined: 2nd Sep 2003
Location:
Posted: 21st Sep 2003 04:51
here is my shooting code.
Xrot, Yrot, and Zrot are how the character is facing, Xpos,Ypos,and Zpos are the characters position, ypos is +150 because the character is 150 tall.
Thank you
P.s. this gun is supposed to be automatic, so it won't work if I have to use it for each mouseclick, but if that is the only way, then I will gladly use it.

the only green cow of the Draconum High Council
Looking for a 3D dude
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Sep 2003 18:19
That code is okay here.


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 21st Sep 2003 20:55
Usual questions
are you using dx9?

>>TerraByte. Putting the Byte back into Terragramming<< Life is like a sheet sandwich you take a bigger piece everyday.
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Sep 2003 00:47
And Patch 5.1 ?


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
TheGreenCow
22
Years of Service
User Offline
Joined: 2nd Sep 2003
Location:
Posted: 22nd Sep 2003 22:53
I am using dx9 and the Alienware Demo.
Any other questions?

the only green cow of the Draconum High Council
Looking for a 3D dude
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Sep 2003 13:06
Next question, what's the code executed when mouse is clicked? It could be running something your card doesn't support.

Login to post a reply

Server time is: 2026-07-25 07:01:47
Your offset time is: 2026-07-25 07:01:47