How to emulate CTRL+F key in CELX script ?

All about writing scripts for Celestia in Lua and the .cel system
Topic author
jdou
Posts: 137
Joined: 24.04.2004
With us: 20 years 7 months
Location: France

How to emulate CTRL+F key in CELX script ?

Post #1by jdou » 14.11.2005, 22:02

Hi all,

From the "show-azimuth-elevation_v1.3.celx" written by Harald Schmidt, I created a new celx file to simulate a "Stellarium like behaviour" in Celestia.

So, I changed and added in the source file :
- The keyboard input of the Longitude and Latitude values of the observer place wanted
- the Celestia:synchronous(...) (equivalent to Y)
- the Celestia:gotolonglat(...)
- the Celestia:gotosurface(...) (equivalent to Ctrl+G)

All works ok :)

But, I dont know how to set the arrows keys behaviour as if I was typed Ctrl+F ? :(

Thanks for your help :D

Jdou
P4c 3.0Ghz, 1 Gb, XP sp1, GeForce FX5700u 128 Mb, NV 93.71, Celestia 1.5.0pre2, BMNG 64k

Topic author
jdou
Posts: 137
Joined: 24.04.2004
With us: 20 years 7 months
Location: France

Post #2by jdou » 17.11.2005, 18:04

Hi all,

Forget what I asked in my first post !
Finally I found this key was already in the Harald script :oops:

-------------------------------------------------------------------
Edit 11/22/05: No, I'm wrong again !
The Harald script force only the horizon to be horizontal :(

Is it possible to set the Celestia variable "altAzimuthMode" from a CELX script ?
P4c 3.0Ghz, 1 Gb, XP sp1, GeForce FX5700u 128 Mb, NV 93.71, Celestia 1.5.0pre2, BMNG 64k


Return to “Scripting”