Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/13/2013 in all areas

  1. Sure, Melba23 never sleeps. UEZBr,
    1 point
  2. guinness

    Gui with slim border

    I also corrected the structure of your example, as this is how I would do it personally. 0_- #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Example() Func Example() Local $hGUI = GUICreate('', 465, 135, Default, Default, BitOR($WS_THICKFRAME, $WS_POPUP)) GUISetState(@SW_SHOW, $hGUI) GUIRegisterMsg($WM_NCHITTEST, 'WM_NCHITTEST') While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete($hGUI) EndFunc ;==>Example ; If you want the GUI to be moved as well. Func WM_NCHITTEST($hWnd, $iMsg, $wParam, $lParam) #forceref $hWnd, $iMsg, $wParam, $lParam Return $HTCAPTION EndFunc ;==>WM_NCHITTEST
    1 point
  3. Trong, Use the Sound.au3 UDF. Call _SoundStatus to check at intervals (AdlibRegister perhaps) and then _SoundPlay again if the return is "stopped". M23 P.S. Can you stop using coloured fonts please - the forum standard is quite adequate.
    1 point
  4. Replace your "$result = $sqlCon.execute ($strSQL)" line with a "Msgbox(0,"",$strSQL)" and look over the statement you've built. I t appears to me it is missing a (required) space.
    1 point
  5. Mat

    Fonts for programming

    Source Code Pro
    1 point
  6. Well i guess it doesn't really matter that much in interpreted/dynamic languages, besides compile-time checking of assignment to constant variables (does autoitcheck do this?). It's useful to avoid name clashing and give symbolic meaning / clues to what a variable does. Also, of course, it should be used on constants, which autoit, to my understanding, is able to optimize. In compiled languages, if you explicitly state the constness of variables (and the compiler can guarantee this), the compiler is able to do a lot of optimizations on code, registers, memory layouts, copying (specifically able to do reference passing instead of copying parameters) etc. I do think it's an excellent coding practice in dynamic languages though, to make everything you don't intend to change immutable, both because of symbolism but also transitions to/from other languages.
    1 point
  7. There are many uses of Global variables in most of the included UDFs, definitely not a no-no to the devs. Every XXconstants.au3 file is nothing but global variables. It all depends on what you need the variable for that decides its scope.
    1 point
×
×
  • Create New...