Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/27/2014 in all areas

  1. For better understanding #include <GUIConstantsEx.au3> #include <EditConstants.au3> #include <WindowsConstants.au3> Global Const $UDM_SETACCEL = 1131 Global Const $UDM_SETRANGE32 = 1135 Global $UDACCEL = DllStructCreate("UINT nSec1; UINT nInc1;UINT nSec2; UINT nInc2;UINT nSec3; UINT nInc3") Global $pUDACCEL = DllStructGetPtr($UDACCEL) DllStructSetData($UDACCEL, "nSec1", 0) ; time in seconds DllStructSetData($UDACCEL, "nInc1", 10) ; jump width 10 DllStructSetData($UDACCEL, "nSec2", 3) ; after 3 seconds DllStructSetData($UDACCEL, "nInc2", 100) ; jump width 100 DllStructSetData($UDACCEL, "nSec3", 6) ; after 6 seconds DllStructSetData($UDACCEL, "nInc3", 1000) ; jump width 1000 $hGUI = GUICreate('Test Updown', 220, 100, -1, -1) $hInput = GUICtrlCreateInput('50', 25, 25, 60, 22);, $ES_READONLY) $hUpDown = GUICtrlCreateUpdown($hInput) GUICtrlSendMsg(-1, $UDM_SETRANGE32, 0, 20000) ; range from 0 to 20000 GUICtrlSendMsg(-1, $UDM_SETACCEL, 3, $pUDACCEL) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE Exit
    2 points
  2. The dedicated server that runs the autoitscript.com / autoitconsulting.com site had a severe outage for the last couple of days. The main problem was that one of the disk drives failed. The server has two drives in RAID 1 so normally this isn't a problem, in fact there have been two disk outages over the past few years that many people won't have even noticed. Usually the server runs as normal with one drive down and there is only a brief 5 minute outage required when the disk is replaced and the server is rebooted. However in this case the server hard crashed and wouldn't boot into the OS on the remaining disk. I'm guessing that the drive was actually failing...working...failing and causing issues because it wouldn't just die. I logged a support call and asked to get the disk replaced, but some of the communications were lost and it took 12 hours for them to acknowledge that the drive was dead and that they had the authorisation to go ahead and open the box and replace the drive (they only touch the hardware, I'm responsible for all the software/OS config). During this time the server was sitting in a recovery/linux boot disk mode used for troubleshooting. When the disk was finally replaced (8pm UK time 25th of Feb) the the technician only emailed my hostmaster / autoitscript email address to say that it was complete but I didn't receive it because of course that email address is hosted by the server...which is in recovery mode - they forgot to email the temporary gmail address I was using during the outage. So I only found out the work had actually been completed when I chased them up this morning on the phone. I've started the RAID rebuild onto the new drive which will take a few hours to complete so the site may be sluggish until then. I also had to repair a few mysql tables that had crashed - but it didn't look to be a problem.
    2 points
  3. mesale0077 asked me whether I could code some CSS loading animations from different web sites. These are the results using GDI+ (AutoIt v3.3.12.0+ required!): _GDIPlus_MonochromaticBlinker.au3 / _GDIPlus_RotatingBokeh.au3 _GDIPlus_SpinningCandy.au3 / _GDIPlus_SteamPunkLoading.au3 _GDIPlus_IncreasingBalls.au3 / _GDIPlus_PacmanProgressbar.au3 _GDIPlus_StripProgressbar.au3 / _GDIPlus_RingProgressbar.au3 _GDIPlus_LineProgressbar.au3 / _GDIPlus_SimpleLoadingAnim.au3 _GDIPlus_TextFillingWithWater.au3 / _GDIPlus_MultiColorLoader.au3 _GDIPlus_LoadingSpinner.au3 / _GDIPlus_SpinningAndPulsing.au3 _GDIPlus_TogglingSphere.au3 / _GDIPlus_CloudySpiral.au3 _GDIPlus_GlowingText.au3 (thanks to Eukalyptus) / _GDIPlus_HypnoticLoader.au3 _GDIPlus_RotatingRectangles.au3 / _GDIPlus_TRONSpinner.au3 _GDIPlus_RotatingBars.au3 / _GDIPlus_AnotherText.au3 (thanks to Eukalyptus) _GDIPlus_CogWheels.au3 (thanks to Eukalyptus) / _GDIPlus_DrawingText.au3 (thanks to Eukalyptus) _GDIPlus_GearsAnim.au3 / _GDIPlus_LEDAnim.au3 _GDIPlus_LoadingTextAnim.au3 / _GDIPlus_MovingRectangles.au3 _GDIPlus_SpinningAndGlowing.au3 (thanks to Eukalyptus) / _GDIPlus_YetAnotherLoadingAnim.au3 _GDIPlus_AnimatedTypeLoader.au3 / _GDIPlus_Carousel.au3 Each animation function has a built-in example how it can be used. AiO download: GDI+ Animated Wait Loading Screens.7z (previous downloads: 1757) Big thanks to Eukalyptus for providing several examples. Maybe useful for some of you Br, UEZ PS: I don't understand CSS - everything is made out of my mind, so it might be different from original CSS examples
    1 point
  4. My code is too complicated????? Here a shorter Version: #include <GUIConstantsEx.au3> #include <EditConstants.au3> #include <WindowsConstants.au3> $UDM_SETACCEL = 1131 $UDM_SETRANGE32 = 1135 $UDACCEL = DllStructCreate("UINT nSec; UINT nInc") $pUDACCEL = DllStructGetPtr($UDACCEL) DllStructSetData($UDACCEL, "nSec", 0) DllStructSetData($UDACCEL, "nInc", 10) ; jump width 10 $hGUI = GUICreate('Test', 220, 100, -1, -1) $hInput = GUICtrlCreateInput('50', 25, 25, 48, 22, $ES_READONLY) $hUpDown = GUICtrlCreateUpdown($hInput) GUICtrlSendMsg(-1, $UDM_SETRANGE32, 0, 1000) ; range from 0 to 1000 GUICtrlSendMsg(-1, $UDM_SETACCEL, 1, $pUDACCEL) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE
    1 point
  5. Works for me ;$address = '1FfmbHfnpaZjKFvyi1okTjJJusN455paPH' ;$address = 'LWFnkMtKD5Kur3dyD5jxij6Bnjm6L8F7rN' $address = 'DRJK35qeLPDPnAgVxJ9mBPHHkmVBY4j9PV' Local $crypto_type If StringRegExp($address, "^[13][1-9A-HJ-NP-Za-km-z]{26,33}") Then $crypto_type = "BTC" ElseIf StringRegExp($address, "^L[a-zA-Z0-9]{26,33}") Then $crypto_type = "LTC" ElseIf StringRegExp($address, "(D[1-9a-zA-Z]{20,40})") Then $crypto_type = "DOGE" EndIf msgbox(0,"", $crypto_type) BTW there was a A-Z missing in the third one
    1 point
×
×
  • Create New...