Jump to content
Sign in to follow this  
denek14w

help

Recommended Posts

denek14w

Can someone help me to write script: autostart program who will show picture for 10 s always when the computer will run

Share this post


Link to post
Share on other sites
taietel

Welcome to the forum, denek14w. First, read the first link in my signature, then use the help file (it's more than enough to make you started), then try to make the program. If it's not working, post the code and we will gladly help you! :)

Regards,

taietel

Share this post


Link to post
Share on other sites
denek14w

But i don't know anything, can u help me from 0?

Share this post


Link to post
Share on other sites
taietel

If you don't know anything, don't you think it's time to learn though? I've started using AutoIt by reading the help file and the examples. Even now, it's a precious resource!

Share this post


Link to post
Share on other sites
smartee

hi denek14w,

Welcome to the forums! ;)

The Wiki and help-file(press F1 from SciTE) are great starting points :)

You may be interested in these functions, SplashImageOn(), Sleep(), SplashOff().

Search for them in the help-file and try hatching something together, if you get stuck, post back with your code.

Good luck, ;)

-smartee

Share this post


Link to post
Share on other sites
GEOSoft

Pay attention to what the others have said about help resources and follow that advice.

After you create the script you will have to compile it. Then you need to create a shortcut to the compiled file and put that in the Start Menu>> Startup folder OR create an entry for the compiled file in the registry under the Run key.

Here is something to get you started. Note that I wait for the Task Bar to be loaded before the splash screen starts to display. That's to allow for the potential of your script starting too soon.

While NOT WinExists("[Class:Shell_TrayWnd]")
    Sleep(20)
WEnd

SplashImageOn("My Window", "C:\some\path\somefile.jpg") ;; See the help file for more parameters for the size/position and set the FULL path to your image in here.
$iStart = TimerInit()
While TimerDiff($iStart) <= 10000
    Sleep(10)
WEnd
SplashOff()

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×