Sign in to follow this  
Followers 0
AlmarM

MsgBox Values!

8 posts in this topic

#1 ·  Posted (edited)

Hey,

I made this sollution for MsgBox Values.

MsgBoxValues.au3

#comments-start
This script was made by:
                        AlmarM
He was sick of searching all those MsnBox Numbers.

$p<Variable>            =       pressed (p = Pressed)
$r<Variable>            =       remark (r = Remark)
$i<Variable>            =       icon (i = Icon)
$d<Variable>            =       default (d = Default)
$m<Variable>            =       misc (m = Misc)
#comments-end

Global Const $pOK                       =       1
Global Const $pCANCEL                       =       2
Global Const $pABORT                        =       3
Global Const $pRETRY                        =       4
Global Const $pIGNORE                       =       5
Global Const $pYES                      =       6
Global Const $pNO                       =       7
Global Const $pTRY_AGAIN                        =       10
Global Const $pCONTINEU                     =       11

Global Const $rOK                       =       0
Global Const $rOK_Cancel                        =       1
Global Const $rABORT_RETRY_IGNORE                       =       2
Global Const $rYES_NO_CANCEL                        =       3
Global Const $rYES_NO                       =       4
Global Const $rRETRY_CANCEL                     =       5
Global Const $rCANCEL_TRYAGAIN_CONTINUE                     =       6

Global Const $iNO_ICON                      =       0
Global Const $iSTOP_ICON                        =       16
Global Const $iQUESTION_ICON                        =       32
Global Const $iEXCLAMATION_ICON                     =       48
Global Const $iINFORMATION_ICON                     =       64

Global Const $dFIRST_BUTTON                     =       0
Global Const $dSECOND_BUTTON                        =       256
Global Const $dTHIRD_BUTTON                     =       512

Global Const $mNOTING                       =       0
Global Const $mTOP_MOST                     =       262144
Global Const $mRIGHT_JUSTIFIED                      =       524288

-AlmarM-

Edited by AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

This was just done by KentonBomb last week...

http://www.autoitscript.com/forum/index.ph...sgbox++constant

Even better, if you just include Constants.au3 you get all of these...

; ====================================================================================================

===========================

; Message Box Constants

; ====================================================================================================

===========================

; Indicates the buttons displayed in the message box

Global Const $MB_OK = 0 ; One push button: OK

Global Const $MB_OKCANCEL = 1 ; Two push buttons: OK and Cancel

Global Const $MB_ABORTRETRYIGNORE = 2 ; Three push buttons: Abort, Retry, and Ignore

Global Const $MB_YESNOCANCEL = 3 ; Three push buttons: Yes, No, and Cancel

Global Const $MB_YESNO = 4 ; Two push buttons: Yes and No

Global Const $MB_RETRYCANCEL = 5 ; Two push buttons: Retry and Cancel

; Displays an icon in the message box

Global Const $MB_ICONHAND = 16 ; Stop-sign icon

Global Const $MB_ICONQUESTION = 32 ; Question-mark icon

Global Const $MB_ICONEXCLAMATION = 48 ; Exclamation-point icon

Global Const $MB_ICONASTERISK = 64 ; Icon consisting of an 'i' in a circle

; Indicates the default button

Global Const $MB_DEFBUTTON1 = 0 ; The first button is the default button

Global Const $MB_DEFBUTTON2 = 256 ; The second button is the default button

Global Const $MB_DEFBUTTON3 = 512 ; The third button is the default button

; Indicates the modality of the dialog box

Global Const $MB_APPLMODAL = 0 ; Application modal

Global Const $MB_SYSTEMMODAL = 4096 ; System modal

Global Const $MB_TASKMODAL = 8192 ; Task modal

; Indicates miscellaneous message box attributes

Global Const $MB_TOPMOST = 262144 ; top-most attribute

Global Const $MB_RIGHTJUSTIFIED = 524288 ; right-justified title and text

; Indicates the button selected in the message box

Global Const $IDTIMEOUT = -1 ; The message box timed out

Global Const $IDOK = 1 ; OK button was selected

Global Const $IDCANCEL = 2 ; Cancel button was selected

Global Const $IDABORT = 3 ; Abort button was selected

Global Const $IDRETRY = 4 ; Retry button was selected

Global Const $IDIGNORE = 5 ; Ignore button was selected

Global Const $IDYES = 6 ; Yes button was selected

Global Const $IDNO = 7 ; No button was selected

Global Const $IDTRYAGAIN = 10 ; Try Again button was selected

Global Const $IDCONTINUE = 11 ; Continue button was selected

Edited by weaponx

Share this post


Link to post
Share on other sites

Oh :S

Didnt knew KentonBomb did it!

Sorry KentonBomb!!


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

usefull :)

Share this post


Link to post
Share on other sites

@ All

I didnt knew KentonBomb had made this first!.

So acualy all credits go to him!


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

There are also a couple of MsgBox builders out there where you just input the title and the text then select the icon, buttons to use, default button &etc. and it will build the MsgBox for you. I have one in Project Express but I'm not about to separate that code. It's part of a major component builder and builds the MBs for different scripting languages.


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

You can use CodeWizard. BTW: Good Job


code

Share this post


Link to post
Share on other sites

You can use CodeWizard. BTW: Good Job

That's the one I couldn't remember the name of.

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  
Followers 0