Switch to full style
Post a reply

Animation with MortScript

Wed Sep 26, 2012 7:31 am

Hello again, my dear friends,

I have follow idea:

In system information I prepare some ini files with different data. One additional button available also. Then I click this button, loaded new ini menu, and I see new data.

text of ini:

GLOBALSETTINGS
ShowMessage = 0
QuitOnDoubleClick = no
X = 0
Y = 0
Width = 800
Height = 480
Arrange = No
#BackgroundBitmap =10
BackgroundBitmap = 1..BMP
StartUpAnimation = NoAnimation
ShutDownAnimation = NoAnimation
Accelerated = yes
TopMost = no

BITMAPBUTTON
# small button
x = 0
y = 0
Width =20
Height = 480
Offset = 2
NewIni = Off_9.ini
ShutDownAnimation = NoAnimation

Okay,

Mortscript hafe function MouseClick.

my script is:

Run(fld \"1\1\OFF.EXE")
# 9
sleep(1000)
MouseClick(0,0)

# 8
sleep(1000)
MouseClick(0,0)

# 7
sleep(1000)
MouseClick(0,0)

# 6
sleep(1000)
MouseClick(0,0)

# 5
sleep(1000)
MouseClick(0,0)
...

In the theory it's must work.

But in the practice... NOT. :)

Wed Sep 26, 2012 7:48 am

This will work in practice, I use something similar to display a splash screen for a few seconds in my device unlocks.

You could download say, Easy Shell and look to see how I control the system information screens with mortscript.

Might be a bit slow for animation though.
Post a reply