Gamestudio Links
Zorro Links
Newest Posts
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (AndrewAMD, LoT), 11,752 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 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