Creating an autoexec...

What is a autoexec file and what does it do?

A autoexec file is a set of commands that are automatically executed when you start up your application.

This is a convenient place to put commands that determine the way your application will behave, for example, you can tell your application to hide the control panel and show the main menu or to open at a certain size or position.

To create a autoexec script navigate to your code button, select new + Script (using xbasic editor) create your script and then save it as autoexec .




  Example: A 800x600 window centered on the screen no control panel or status bar

:controlpanel.hide()
:statusbar.hide()
screen_width = ui_info(0)
screen_height = ui_info(1)
:A5.width = 800
:A5.height = 600
:A5.top = (screen_height - :a5.height)/2
:A5.left = (screen_width - :a5.width)/2

     

 

Suggest a topic:

E-mail :
Topic :

 
Product Search :  
Resources:
Dzine Articles :

 

Article Search :