Gamestudio Links
Zorro Links
Newest Posts
IBKR datasave problem
by BrainSailor. 06/13/25 09:42
Marking Exit trades
by jcl. 06/11/25 14:02
SGT_FW
by Aku_Aku. 06/02/25 17:54
The Perfect Adventure Game
by tian. 05/27/25 04:32
ADX values
by Yogpot. 05/25/25 15:11
Transfer of Lots between Algos?
by Jack_Zodiac. 05/25/25 09:30
AUM Magazine
Latest Screens
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Zeal-X2
Who's Online Now
2 registered members (AndrewAMD, Quad), 507 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
WardyJoubertIII, NewbieZorro, Squarei, tian, Yogpot
19139 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How and when does work the on_mouse_left? #488548
01/18/25 10:45
01/18/25 10:45
Joined: Sep 2009
Posts: 1,017
Budapest
Aku_Aku Offline OP
Serious User
Aku_Aku  Offline OP
Serious User

Joined: Sep 2009
Posts: 1,017
Budapest
How and when does work the on_mouse_left?
In the Manual:
Quote
function mouse_event(code)
{
if (code == 280)
{
printf("left key pressed!");
}
if (code == 281)
{
printf("right key pressed!");
}
if (code == 282)
{
printf("middle key pressed!");
}
}
...
void main() {
...
on_mouse_left = mouse_event;
on_mouse_right = mouse_event;
on_mouse_middle = mouse_event;
...

Well, I tried this and didn't worked.
Then I added this line:
Code
    enable_mouse = 2;
and didn't worked.
Then I added this line:
Code
    mouse_mode = 4;
and didn't worked.
Then I added this line:
Code
    on_mouse_left = mouse_event;
and didn't worked.

What preconditions must to be fulfilled to get this into work?

Re: How and when does work the on_mouse_left? [Re: Aku_Aku] #488550
01/20/25 09:52
01/20/25 09:52
Joined: Jun 2008
Posts: 47
Russia Stavropol
VoroneTZ Online
Newbie
VoroneTZ  Online
Newbie

Joined: Jun 2008
Posts: 47
Russia Stavropol
idk, all works fine
8.47.1 pro

[Linked Image]

Last edited by VoroneTZ; 01/20/25 09:53.
Re: How and when does work the on_mouse_left? [Re: VoroneTZ] #488572
01/30/25 16:09
01/30/25 16:09
Joined: Sep 2009
Posts: 1,017
Budapest
Aku_Aku Offline OP
Serious User
Aku_Aku  Offline OP
Serious User

Joined: Sep 2009
Posts: 1,017
Budapest
Well... At my side nothing.
Thank you for the feedback.


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