Gamestudio Links
Zorro Links
Newest Posts
Stooq now requires an API key
by k_ivan. 06/10/26 14:39
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
Lapsa's very own thread
by Lapsa. 06/08/26 22:41
Zorro 3.01 recoded MMI function issue
by TipmyPip. 06/04/26 05:44
SGT_FW
by Aku_Aku. 05/31/26 11:05
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (alx, TipmyPip, AndrewAMD, Quad, 1 invisible), 3,180 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Seraphinang, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Delphi SDK - How to use the sheduler without an entity? #321521
04/29/10 22:02
04/29/10 22:02
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Hi, I want to use the sheduler from the Delphi SDK and hence have to use the function

Proc_Add_Sch(entity, event:Pointer);

But what if I have a procedure like the following that is not connected to an entity?

procedure updateMouse;
begin
ev.mouse_pos.x := ev.mouse_cursor.x;
ev.mouse_pos.y := ev.mouse_cursor.y;
wait(1);
end;

Thanks for your help!

Re: Delphi SDK - How to use the sheduler without an entity? [Re: PadMalcom] #321969
05/03/10 21:59
05/03/10 21:59
Joined: Dec 2003
Posts: 521
LazyDog Offline
User
LazyDog  Offline
User

Joined: Dec 2003
Posts: 521
Sorry for the delay in replying.... been very busy.

I don't see a problem calling it like this:

Proc_Add_Sch(Nil,YourEvent);

One thing to watch out for is if you use more than 1 event without an entity and try to call Proc_Remove_Sch(Nil) it will remove the first event added that had "Nil" passed when calling Proc_Add_Sch.

when I wrote the scheduler I never thought about events without operationg on an entity. I may look at adding support for that directly.


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: Delphi SDK - How to use the sheduler without an entity? [Re: LazyDog] #322004
05/04/10 10:16
05/04/10 10:16
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Hi LazyDog,
no problem, thanks for your reply. That is exactly the problem I am dealing with at the moment since I use many procedures using a wait which are not attached to an entity.

I'm currently solving this problem by having one main loop calling each procedure each frame instead of starting many "small" loops during the game. But it would be great to have some kind of pointer to a scheduled procedure that you can work with (remove it from scheduler, ...).

Re: Delphi SDK - How to use the sheduler without an entity? [Re: PadMalcom] #322305
05/05/10 21:11
05/05/10 21:11
Joined: Dec 2003
Posts: 521
LazyDog Offline
User
LazyDog  Offline
User

Joined: Dec 2003
Posts: 521
when I get the sdk updated for the latest release of A7 I'll add support for procedures without entities.


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: Delphi SDK - How to use the sheduler without an entity? [Re: LazyDog] #322333
05/06/10 07:03
05/06/10 07:03
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Cool, thanks. Please do not forget the "pan_setcolor" function, this one is important, too wink

Re: Delphi SDK - How to use the sheduler without an entity? [Re: PadMalcom] #322445
05/06/10 23:41
05/06/10 23:41
Joined: Dec 2003
Posts: 521
LazyDog Offline
User
LazyDog  Offline
User

Joined: Dec 2003
Posts: 521
what about pan_setcolor?


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: Delphi SDK - How to use the sheduler without an entity? [Re: LazyDog] #322598
05/08/10 08:49
05/08/10 08:49
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe

Re: Delphi SDK - How to use the sheduler without an entity? [Re: PadMalcom] #322609
05/08/10 12:18
05/08/10 12:18
Joined: Dec 2003
Posts: 521
LazyDog Offline
User
LazyDog  Offline
User

Joined: Dec 2003
Posts: 521
whenever there's a new release I go through the entire A7 SDK and make the additions that are necessary to the Delphi SDK. I believe I already added that (I'm in the BETA program and I'm updating the Delphi SDK as each beta is released--I just need to add the changes from the last beta to the newest release)


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: Delphi SDK - How to use the sheduler without an entity? [Re: LazyDog] #328036
06/10/10 06:01
06/10/10 06:01
Joined: Oct 2009
Posts: 16
valledupar COLOMBIA
T
tban Offline
Warez kiddie
tban  Offline
Warez kiddie
T

Joined: Oct 2009
Posts: 16
valledupar COLOMBIA
Excellent!!!!!!!!


Moderated by  TWO 

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