Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/10/2014 in all areas

  1. Werty

    autoit version request

    Prolly because the old game bot he found while searching doesnt work in newer versions, and arent allowed to ask questions about it.
    1 point
  2. @M23 was faster. #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <array.au3> ; An array to hold the label ControlIDs Global $aLabel1[6], $aLabel2[6] ; A variable to show the last label which changed colour Global $iLastLabel = 0 Global $aText[6] = ["Malwarebytes Removal Tool", "Second label", "Third label", "Fourth label", "Fifth label", "Sixth label"] Global $aSecondary[6] = ["Bump", "Grump", "", "", "", ""] $hGUI = GUICreate("Test", 500, 600) For $i = 0 To 5 $aLabel1[$i] = GUICtrlCreateLabel($aText[$i], 0, (50 * $i), 500, 45, BitOr($SS_CenterImage, $SS_Center)) GUICtrlSetBkColor($aLabel1[$i], $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetFont($aLabel1[$i], 14, 800, 0, "Arial", 4) $aLabel2[$i] = GUICtrlCreateLabel($aSecondary[$i], (StringLen($aText[$i]) + StringLen($aSecondary[$i])) * 5.25, (50 * $i), 500, 45, BitOr($SS_CenterImage, $SS_Center)) GUICtrlSetFont($aLabel2[$i], 7, 400, 0, "Arial", 5) GUICtrlSetBkColor($aLabel2[$i], $GUI_BKCOLOR_TRANSPARENT) Next GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch ; Get cursor info $aCInfo = GUIGetCursorInfo($hGUI) ; loop through the label array to see which one is under the cursor For $i = 0 To 5 ; If we are over a new label If ($aCInfo[4] = $aLabel1[$i] Or $aCInfo[4] = $aLabel2[$i]) And $iLastLabel <> $i Then ; Recolour previos label GUICtrlSetBkColor($aLabel1[$iLastLabel], $GUI_BKCOLOR_TRANSPARENT) ; colour current label GUICtrlSetBkColor($aLabel1[$i], 0xFF0000) ; Store this label $iLastLabel = $i ; No point in looking further ExitLoop EndIf Next WEnd Br, UEZ
    1 point
  3. ReconX, Not too difficult - use 2 labels: #include <GUIConstantsEx.au3> #include <StaticConstants.au3> ; An array to hold the label ControlIDs Global $aLabel[6] ; A variable to show the last label which changed colour Global $iLastLabel = 0 Global $aText[6] = ["Malwarebytes Removal Tool", "Second label", "Third label", "Fourth label", "Fifth label", "Sixth label"] Global $aSecondary[6] = ["Bump", "Grump", " ", " ", " ", " "] $hGUI = GUICreate("Test", 500, 600) For $i = 0 To 5 ; Create the main title label $aLabel[$i] = GUICtrlCreateLabel($aText[$i], 0, 0 + (50 * $i), 450, 45, $SS_Center) GUICtrlSetBkColor($aLabel[$i], $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetFont($aLabel[$i], 13, 800) ; Now create a secondary label to hold the subtitle $cSec = GUICtrlCreateLabel($aSecondary[$i], 0, 20 + (50 * $i), 450, 45, $SS_Center) GUICtrlSetBkColor($cSec, $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetFont($cSec, 9.5, 800) Next GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $aLabel[0] ConsoleWrite("Hit" & @CRLF) EndSwitch ; Get cursor info $aCInfo = GUIGetCursorInfo($hGUI) ; loop through the label array to see which one is under the cursor For $i = 0 To 5 ; If we are over a new label If $aCInfo[4] = $aLabel[$i] And $iLastLabel <> $i Then ; Recolour previos label GUICtrlSetBkColor($aLabel[$iLastLabel], $GUI_BKCOLOR_TRANSPARENT) ; colour current label GUICtrlSetBkColor($aLabel[$i], 0xFF0000) ; Store this label $iLastLabel = $i ; No point in looking further ExitLoop EndIf Next WEnd All clear? M23
    1 point
  4. Hi! (I'm looking forward to release my stuff here, so this is the first part.) I've messed around with the existing OpenGL functions and wrote a new set of UDFs for OpenGL + AutoIt. The project was only hosted in the german forum for a long time, but i've decided to share it with you, too. The code is 50/50 german/english commented, but users with a bit of OpenGL knowledge are able to understand the 9 examples I've wrote. They are numbered from 1 to 9. The higher the number, the more complex is the example. Thanks trancexx & Matwachich for their examples btw Some 64Bit machines my need to compile the examples as 32Bit, but it should work otherwise, too. This project is not yet finished. It works though, but we have big plans for the near future. We are currently connecting OpenGL with the ridiculously speed of OpenCL. We are finally able to power all 8 cores of an AMD FX CPU or all the 1,5k Cores in a NVIDIA graphics card at once with AutoIt using C Kernels, achieving maximum speeds with parallel processing. Download: You can either click here to download the zip directly or type "wpt-get install ogl4au3-2.0" if you have wpt installed. Have fun
    1 point
×
×
  • Create New...