Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,534 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 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 | chip programmers | 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