Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 3,464 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Simple automatic mouse click #148121
08/15/07 19:56
08/15/07 19:56
Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
dennis Offline OP
Member
dennis  Offline OP
Member

Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
Hi!

I want to control my mouse cursor without using the mouse....

I can change the mouse position with mouse_pos.x/y.

The problem is how to perform a mouse click without using the mouse?
(e.g. "mouse_pos.x = 10; mouse_pos.y = 20; Mouse_Click();")

Of course I could go throught each panel and ask if the mouse cursor is among its boundaries....but that would be difficult (I would have to check wheter the panel is visible, check its layer.......)

I hope someone can help....

Re: Simple automatic mouse click [Re: dennis] #148122
08/16/07 10:50
08/16/07 10:50
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
maby use mouse_ent and plase a invisible entity over the panel
i dont know a other way

mouse_ent
This pointer gives the entity the mouse pointer is over (if any).

Type:
Entity*, read-only
Example:
function maus_entkill()
{
if(mouse_left == 1) // left Mousebutton pressed?
{
if(mouse_ent)
{
ent_remove(mouse_ent); // remove clicked Entity
}
}
}


"empty"
Re: Simple automatic mouse click [Re: flits] #148123
08/16/07 17:34
08/16/07 17:34
Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
dennis Offline OP
Member
dennis  Offline OP
Member

Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...

Well...I think that would work fine.

Thanks, flits!

Re: Simple automatic mouse click [Re: dennis] #148124
08/16/07 17:55
08/16/07 17:55
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
np thanks the manaul;


"empty"

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1