Jump to content
Sign in to follow this  
bhargavik

gui

Recommended Posts

bhargavik

#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

Share this post


Link to post
Share on other sites
PhoenixXL

Can you explain further?

Edit: if you want only text without gui, check

Edited 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.

Share this post


Link to post
Share on other sites
bhargavik

i need like this

but its coming like this

post-78203-0-35547300-1367303048_thumb.p

post-78203-0-50743900-1367303141_thumb.p

Share this post


Link to post
Share on other sites
Xenobiologist

#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

Share this post


Link to post
Share on other sites
Xenobiologist

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

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  

×