lawonama Posted August 3, 2011 Share Posted August 3, 2011 Is it possible when I start the script an image pops-up for 10 seconds and then disappears again. And i have something like an installation. It opens a notepad and writes the instructions. Is it possible even he is ALT+TABbed, it still writes on that notepad? Link to comment Share on other sites More sharing options...
JohnOne Posted August 3, 2011 Share Posted August 3, 2011 SplashImageOn() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Syed23 Posted August 3, 2011 Share Posted August 3, 2011 Is it possible when I start the script an image pops-up for 10 seconds and then disappears again.And i have something like an installation. It opens a notepad and writes the instructions. Is it possible even he is ALT+TABbed, it still writes on that notepad?How about his example? Does it helps you ?SplashImageOn("Image","c:\Temp\autoit9_wall_1280x1024.jpg")Sleep(10000)SplashOff() Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
lawonama Posted August 3, 2011 Author Share Posted August 3, 2011 Yes thanks to you all, but i saw i need to type location like: C:\blala\blala\dektop\img.jpg But if someone else downloads it, then its maybe C:\abab\abab\desktop\downloads\img.jpg. How to find the path of someone elses computer? Is there a way? + Is there a way that it writes on the notepad in the background? I mean while im surfing on internet, it will write in notepad from the background? Link to comment Share on other sites More sharing options...
monoscout999 Posted August 3, 2011 Share Posted August 3, 2011 (edited) About the first... you have several ways to fix this. The important thing is that you provide the image in the following manners.Using FileInstal() and giving a .exe compiled file to others.Using Resources UDF also with a compiled file(i guess(?))Using InetGet to get the image from the internet and you can load it in the folder you want.This is an example using InetGet to get a JPG from the web and putting like bkground picture of the GUI#include <GUIConstantsEx.au3> $image = @Scriptdir&"\test.jpg" If not Fileexists($image) Then Inetget("http://i273.photobucket.com/albums/jj239/StarcraftImages/MCR.jpg",$image) $MainGui = GUICreate("Test", 600, 400) GUICtrlCreatePic($image, 0, 0, 600, 400) GUICtrlSetState(-1, $GUI_DISABLE) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEndAbout the second.. yes you can write to the notepad edit even when it is minimized.see ControlSend() in the help file, i think the example from the help do something like that(write in the notepad). Edited August 3, 2011 by monoscout999 Link to comment Share on other sites More sharing options...
JohnOne Posted August 3, 2011 Share Posted August 3, 2011 If you want to physically write into Notepad, then you should look at ControlSend(), if you want to just write a .txt file than look at FileWrite(). You should also take the time to read aboy @ScriptDir @*Dir macros. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Blue_Drache Posted August 3, 2011 Share Posted August 3, 2011 (edited) It is neat to see the computer type out the instructions, but it's more practical to just have it open an pre-written text file. Edited August 3, 2011 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
lawonama Posted August 3, 2011 Author Share Posted August 3, 2011 Can someone please give me an example of ControlSend? Just a little one would be fine. + also how to do with ControlSend that he sends F1 or F2?? Link to comment Share on other sites More sharing options...
Blue_Drache Posted August 3, 2011 Share Posted August 3, 2011 (edited) Can someone please give me an example of ControlSend? Just a little one would be fine.That's a controlclick example, but controlsend works exactly the same way.RTFM. http://www.autoitscript.com/autoit3/docs/functions/ControlSend.htm Edited August 3, 2011 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
lawonama Posted August 3, 2011 Author Share Posted August 3, 2011 (edited) Thanks! Just one question more, is it possible to make colors in: SplashTextOn ?? Without any include... Edited August 3, 2011 by lawonama Link to comment Share on other sites More sharing options...
BrewManNH Posted August 3, 2011 Share Posted August 3, 2011 Thanks! Just one question more, is it possible to make colors in:SplashTextOn ??Without any include...No.Next time try it yourself BEFORE asking if it can be done. It doesn't help you learn if you're always going to come here and ask without at least trying for yourself. Also, as said before, read the help file. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now