Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/25/2024 in all areas

  1. Nine

    Autoit password style

    Here one approach (don't know if there is a better way) : #include <GUIConstants.au3> #include <WinAPIGdi.au3> GUICreate("Login", 200, 100) GUICtrlCreateLabel("", 10, 10, 180, 19, $SS_BLACKFRAME) GUICtrlSetState(-1, $GUI_DISABLE) Local $idInput = GUICtrlCreateInput("", 13, 11, 154, 17, $ES_PASSWORD, $WS_EX_TOOLWINDOW) Local $idEye = GUICtrlCreatePic("Hide.bmp", 167, 11, 21, 17), $bHide = True Local $iDefault = GUICtrlSendMsg($idInput, $EM_GETPASSWORDCHAR, 0, 0) GUISetState() While True Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $idEye $bHide = Not $bHide GUICtrlSetImage($idEye, $bHide ? "Hide.bmp": "Show.bmp") GUICtrlSendMsg($idInput, $EM_SETPASSWORDCHAR, $bHide ? $iDefault : 0, 0) _WinAPI_RedrawWindow(GUICtrlGetHandle($idInput)) EndSwitch WEnd bmp here : Eye.zip
    2 points
  2. rudi

    Multiping Gui

    Use PingInfoView.exe from NirSoft, it's freeware, and you can have multiple ping definition files to be referenced with the command line parameter PingInfoView.exe /loadfile "\\Server\share\path\MyListOfHosts.txt"
    1 point
  3. I think the issue starts with setting previndentpos to the indent of the wrong line. The Caret position seems to be set between the CR & LF as it doesn't display it at all and adds that extra new line when you start typing.
    1 point
  4. @antai your code refers to $uArray. What's that?
    1 point
  5. you don't need it because that's what you use in the $upArray parameter when you call the UpdateArray function. according to my knowledge what is missing is ReDim to resize the existing array. #include <AutoItConstants.au3> #include <Array.au3> Local $aArrayA[51][3] $aArrayA[0][0] = 50 For $i = 1 To $aArrayA[0][0] $aArrayA[$i][0] = "Var_" & $i Next Local $Var = "new" UpdateArray($aArrayA, $Var) UpdateArray($aArrayA, "new2") _ArrayDisplay($aArrayA, "$aArrayA") ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Local $aArrayB[11][5] $aArrayB[0][0] = 10 For $i = 1 To $aArrayB[0][0] $aArrayB[$i][0] = "Var_" & $i Next Local $Var = "new" UpdateArray($aArrayB, $Var) _ArrayDisplay($aArrayB, "$aArrayB") ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _ArrayAdd($aArrayB, "New with _ArrayAdd") $aArrayB[0][0] += 1 _ArrayAdd($aArrayB, "another|with|_ArrayAdd") $aArrayB[0][0] += 1 _ArrayDisplay($aArrayB, "$aArrayB") ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Func UpdateArray(ByRef $upArray, $addvariable, $line = @ScriptLineNumber) ConsoleWrite("- Call from Line Number:" & $line & @CRLF) Local $iRows = UBound($upArray, $UBOUND_ROWS) ; Total number of rows. Local $iCols = UBound($upArray, $UBOUND_COLUMNS) ; Total number of columns. ConsoleWrite("$iRows:" & $iRows & ", $iCols:" & $iCols & @CRLF) ReDim $upArray[$iRows + 1][$iCols] $upArray[0][0] = $iRows $upArray[$iRows][0] = $addvariable EndFunc ;==>UpdateArray Edit: You shows us the function, but nowhere how you call it
    1 point
  6. ; NetFirewallPolicy2 COM UDF Library for AutoIt3 ; AutoIt Version : 3.3.14.5 ; Description ...: Windows Firewall Policy2 Interface, Provides access to the firewall policy for Windows Vista+ Including Test Script _NetFw_Get_CurrentProfileTypes Retrieves the currently active firewall profile(s) _NetFw_Get_FirewallEnabled Indicates whether a firewall is enabled locally _NetFw_Put_FirewallEnabled Specifies whether a firewall is enabled locally _NetFw_Get_ExcludedInterfaces Indicates a list of interfaces on which firewall settings are excluded _NetFw_Put_ExcludedInterfaces Specifies a list of interfaces on which firewall settings are excluded _NetFw_Get_BlockAllInboundTraffic Indicates whether the firewall should not allow inbound traffic _NetFw_Put_BlockAllInboundTraffic Specifies whether the firewall should not allow inbound traffic _NetFw_Get_NotificationsDisabled Indicates whether interactive firewall notifications are disabled _NetFw_Put_NotificationsDisabled Specifies whether interactive firewall notifications are disabled _NetFw_Get_UnicastResponsesToMulticastBroadcastDisabled Indicates whether the firewall should not allow unicast responses to multicast and broadcast traffic _NetFw_Put_UnicastResponsesToMulticastBroadcastDisabled Specifies whether the firewall should not allow unicast responses to multicast and broadcast traffic _NetFw_Get_Rules Retrieves the interface to collection of firewall rules _NetFw_Get_ServiceRestriction Retrieves the interface used to access the Windows Service Hardening store _NetFw_EnableRuleGroup Enables or disables a specified group of firewall rules _NetFw_IsRuleGroupEnabled Determines whether a specified group of firewall rules are enabled or disabled for the current profile _NetFw_RestoreLocalFirewallDefaults Restores the local firewall configuration to its default state _NetFw_Get_DefaultInboundAction Indicates the default action for inbound traffic _NetFw_Put_DefaultInboundAction Specifies the default action for inbound traffic _NetFw_Get_DefaultOutboundAction Indicates the default action for outbound traffic _NetFw_Put_DefaultOutboundAction Specifies the default action for outbound traffic _NetFw_Get_IsRuleGroupCurrentlyEnabled Determines whether a specified group of firewall rules are enabled or disabled for the current profile _NetFw_Get_LocalPolicyModifyState Determines if adding or setting a rule or group of rules will take effect in the current firewall profile UDF: Test Script:
    1 point
×
×
  • Create New...