8 posts in this topic
[SOLVED] Reverse state of button
I remember a script where i had seen an user inverse state of a button ( $GUI_ENABLE (64) / $GUI_DISABLE (128) ) in one line only
I remember it use Bit operation but i cannot reproduce it, can someone help ?
In fact if the button is enable i want to disable it and if he is disable , want to enable it, something like that :
GuiCtrlSetState ( $button , BitOr ( GuiCtrlGetSate ( $button ) ) ; i know this is NOT working, for explanation only
Disable Visual Style For Single Control
Hi, i'm not a very educated guy when it comes to dll calls..
can someone help me do this:
DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", false) for only one control?
[Sloved] How to disable a edit control without graying it?
Hello! I think the thread title is obvious enough , Here is my code:
#include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 290, 139, 192, 124) $Edit1 = GUICtrlCreateEdit("Test", 8, 8, 273, 121, $ES_READONLY) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
Thanks in advance, TD
Enable/Disable network card WMI
I've been looking around to enable/disable network cards using WMI but so far the only way i could get it to work was with this :
RunWait(@ComSpec & " /c " & "WMIC PATH Win32_NetworkAdapter WHERE Index=" & $NetAdp_CurrID & " CALL " & $action, "", @SW_HIDE) The $NetAdp_CurrID var would be the index of the network card and the $action var would be enable or disable in my line of code.
I know it's possible to do this with wmi without using cmd but i can't figure out how.
Anyone who has the answer to my problem?
I've tried with using the wmi query and adding .enable() and .disable() at the end but that doesn't work (or at least not for me)
would there a way to disable enable the CUI after the exe was compiled If a certain Action is being used?