Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/28/2024 in all areas

  1. LAteNightSpecial did show "its" true nature and got indefinitely banned for that. Also done some posts cleanup to avoid any more discussion/questions.
    6 points
  2. Here's a workaround using external processes. #pragma compile(AutoItExecuteAllowed, true) For $i = 1 To 10 _ToolTip_Separate_Process("Test ToolTip " & $i & @CRLF & @CRLF & @CRLF & "Test ToolTip " & $i, 2000, 50 * $i, 50 * $i) Sleep(500) Next Func _ToolTip_Separate_Process($sText = "ToolTip", $iSleep = 2000, $iX = Default, $iY = Default, $sTitle = "", $iIcon = 0, $iOptions = 0) Run(@AutoItExe & ' /AutoIt3ExecuteLine "sleep(' & $iSleep & ' + ToolTip(''' & $sText & ''',' & $iX & ',' & $iY & ',''' & $sTitle & ''',' & $iIcon & ',' & $iOptions & '))"') EndFunc ;==>_ToolTip_Separate_Process
    4 points
  3. This is my absolute last update (already updated twice today) for a while. Added a generic way to get the language of the numerical text being passed to _AutCode_TextNumberGetLanguage(). See example in zip. See ya'll... 👋
    2 points
  4. hi all This one is nowhere near finished - I'd probably call it a proof of concept for now - "GDIControls.au3" needs to be included, then there's a couple of control types that you should be able to create. _GUICtrlGDI_CreateHFader($hGUI, $iX, $iY, $iWidth, $iHeight [, $Colour [, $iStyle [, $iExStyle ]]]) _GUICtrlGDI_CreateVFader($hGUI, $iX, $iY, $iWidth, $iHeight [, $Colour [, $iStyle [, $iExStyle ]]]) _GUICtrlGDI_CreateKnob($hGUI, $iX, $iY, $iWidth, $iHeight [, $Colour [, $iStyle [, $iExStyle ]]]) _GUICtrlGDI_CreateLRKnob($hGUI, $iX, $iY, $iWidth, $iHeight [, $Colour [, $iStyle [, $iExStyle ]]]) _GUICtrlGDI_CreateVMeter($hWnd, $iX, $iY, $iWidth, $iHeight [, $iStyle [, $iExStyle]]) _GUICtrlGDI_CreateHMeter($hWnd, $iX, $iY, $iWidth, $iHeight [, $iStyle [, $iExStyle]]) _GUICtrlGDI_Create7SegDisplay($hGUI, $iX, $iY, $iWidth, $iHeight [, $Colour [, $iStyle [, $iExStyle ]]]) _GUICtrlGDI_Create14SegDisplay($hGUI, $iX, $iY, $iWidth, $iHeight [, $Colour [, $iStyle [, $iExStyle ]]]) The above functions return a controlID which can be read with GuiCtrlRead() via the usual methods. The controls can also be manipulated with GuiCtrlSetData() Valid values can be from 0 through to 127. That's about the long and short of it! ---------- Theres a bit going on with the mechanics of it here, and I'm sure theres probably a better way of going about things... But for anyone who' s interested this is what's going on: I take the requested dimentions of the control, If there's already bitmaps available for the requested type/dimentions/colour we use those. Otherwise, we dynamically generate a set of 128 bitmaps for the control. The next step is to create a "static" control, which is basically the same as a label. With the right style we can push images to these however. At this stage those optional $iStyle and $iExStyle flags come into play. There are some forced style values to make things work, but hey, if you want to add $WS_BORDER or something I'm not gonna stop ya! Static controls are pretty dumb, but they do know when they're clicked on ($STN_CLICKED). This is enough to let me know that a control needs updating. Next we need to track the mouse. We need to know when and where the mouse in released. I can't really utillise the $GUI_EVENT_* method for this. I'd either have to force OnEvent() mode, or we'd have to ask the user to call some function in the Main GuiGetMsg() Loop. So then I thought of handling $WM_MOUSEMOVE. This works great until you move over a control in the client area! It seems the message gets gobbled up. So now I'm using a low-level mouse hook. With this I can find where we are relative to the control and update it accordingly. The next peice of the puzzle is to let the user know that something has been done. I can easily provide a "getter" function that retrieves the control's values. I'd rather not have a bespoke function for this though. So I thought its better to associate dummy controls, which I use as a delivery mechanism. Lastly we need have a method of updating the control from outsige the GUI. For ease of use we probably want to leverage GuiCtrlSetData(). Setting the dummy control this way puts us in the same predicament as earlier however - we can't really use GuiGetMsg() to monitor it. but we can periodically check the value of the dummy control with an adlib function. If the value of the dummy is not where the GDI control was set with the GUI, we know we need to update it! GDICtrls_1-9.zip
    1 point
  5. Thank you very much @genius257, please keep on working on the extension. I will use (test) the new version more and more in the next weeks to get a feeling in comparison of the extension of Damien (maintained by @LoganCH). Best regards Sven
    1 point
  6. New version 1.4.0 released with many changes! here are a few highlights: Added completion suggestions for PreProc options, like: #cs and #NoTrayIcon Added support for function DocBlock summary and description on hover, completion suggestions and function signature help Added support for function UDF header description and remarks on hover and completion suggestions Fixed issue with function signature help not tracking parameter position based on text cursor position. Fixed issue with hover information for variables using the Default or Null keywords resulted in error messages. Fixed some issues with variable declaration lookup within functions Improved information for built-in functions on hover Full list of changes here: https://github.com/genius257/vscode-autoit/blob/master/CHANGELOG.md#140---2024-02-28 As always if you find problems, please let me know, here or via an issue
    1 point
  7. Looks like code I have written before... At first glance, you ask _FileListToArray to return full path (True as last parameter), then you concatenate the folder ($sFolder & "\" & $aCopiedFiles[$i]. It cannot find the file of course.
    1 point
  8. No, the ToolTip function only allows one display at a time. As soon as you call ToolTip again, the content (and position) of the previous call will be reinitialized.
    1 point
  9. it was resolved #include <GUIConstants.au3> Global $hGUI = GUICreate("GUI") Global $id_1 = _CreateInput("INPUT1", 20, 20, 150, 30, "0xB6FF00", 10) Global $id_2 = _CreateInput("INPUT2", 20, 60, 150, 30, "0xB6FF00") Global $id_3 = _CreateInput("INPUT3", 20, 100, 150, 35, "0xFFD800", 10) Global $id_4 = _CreateInput("INPUT4", 20, 145, 150, 35, "0xFFD800") Global $id_5 = _CreateInput("INPUT5", 20, 190, 150, 40, "0xFFB400", 10) Global $id_6 = _CreateInput("INPUT6", 20, 240, 150, 40, "0xFFB400") Global $id_7 = _CreateInputWL("Test Label:", "INPUT7", 220, 20, 150, 30, "0xB6FF00", 10) Global $id_8 = _CreateInputWL("Test Label:", "INPUT8", 220, 60, 150, 30, "0xB6FF00") Global $id_9 = _CreateInputWL("Test Label:", "INPUT9", 220, 100, 150, 30, "0xB6FF00", 10) Global $id_10 = _CreateInputWL("Test Label:", "INPUT10", 220, 145, 150, 30, "0xB6FF00") Global $id_11 = _CreateInputWL("Test Label:", "INPUT11", 220, 190, 150, 40, "0xFFB400", 10) Global $id_12 = _CreateInputWL("Test Label:", "INPUT12", 220, 240, 150, 40, "0xFFB400") GUISetState() Sleep(3000) GUICtrlSetData($id_1, "[test] gyps") GUICtrlSetData($id_7, "[test] gyps") While True Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd ;-------------------------------------------------------------------------------------------------------------------------------- Func _CreateInput($Text, $Left, $Top, $Width, $Height, $Color, $Corner = $Height / 2) GUICtrlCreateGraphic($Left, $Top, $Width, $Height) GUICtrlSetGraphic(-1, $GUI_GR_COLOR, $Color, $Color) GUICtrlSetGraphic(-1, $GUI_GR_MOVE, $Corner, 0) GUICtrlSetGraphic(-1, $GUI_GR_BEZIER, $Corner, $Height, 0, 0, 0, $Height) GUICtrlSetGraphic(-1, $GUI_GR_MOVE, $Width - $Corner, 0) GUICtrlSetGraphic(-1, $GUI_GR_BEZIER, $Width - $Corner, $Height, $Width, 0, $Width, $Height) GUICtrlSetGraphic(-1, $GUI_GR_RECT, $Corner, 0, $Width - ($Corner * 2), $Height) GUICtrlSetState(-1, $GUI_DISABLE) $idInput1 = GUICtrlCreateInput($Text, $Left + $Corner, $Top + ($Height * 0.2), $Width - ($Corner * 2), $Height * 0.6, -1, $WS_EX_TOOLWINDOW) GUICtrlSetFont(-1, Int($Height * 0.4), 400) GUICtrlSetBkColor(-1, $Color) Return $idInput1 EndFunc ;==>_CreateInput ;-------------------------------------------------------------------------------------------------------------------------------- Func _CreateInputWL($Label, $Text, $Left, $Top, $Width, $Height, $Color, $Corner = $Height / 2) GUICtrlCreateGraphic($Left, $Top, $Width, $Height) GUICtrlSetGraphic(-1, $GUI_GR_COLOR, $Color, $Color) GUICtrlSetGraphic(-1, $GUI_GR_MOVE, $Corner, 0) GUICtrlSetGraphic(-1, $GUI_GR_BEZIER, $Corner, $Height, 0, 0, 0, $Height) GUICtrlSetGraphic(-1, $GUI_GR_MOVE, $Width - $Corner, 0) GUICtrlSetGraphic(-1, $GUI_GR_BEZIER, $Width - $Corner, $Height, $Width, 0, $Width, $Height) GUICtrlSetGraphic(-1, $GUI_GR_RECT, $Corner, 0, $Width - ($Corner * 2), $Height) GUICtrlSetState(-1, $GUI_DISABLE) GUICtrlCreateLabel($Label, $Left + $Corner, $Top, $Width - ($Corner * 2), $Height * 0.4) GUICtrlSetBkColor(-1, $Color) GUICtrlSetFont(-1, Int($Height * 0.25)) $idInput1 = GUICtrlCreateInput($Text, $Left + $Corner, $Top + ($Height * 0.35), $Width - ($Corner * 2), $Height * 0.60, -1, $WS_EX_TOOLWINDOW) GUICtrlSetFont(-1, Int($Height * 0.35)) GUICtrlSetBkColor(-1, $Color) Return $idInput1 EndFunc ;==>_CreateInputWL ;--------------------------------------------------------------------------------------------------------------------------------
    1 point
  10. :^, By tinkering with the example script, it became clear what some of the lines did. It was also clear that the language's vocabulary went far beyond the terms used in the example. However, brute force guess work didn't yield much except for confirming that brute force guess work isn't the way to go. Thanks for the link; that's the reference I needed.
    1 point
  11. Melba23

    Network Tools Suite

    LAteNightSpecial, I have an even better idea - you press your "neck retract" button very firmly and start acting like the neophyte AutoIt scripter that you are, rather that posting AI-generated wordwalls on complex subjects about which you are (by your own admission) completely unqualified to comment. Your future as part of this community has been under discussion for some days and we have shown considerable forbearance in not banning you already. Continuing as you have been will make any future such decision extremely easy. So it would be to your advantage to start acting like the "newbie" you are and limit your posts to questions which help your understanding of AutoIt rather the obviously untested rubbish code with which you have been polluting the forum over the past few days. Up to you - choose wisely. And now - in the immortal style of Jos - <click> M23
    1 point
  12. @gcue Try this: #include <PowerPoint.au3> $oPPT = _PPT_Open() $oPresentation = _PPT_PresentationNew($oPPT) $oSlide = _PPT_SlideAdd($oPresentation, 1) $aShapes = _PPT_ShapeList($oPresentation, 1) If IsArray($aShapes) Then MsgBox(0, '', 'Before') Local $oShape = $aShapes[0][0] $oShape.TextFrame.TextRange.Font.Size = 24 MsgBox(0, '', 'After') EndIf _PPT_Close($oPPT)
    1 point
  13. Myicq

    CSVSplit

    Perhaps it would be an idea to ask the Windows locale for default split character ? Some parts of the world (at least mine) uses ; to split since we have comma as decimal. So we have Bob;Doe;1234,49 John;Doe;9948,12 Jane;Doe;1999,00 Welcomed UDF though !
    1 point
×
×
  • Create New...