Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/29/2023 in all areas

  1. Just uploaded a fix for SciTEConfig.au3 which contained the remains of some debugging which I clearly didn't finish properly, so was still in Development stage and somehow got into this Beta. Will be included in the Installer and portable zip when I am done with the LUA changes currently in progress.
    2 points
  2. There are hundreds of these around the internet, but here is my version of the Enigma Machine in UDF form. It can be used for simple string, or for entire files. I don't recommend it for highly sensitive data, but is good for simple encryption or just for fun. There are no global variables used, and you can have multiple instances (if you find you need it). Enigma.zip
    1 point
  3. now it's a ribbon, not toolbar #include <GUIConstantsEx.au3> #include <GuiToolbar.au3> #include <MsgBoxConstants.au3> Example() Func Example() Local $hToolbar Run("explorer.exe /root, ,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}") WinWaitActive("[CLASS:CabinetWClass]") Sleep(1000) $hToolbar = _GUICtrlToolbar_FindToolbar("[CLASS:CabinetWClass]", "This PC") ConsoleWrite("$hToolbar: " & $hToolbar & @CRLF) MsgBox($MB_SYSTEMMODAL, "Information", "This PC Toolbar handle: 0x" & Hex($hToolbar)) EndFunc ;==>Example
    1 point
  4. Yes, use the appropriate string managemennt system. The pointer points to a memoryblock where the first 4 bytes (UINT/DWORD) contains the string length and the rest of the memory contains the string/data. Then the data format is irrelevant.
    1 point
  5. When you search the forum for $TOKEN_ADJUST_PRIVILEGES you will find the following thread. There the WinAPIProc.au3 gets included. Can you give this a try? I can't test at the moment.
    1 point
  6. tarretarretarre

    Autoit-Events

    About AutoIt-Events AutoIt-Events is an event Observer and is a core dependency for Autoit-Socket-IO but can be used for any Autoit project. Example #include "Event.au3" ; Subscribe listeners _Event_Listen(UserCreatedEvent, SendWelcomeMail) _Event_Listen(UserCreatedEvent, RegisterNewsLetter) ; Fire event _Event(UserCreatedEvent, @UserName, "tarre.islam@gmail.com") Func UserCreatedEvent(Const ByRef $oEvent, $name, $email) ; via $oEvent you can pass data to its listeners $oEvent.add("name", $name) $oEvent.add("email", $email) $oEvent.add("id", 1) EndFunc Func SendWelcomeMail(Const $oEvent) MsgBox(64, "Welcome mail sent", "Welcome mail sent to " & $oEvent.item("name") & " with email " & $oEvent.item("email")) EndFunc Func RegisterNewsLetter(Const $oEvent) MsgBox(64, "News letter registred", "News letter bound to user id " & $oEvent.item("id")) EndFunc The code is also available at Github Autoit-Events-1.0.0.zip
    1 point
  7. An old post, but helped me get the taskbar icon to not show up. Using... GUICreate('Password Expiration Notification', 850, 420, -1, -1, $WS_POPUPWINDOW, $WS_EX_TOPMOST, WinGetHandle('Program Manager')) There is no way to close or move the window without clicking OK or killing the process in TaskManager. Either way we can guarantee that the user saw the message. Thanks to FreeFry and ffrankcool for the posts.
    1 point
  8. C'mon, the help file content regarding _GUICtrlListView_AddArray is very easy to understand and the example there have everything you need. All I did is: I stripped all useless code and here is a working result - it shows that an array will be correctly added to the List View control: #AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #include <GuiConstantsEx.au3> #include <GuiListView.au3> Opt('MustDeclareVars', 1) $Debug_LV = False ; Check ClassName being passed to ListView functions, set to True and use a handle to another control to see it work _Main() Func _Main() Local $iI, $iTimer, $hListView ; Create GUI GUICreate("ListView Add Array", 400, 300) $hListView = GUICtrlCreateListView("", 2, 2, 394, 268) GUISetState() ; Add columns _GUICtrlListView_AddColumn($hListView, "Program", 100) ; this block of code only generates the array Local $aItems[200][1] For $iI = 0 To UBound($aItems) - 1 $aItems[$iI][0] = "Item " & $iI Next _GUICtrlListView_AddArray($hListView, $aItems) ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_Main Your $ProgramArray is uni-dimensional so the example is exactly as you need. It works IF $ProgramArray is an array - if it is not, it won't work. Did you think to check the content of $ProgramArray before attempting to put it in the ListView? A simple _ArrayDisplay can save you alot of headaches.
    1 point
×
×
  • Create New...