Cha0sBG Posted April 18, 2008 Posted April 18, 2008 Hello Members Of AutoIt forums i was wondering if someone coud help me ? well i want to make a script for a game etc... and i want when i double click on the program to first show a picture and under the picture a proces bar the proces bar to load for about 5 secs if someone helps me i will be verry grateful Btw Sorry For My Bad English Have Questions About GUI (Graphical User Interface) ? Post Them Here :GUI Help And Support ForumHave Questions About General AutoIt ? Post Them Here : General Help And Support ForumNew To AutoIt ? Be Shure To Check Out The FaQ's (Frequently Asked Questions) Or FaQ ¹ There You May Find Great Help That Will Guide You True The Wonderful Programming Language AutoItOthere Good Place To Get Some Knolage Of AutoIt Is The Example Script ForumNotice A Bug ? Please Go And Report it At Bug Report Section And Help The Devolepers Of AutoIt Update And Fix The Programming LanguageWant To Thank The People For This Great Forum And Programming Language ? Then DonateWhen You Found The Answer Your Looking For Please Add [Resolved] To The Thread's Name That Will Show Otheres That You Have Found What Your Looking For And They Whount Have To Enter The Thread.
Cha0sBG Posted April 18, 2008 Author Posted April 18, 2008 please help me ;( i realy need these kind of codes Have Questions About GUI (Graphical User Interface) ? Post Them Here :GUI Help And Support ForumHave Questions About General AutoIt ? Post Them Here : General Help And Support ForumNew To AutoIt ? Be Shure To Check Out The FaQ's (Frequently Asked Questions) Or FaQ ¹ There You May Find Great Help That Will Guide You True The Wonderful Programming Language AutoItOthere Good Place To Get Some Knolage Of AutoIt Is The Example Script ForumNotice A Bug ? Please Go And Report it At Bug Report Section And Help The Devolepers Of AutoIt Update And Fix The Programming LanguageWant To Thank The People For This Great Forum And Programming Language ? Then DonateWhen You Found The Answer Your Looking For Please Add [Resolved] To The Thread's Name That Will Show Otheres That You Have Found What Your Looking For And They Whount Have To Enter The Thread.
sigil Posted April 18, 2008 Posted April 18, 2008 Cha0sBG said: please help me ;( i realy need these kind of codesUse AdlibEnable() to check to see if you doubleclicked the program.Use ProgressOn() to make a progress bar.
Cha0sBG Posted April 18, 2008 Author Posted April 18, 2008 sigil said: Use AdlibEnable() to check to see if you doubleclicked the program.Use ProgressOn() to make a progress bar.well by "DoubleClick" i mean starting the program but never mindfor the second i don't get it :Scuz i want when i start program a picture to apear and jus under the picture a progress barbut don't know how to do it :S and it didn't get much clear when you told it (sorry if i offended you) Have Questions About GUI (Graphical User Interface) ? Post Them Here :GUI Help And Support ForumHave Questions About General AutoIt ? Post Them Here : General Help And Support ForumNew To AutoIt ? Be Shure To Check Out The FaQ's (Frequently Asked Questions) Or FaQ ¹ There You May Find Great Help That Will Guide You True The Wonderful Programming Language AutoItOthere Good Place To Get Some Knolage Of AutoIt Is The Example Script ForumNotice A Bug ? Please Go And Report it At Bug Report Section And Help The Devolepers Of AutoIt Update And Fix The Programming LanguageWant To Thank The People For This Great Forum And Programming Language ? Then DonateWhen You Found The Answer Your Looking For Please Add [Resolved] To The Thread's Name That Will Show Otheres That You Have Found What Your Looking For And They Whount Have To Enter The Thread.
sigil Posted April 18, 2008 Posted April 18, 2008 Cha0sBG said: well by "DoubleClick" i mean starting the program but never mindfor the second i don't get it :Scuz i want when i start program a picture to apear and jus under the picture a progress barbut don't know how to do it :S and it didn't get much clear when you told it (sorry if i offended you)You can learn more about how to do things (like using ProgressOn()) by going to the AutoIt Help File. While you're editing your script, press F1 and the help screen will come up.
Swift Posted April 18, 2008 Posted April 18, 2008 Try using GUICreate() To create a window, GUICtrlCreateProgress(), GUICtrlCreatePic(), and then use: GUISetState().
newbiescripter Posted April 18, 2008 Posted April 18, 2008 (edited) Quote well by "DoubleClick" i mean starting the program but never mind for the second i don't get it :S cuz i want when i start program a picture to apear and jus under the picture a progress bar but don't know how to do it :S and it didn't get much clear when you told it (sorry if i offended you) Well if you just want to see when the game gets opened then you can just use ProcessExists or ProcessWait (takes less CPU) in a loop.. a little example below: #include <GUIConstants.au3> While 1 ProcessWait("notepad.exe") GUICreate("Loading...",350,85,-1,-1) GUICtrlCreatePic(@ScriptDir & "\picture1.jpg",0,0,350,60) $progressbar = GUICtrlCreateProgress(0,60,350,25) GUISetState () For $i = 10 to 100 step 10 sleep(500) ProgressSet( $i, $i & " percent") GUICtrlSetData ($progressbar,$i) Next GUIDelete() Do Sleep(1000) Until ProcessExists("notepad.exe") = 0 WEnd Above is a little expample that you might could use, but if it is your own program you could just create the progress bar in the beginning of your code. Regards Edited April 19, 2008 by newbiescripter
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