Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/02/2019 in all areas

  1. To be honest, it wasn't obvious at first trial...I must also give credit to danp2 who showed me the way.
    2 points
  2. If there is no frame you could simply do : Local $sValue = _IEGetObjById ($oIE, "resultcount").innerText
    2 points
  3. This the effect of AutoIt duck typing. Internal functions explicitely expecting a type force a conversion of the argument into the wanted type. The multiple If block can be: Switch StringLower($strVal) Case 'maximized' $strVal = @SW_MAXIMIZE Case 'minimized' $strVal = @SW_MINIMIZE Case 'normal' $strVal = @SW_RESTORE Case 'false', 'off', '0', '' $strVal = False Case Else $strVal = True EndSwitch
    1 point
  4. @TheDcoder In the Help file it is stated to set the style $WS_CLIPCHILDREN to the GUI, since there may be visualization issue without that style. Does the script return any error after functions calling?
    1 point
  5. At first glance it doesn't appear you have used $Copy = 0, so it keeps copying.
    1 point
  6. M23, I'm assuming because they admit they're new you didn't want to blow their mind with a Ternary setup? #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include <ButtonConstants.au3> $hGUI = GUICreate("Test", 500, 500) $cButton = GUICtrlCreateCheckbox("OFF", 10, 10, 80, 30, $BS_PUSHLIKE) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $cButton GUICtrlSetData($cButton,(GUICtrlRead($cButton) = $GUI_CHECKED) ? "ON" : "OFF") EndSwitch WEnd
    1 point
×
×
  • Create New...