bhargavik Posted April 30, 2013 Share Posted April 30, 2013 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Example1() Func Example1() Local $msg,$font GUICreate("Information To Note",500, 200) ; will create a dialog box that when displayed is centered GUICtrlCreatePic(@ScriptDir & 'image.jpg', 0, 0, 500, 200) $font = "Comic Sans MS" GUISetFont(10.5, 400, 2, $font) GUISetState() ; will display an empty dialog box GUICtrlCreateLabel("A series of reliability test is about to start on this computer,", 10, 60) GUICtrlCreateLabel("Pls. ensure to insert a data CD / DVD media in the optical drive, if present,", 10, 80) GUICtrlCreateLabel("Also ensure that anti-virus software is not running on the background", 10, 100) GUICtrlCreateLabel("Do not touch the KBD and mouse till the tests are executed", 10, 120) Sleep(6000) Local $guipos = 'Information To Note' Local $guip = WinGetPos($guipos) Local $gpos1 = $guip[0]+490 Local $gpos2 = $guip[1]+10 MouseMove($gpos1,$gpos2) MouseClick("left") While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() EndFunc i need to print only the text .... in that text i no need to get the backcolor for each text... how to get that Link to comment Share on other sites More sharing options...
PhoenixXL Posted April 30, 2013 Share Posted April 30, 2013 (edited) Can you explain further?Edit: if you want only text without gui, check Edited April 30, 2013 by PhoenixXL My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
bhargavik Posted April 30, 2013 Author Share Posted April 30, 2013 i need like this but its coming like this Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 30, 2013 Share Posted April 30, 2013 expandcollapse popup#include #include Example1() Func Example1() Local $msg,$font GUICreate("Information To Note",500, 200) ; will create a dialog box that when displayed is centered GUICtrlCreatePic(@ScriptDir & '/image.jpg', 0, 0, 500, 200) $font = "Comic Sans MS" GUISetFont(10.5, 400, 2, $font) GUISetState() ; will display an empty dialog box GUICtrlCreateLabel("A series of reliability test is about to start on this computer,", 10, 60) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetColor(-1, 0xff0000) GUICtrlCreateLabel("Pls. ensure to insert a data CD / DVD media in the optical drive, if present,", 10, 80) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetColor(-1, 0xff0000) GUICtrlCreateLabel("Also ensure that anti-virus software is not running on the background", 10, 100) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetColor(-1, 0xff0000) GUICtrlCreateLabel("Do not touch the KBD and mouse till the tests are executed", 10, 120) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetColor(-1, 0xff0000) Sleep(6000) Local $guipos = 'Information To Note' Local $guip = WinGetPos($guipos) Local $gpos1 = $guip[0]+490 Local $gpos2 = $guip[1]+10 MouseMove($gpos1,$gpos2) MouseClick("left") While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() EndFunc Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
bhargavik Posted April 30, 2013 Author Share Posted April 30, 2013 thank u soo much ...... Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 30, 2013 Share Posted April 30, 2013 No problem! Besides, the MouseMove and Click action can be done with other functions quite a bit easier. Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times 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