Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 16,005 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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