Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/03/2018 in all areas

  1. I was in need of an IPC (Interprocess communication) between system, admin and user levels, and ended up writing this UDF to suit my wantings. Hope you find it useful too. Works from WinXP/Server2003 to the now current Win10/Server2016. It communicates between any mix of x32, x64, Admin, User. In the zip file, there is the UDF and an example: FMIPC(v0.2018.04.04).zip Special thanks to @RTFC for the help in the support forum
    4 points
  2. "App Paths" key is generally better as it includes the full path to the exe, whereas Install Location only points to the directory the software is installed into, however like in Turbo Cad, many applications will place it in a subfolder of the Install Location. "TurboCAD comes in both versions 32bit and 64bit so if a user has both installed I will need to provide a switch maybe.." Another reason to use App Paths, which ever version is the default for handling TurboCad extensions this will be the one found in App Paths, only one version can be in the App Paths i.e. HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths and HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths are identical, when you add or remove a key from App Paths its replicated to the other key. Hope that makes sense.
    2 points
  3. Subz

    How to code this variables?

    You could just use _FileReadToArray for example: #include <Array.au3> ;~ For Display Purposes Only #include <File.au3> Local $sFileName = @ScriptDir & "\Filename.txt" Local $aFileName _FileReadToArray($sFileName, $aFileName, 0) _ArrayDisplay($aFileName) ;~ If you only want the first 5 lines of the file ReDim $aFileName[5] _ArrayDisplay($aFileName)
    1 point
  4. @DazGizmo here an example: #include <GDIPlus.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> _GDIPlus_Startup() Global Const $iW = 193, $iH = 184 Global Const $hHBitmap = _GDIPlus_BitmapCreateFromMemory(_Test_Pic(), True) ;convert image 193x184 directly to GDI format (needed for pic control) Global Const $hGUI = GUICreate("", $iW, $iH, -1, -1, BitOR($WS_POPUP, $WS_BORDER), BitOR($WS_EX_TOPMOST, $WS_EX_WINDOWEDGE, $WS_EX_TOOLWINDOW)) GUISetBkColor(0xFFFFFF) Global Const $hPic = GUICtrlCreatePic("", 0, 0, $iW, $iH) _WinAPI_DeleteObject(GUICtrlSendMsg($hPic, $STM_SETIMAGE, $IMAGE_BITMAP, $hHBitmap)) ;send the image to the pic control GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE _WinAPI_DeleteObject($hHBitmap) _GDIPlus_Shutdown() ;Code below was generated by: 'File to Base64 String' Code Generator v1.20 Build 2018-02-02 Func _Test_Pic($bSaveBinary = False, $sSavePath = @ScriptDir) Local $Test_Pic $Test_Pic &= 'iVBORw0KGgoAAAANSUhEUgAAAMEAAAC4CAYAAABab4iVAAAAD3RFWHRUaXRsZQAzRCBTaGFwZXOyEsx3AAAAH3RFWHREZXNjcmlwdGlvbgBKYXNjIHNoYXBlcyBsaWJyYXJ5YCDaygAAABF0RVh0QXV0aG9yAEJlbiBGZW5za2Vly0TQAAAAN3RFWHRDb3B5cmlnaHQAMjAwMCBKYXNjIFNvZnR3YXJlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuELV9fAAAACx0RVh0Q3JlYXRpb24gVGltZQB0ZXIgMjcgSnVuIDIwMDAgMjI6NTk6MzIgLTAwMDBddm5oAAAAB3RJTUUH0gIMDSQEXWlNsAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAARnQU1BAACxjwv8YQUAAEpISURBVHja7X0JuGVXVeY6w31VlUplqIwkZABCBjIxyRAkCLaJBkQEQWm1RZuP/roVsbVp2qFBP21t6W6UFtsGQYI4IK2MMgQQyJyQOSFJVaZKqpJKqiqVmuu9e+85e/dae++1zzr77nPuvW+8r+qtr06d8d177jn/v9e/1p4AVmzFVmzFVmzFVmzFVmzFVuxwtmSpb2DS7RF8RtcAHEvb+LCOxuWUUf5OmX/wKC7dDKD8eYA9S/1bVixuKyRwRmC/AWA9Ivc5uFxQAjy3ALgQH9A6XJ+Jl6S4HIHnjhrl8/DvNC478Y/wz2EG14/i/j4kxF24vRGPbcDtx1fIsfR22JLgSgS8BngePoDzEaUX0YIAPxOPnYjrIxCoWfiQ5vKwtFjj5/Tx8/fh5rYc4EHcvhOXu3F/A5579BcADiz18z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E/gXkgQx0If7MSIMA39TXBDuHzK2nAPjNvPdjyGeGWoLjtvA3yaLAAbBv9DZIT7eJoPajo0bFxwypb+0Q5UEbDEitJEhBHkuPidGCIDBuABgcUkQS5OGwCcroJkQo8QFhxz42Q51ErCNQoa2Y8MC4ibwL3R2iNfDAuQ2GXTYgp/tcCEB2zAJNEwWATR7AwiOASwMCXi7LUBua0oRk0FN0uiwsMONBGyhBIqBP+YJQgnU5g34OogcH9VickgeV5HtJlI0ESIkw2EDfrbDlQRsUv60AT88DhAnBUC89J8NAdjCGCA81lR5NiwgDusKDnnZ02SHOwnYRs0MNTWTaIsL5LHZ2LDgOLY9CvBD6XTY2goJBk16BoDhnmCUOoL5IsGodQVNGaLDVvK02QoJmq0N9G0eYLE9Aa/b2hGtlPottkKC0SyWGeL9SfIEfExBPJZYsYitkGB2NumeYMXGsBUSzJ8tpSdYsTnYCgkWx+aLBCu2Yiu2Yiu2Yiu2Yiu2Yiu2Yiu2Yiu2Yiu2Yiu2Yiu2Yiu2Yiu2Yiu2YvNn/x8H6goDo7OU7wAAAABJRU5ErkJggg==' Local $bString = _WinAPI_Base64Decode($Test_Pic) If @error Then Return SetError(1, 0, 0) $bString = Binary($bString) If $bSaveBinary Then Local Const $hFile = FileOpen($sSavePath & "\Torus.png", 18) If @error Then Return SetError(2, 0, $bString) FileWrite($hFile, $bString) FileClose($hFile) EndIf Return $bString EndFunc ;==>_Test_Pic Func _WinAPI_Base64Decode($sB64String) Local $aCrypt = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "ptr", 0, "dword*", 0, "ptr", 0, "ptr", 0) If @error Or Not $aCrypt[0] Then Return SetError(1, 0, "") Local $bBuffer = DllStructCreate("byte[" & $aCrypt[5] & "]") $aCrypt = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "struct*", $bBuffer, "dword*", $aCrypt[5], "ptr", 0, "ptr", 0) If @error Or Not $aCrypt[0] Then Return SetError(2, 0, "") Return DllStructGetData($bBuffer, 1) EndFunc ;==>_WinAPI_Base64Decode
    1 point
  5. Whoever wrote the original script (that you can't modify for some reason) needs to rewrite his/her part of it and make it work better, trying to code around someone else's ineptitude is bound to be frustrating.
    1 point
  6. @Amichai, in the future try to post a runnable reproducer - your script contains references to external UDF's and ommitted functions, so it is not easy for us to help you - and it's not our job either. for your issue - you may want to consider WinSetTrans(). use it to set the transparency of the child GUI to 0 (=invisible) before maximize/minimize/restore, and once that operation is complete, set it to 255 (=solid). i use this method successfully whenever the Windows minimize animation gets on my nerves...
    1 point
  7. If you want the function that is exactly what you are asking for this is pretty much it, you may have to tweak it a tad (add another tab or sleep or something). Seeing the process there is probably a better more programmatic way to do it rather than raw key strokes, but if it helps atleast its a place to start. #Include <HotString.au3> HotStringSet("{TAB}{TAB}", mycustomsend) While 1 Sleep(10) WEnd Func mycustomsend() ;Maybe Add Send Tab? ;Maybe Add Sleep to wait for scan? Send("{ENTER}") EndFunc
    1 point
  8. I didn't test this, but it might work This example uses an array as mentioned by BrewManNH, for indexing. Local $URL_max = 5 Local $asURL[$URL_max]; Create Array For $i = 0 to $URL_max - 1 $asURL[$i] = FileReadLine($hFileOpen, $i) ; Read URL from file MsgBox($MB_SYSTEMMODAL, "", "line of the file:" & @CRLF & $asURL[$i] & " " & $i) ; Display URL stored in $asURL[] Next ; Display index [0] MsgBox($MB_SYSTEMMODAL, "", "Array index: " & $asURL[0]) Edit: Fixed my variable naming errors. Edit: Also fixed array range.
    1 point
  9. You could use Assign, but I would use an array.
    1 point
  10. You can't use Execute to declare or redeclare a variable. another question that comes to mind, WHY do you need to delete these arrays? What's wrong with just leaving them there? Then isn't all of this a moot point anyways? You're trying to change the code, but you're not allowed to change the code? That's a very confusing issue you have there.
    1 point
  11. I prefer using the install location because it indicates the windows thinks it’s a valid install and it probably could be repaired if it was damaged by user. But using app paths is fine or should be fine
    1 point
  12. Knew you could do it. You could apply that same technique to look at the uninstall or install location rather
    1 point
  13. Many Thanks Subz and Earthshine... This code worked!: ;~ Check 64bit key: Local $sFilePath = RegRead("HKLM64\Software\Microsoft\Windows\CurrentVersion\App Paths\tcw25.exe", "") If $sFilePath = "" Then ;~ Check 32bit key : $sFilePath = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\tcw25.exe", "") EndIf If FileExists($sFilePath) = 0 Then Exit ;~ File doesn't exist. Run($sFilePath)
    1 point
  14. Did you try my code above, you mentioned the path was in App Paths, can you post the key (right click the Registry Key and select Copy Key Name)? Also remember to use HKLM64 for 64bit applications and HKLM for 32bit applications when running from 32 bit compiled script.
    1 point
  15. You may need to run this is a 64-bit script to look into the 64-bit key or you can use the app key thing that you found earlier. Use a message box to display the string that read returns See if it find the install location
    1 point
  16. Try that wow3264 key as posted in one of my posts above. This is probably an x86 application and you might be looking under the 64-bit key
    1 point
  17. argumentum, And you might want to put the _FMIPC_Write_ErrStr function in the UDF as well - it is better placed there than in the example itself. Sorry to be picky, but it is worth getting a UDF as useful as this into as good a shape as possible. M23
    1 point
  18. Depends if the program is 32bit or 64bit Just change <FileName.exe> to the TurboCad.exe name ;~ Check 64bit key: Local $sFilePath = RegRead("HKLM64\Software\Microsoft\Windows\CurrentVersion\App Paths\tcw25.exe", "") If $sFilePath = "" Then ;~ Check 32bit key : $sFilePath = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\tcw25.exe", "") EndIf If FileExists($sFilePath) = 0 Then Exit ;~ File doesn't exist. Run($sFilePath)
    1 point
  19. here you go... just a snippet but you will get the idea $InstDirValue = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{EF9986B9-E40F-4B59-A3EB-DC74E5ED7E58}" Local $varInstallDir = RegRead($InstDirValue, "InstallSource") If (StringLen($varInstallDir) > 0) Then ;~ you have a valid install, do something like calling the installer. ;~ Run($varInstallDir & "\TurboCad.exe", etc.... EndIf Something like that., if you run this in 32 bit mode, it looks down the 32 bit uninstall key and visa versa for the 64 bit, but you can make one 64 bit script that checks both locations if you wish I believe. Change the GUID in my sample to your product's GUID
    1 point
  20. Found it it Regedit.... a Folder called App Paths.... So how would one go about collecting this programmically.... Searching it?
    1 point
  21. Yes it does default to the standard program location but I change mine to a second drive "K" which is an easy option to change the programs location when installing.
    1 point
  22. Oh!, once you install TurboCad, it will have a registry entry where it lives. duh.... getting the cart before the horse.
    1 point
  23. Well let's try this one (the result in _ArrayDisplay is to be compared with the one from jchd's last code) #Include <Array.au3> Local $s = "Hello, " & Chr(27) & "[ 40;31mThis is red on black " & chr(13) & _ Chr(27) & "[ 47;32m And this is green on white" & chr(10) & _ Chr(27) & "[ 47 ; 32 m And this is also green on white (more spaces)" & _ Chr(27) & "[1234567890123456798Kvftio this matches the definition," & @TAB & "albeit probably invalid ANSI escape" & _ Chr(27) & "[ 47;32 !!!! this is not an ANSI " & Chr(27) & "sequence" & _ Chr(27) & "[ z but this one is OK and final bell!" & Chr(7) Local $aRes = StringRegExp($s, "(?x)" & _ "(?(DEFINE) (?<ANSI_Escape> \[ (?:\s*\d*\s*;?)* [[:alpha:]]) )" & _ "(?| \x1B(?&ANSI_Escape) | [\x01-\x1A\x1C-\x1F] | \x1B(?!(?&ANSI_Escape)) | (?:[^\x01-\x1F] (?!(?&ANSI_Escape)))+ )", 3) _ArrayDisplay($aRes, "Mixed results") ;MsgBox(0, "", "chr(" & Asc($aRes[3]) & ")" & @CR & "chr(" & Asc($aRes[6]) & ")")
    1 point
  24. Malkey

    Random Click

    In this example the ClickRandomly() function is a working re-write of your example of post #1 with the correct use of the Random() function; and, ClickRandomlyB() is my imaginative interpretation of your fanciful belief of what "Random(1,2,3,4,5,4,3,2,1)" does. Press "Shift" key to call the ClickRandomly Function; Press "Ctrl" key to call the ClickRandomlyB Function; and, Press "Esc" key to exit script. #include <Misc.au3> ; For _IsPressed() function only. #include <Array.au3> ; For _ArrayDisplay() function only. While 1 Select Case _IsPressed('1B') ; Press Esc key to exit script. ExitLoop Case _IsPressed('10') ; Press shift key to call the ClickRandomly Function. ClickRandomly() Case _IsPressed('11') ; Press Ctrl key to call the ClickRandomlyB Function. (Click sequencial points specified in ClickRandomlyB() parameter.) ClickRandomlyB("1, 2, 3, 4, 5, 4, 3, 2, 1") ; The string parameter is the index order of the points in the array, $aRandomPts, to be clicked. EndSelect Sleep(150) WEnd Func ClickRandomly() Local $aRandomPts = [[9, 0], [592, 173], [309, 631], [350, 691], [630, 731], [1005, 31], [1005, 31], [1035, 101], [1505, 91], [1995, 331]] ; The points to be randomly clicked ;_ArrayDisplay($aRandomPts) Local $r = Random(1, $aRandomPts[0][0], 1) ; Random index number to be used on the above Array. MouseClick("Left", $aRandomPts[$r][0], $aRandomPts[$r][1]) ConsoleWrite("$aRandomPts Index: " & $r & @TAB & "X: " & $aRandomPts[$r][0] & @TAB & "Y: " & $aRandomPts[$r][1] & @CRLF) ; For testing purposes only. EndFunc ;==>ClickRandomly Func ClickRandomlyB($sClickPointOrder) Local Static $r = 0 ; Incremented index number of the $aRNumbers array which contains the order of the points in the $aRandomPts array to be clicked. Local $aRandomPts = [[9, 0], [592, 173], [309, 631], [350, 691], [630, 731], [1005, 31], [1005, 31], [1035, 101], [1505, 91], [1995, 331]] Local $aRNumbers = StringRegExp($sClickPointOrder, "\d", 3) ; <== The order of the points to be clicked. (Parameter 3 = $STR_REGEXPARRAYGLOBALMATCH) ;_ArrayDisplay($aRNumbers) MouseClick("Left", $aRandomPts[$aRNumbers[$r]][0], $aRandomPts[$aRNumbers[$r]][1]) ConsoleWrite("$aRNumbers Index: " & $r & @TAB & "$aRNumbers Value/$aRandomPts Index: " & $aRNumbers[$r] & @TAB & "X: " & $aRandomPts[$aRNumbers[$r]][0] & @TAB & "Y: " & $aRandomPts[$aRNumbers[$r]][1] & @CRLF) ; For testing purposes only. $r = Mod($r + 1, UBound($aRNumbers)) ; Increment static variable, $r. EndFunc ;==>ClickRandomlyB
    1 point
  25. The network environment cannot have anything to do with it. The delay is with SendKeys() and equivalent actions accessing a local form. Also, I've been trying all variants of the chromedriver, with no different results. Remember: This suddenly happende with code - both uncompiled and a built and compiled application - that had not been changed in any way. So the change is somewhere in Windows.
    1 point
  26. I post this after Mikell already suggested the same idea: I got diverted elsewhere in the meantime. Feel free to use $_Not_A_Char = ChrW(0xFFFD) as, since it's not a valid (useable) Unicode codepoint, you normally have zero chance of hitting it in the source stream. About how to decorate or not control chars and escape sequences, this is up to you as your needs govern what to do here. That's why I decided to invoke a separate function for doing so. This precisely what the first regexp does: it catches both.
    1 point
  27. JohnWIlling

    IPC IO

    I used the latest version of AutoIT V3.3.14.3 which has several newer constants and APIs defined.
    1 point
  28. An other dots animation : #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <Memory.au3> #include <GDIPlus.au3> #include <WindowsConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <TrayConstants.au3> Global Const $sExcelColor = "217346", $sWordColor = "2b579a", $sOutlookColor = "B7472A" Global Const $sThemeColor = $sOutlookColor Local Const $PI = 3.141592653589793 Global Const $hDwmApiDll = DllOpen("dwmapi.dll") Global $sChkAero = DllStructCreate("int;") DllCall($hDwmApiDll, "int", "DwmIsCompositionEnabled", "ptr", DllStructGetPtr($sChkAero)) Global $bAero = DllStructGetData($sChkAero, 1) Global $fStep = 0.02 If Not $bAero Then $fStep = 1.25 _GDIPlus_Startup() Global $iW = 442, $iH = 30 $hGUI = GUICreate("Office", $iW, 252, @DesktopWidth / 2.95, @DesktopHeight / 3.2, $WS_POPUP) GUISetBkColor("0x" & $sThemeColor) ;GUISetBkColor(0xB7472A) ;GUISetBkColor(0x2b579a) ;Word Blue ;~ GUISetBkColor(0x217346) ;Excel Green $Label1 = GUICtrlCreateLabel("SciTE4AutoIt3", 8, 8, 102, 21) GUICtrlSetFont(-1, 10, 400, 0, "Segoe UI Light") GUICtrlSetColor(-1, 0xFFFFFF) $Label2 = GUICtrlCreateLabel("AutoIt 247", 64, 72, 314, 75, BitOR($SS_CENTER, $SS_CENTERIMAGE)) GUICtrlSetFont(-1, 40, 400, 0, "Segoe UI Light") GUICtrlSetColor(-1, 0xFFFFFF) $Label3 = GUICtrlCreateLabel("Starting...", 10, 205, 54, 21) GUICtrlSetFont(-1, 10, 400, 0, "Segoe UI Light") GUICtrlSetColor(-1, 0xFFFFFF) $Label4 = GUICtrlCreateLabel("r", 410, 4, 20, 21) GUICtrlSetFont(-1, 12, 400, 0, "Webdings") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetTip(-1, "Closes the splash screen.") $Label5 = GUICtrlCreateLabel("0", 385, 0, 20, 21) GUICtrlSetFont(-1, 12, 400, 0, "Webdings") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetTip(-1, "Minimises the splash screen.") GUISetState(@SW_SHOW) Global Const $iPic = GUICtrlCreatePic("", 0, 150, $iW, $iH) GUICtrlSetState(-1, $GUI_DISABLE) WinSetTrans($hGUI, "", 0) GUISetState() Global $hHBmp_BG, $hB, $iSleep = 20 GUIRegisterMsg($WM_TIMER, "PlayAnim") DllCall("user32.dll", "int", "SetTimer", "hwnd", $hGUI, "int", 0, "int", $iSleep, "int", 0) global $iballs = 5 global $aPos[$iballs][3] For $i = 0 To $iballs - 1 $aPos[($iballs - 1) - $i][0] = -10 $aPos[($iballs - 1) - $i][1] = $iH / 2 Next $aPos[0][2] = 1 Global $z, $iPerc For $z = 1 To 255 Step $fStep WinSetTrans($hGUI, "", $z) Next Do Switch GUIGetMsg() Case $GUI_EVENT_CLOSE, $Label4 ConsoleWrite("Exit") GUIRegisterMsg($WM_TIMER, "") _WinAPI_DeleteObject($hHBmp_BG) _GDIPlus_Shutdown() For $z = 255 To 1 Step -$fStep WinSetTrans($hGUI, "", $z) Next GUIDelete($hGUI) Exit EndSwitch Until False Func PlayAnim() $hHBmp_BG = _GDIPlus_LinearBalls($iW, $iH, $iPerc, 3, $iballs) $hB = GUICtrlSendMsg($iPic, $STM_SETIMAGE, $IMAGE_BITMAP, $hHBmp_BG) If $hB Then _WinAPI_DeleteObject($hB) _WinAPI_DeleteObject($hHBmp_BG) If $aPos[$iballs - 1][2] = 2 Then For $i = 0 To $iballs - 1 $aPos[$i][0] = - 10 $aPos[$i][2] = 0 Next $aPos[0][2] = 1 EndIf EndFunc ;==>PlayAnim Func _GDIPlus_LinearBalls($iW, $iH, $iPerc, $iRadius = 5, $iballs = 3, $bHBitmap = True) Local Const $iDiameter = $iRadius * 2 Local $tPointF1 = DllStructCreate("float;float") Local $pPointF1 = DllStructGetPtr($tPointF1) Local $tPointF2 = DllStructCreate("float;float") Local $pPointF2 = DllStructGetPtr($tPointF2) DllStructSetData($tPointF1, 1, $iDiameter) DllStructSetData($tPointF1, 2, 0) DllStructSetData($tPointF2, 1, $iDiameter) DllStructSetData($tPointF2, 2, $iDiameter) Local $hBrushBall2 = DllCall($__g_hGDIPDll, "uint", "GdipCreateLineBrush", "ptr", $pPointF1, "ptr", $pPointF2, "uint", 0xFFcecbca, "uint", 0xFFf2eeed, "int", 1, "int*", 0) $hBrushBall2 = $hBrushBall2[6] Local $hBitmap = _GDIPlus_BitmapCreateFromScan0($iW, $iH) Local Const $hCtxt = _GDIPlus_ImageGetGraphicsContext($hBitmap) _GDIPlus_GraphicsSetSmoothingMode($hCtxt, 2) _GDIPlus_GraphicsSetPixelOffsetMode($hCtxt, $GDIP_PIXELOFFSETMODE_HIGHQUALITY) Local Const $hBrushBall1 = _GDIPlus_BrushCreateSolid("0xFF" & $sThemeColor) _GDIPlus_GraphicsFillRect($hCtxt, 0, 0, $iW, $iH, $hBrushBall1) Local $i, $fDH, $height local $ixPartScreen = $iW/16 For $i = 0 To $iballs - 1 Local $iSpeed, $x if $aPos[$i][2] = 1 then if $aPos[$i][0] < $ixPartScreen * 7 Then $x = $aPos[$i][0] if $x < 0 then $x = 0 $iSpeed = 5 + (20 * ((($ixPartScreen * 7) - $x) * 100 ) / ($ixPartScreen * 7)) / 100 ElseIf $aPos[$i][0] > ($ixPartScreen * 9 - ($i * $iRadius * 1.5)) Then $iSpeed = 20 + (60 * ((($aPos[$i][0] - $ixPartScreen * 9)) * 100 ) / ($ixPartScreen * 9)) / 100 Else $iSpeed = 2 EndIf if $i > 0 and $aPos[$i - 1][0] - ($aPos[$i][0] + $iSpeed) < 13 and $aPos[$i][0] < $ixPartScreen * 9 Then $aPos[$i][0] = $aPos[$i - 1][0] - 13 Else $aPos[$i][0] = $aPos[$i][0] + $iSpeed EndIf EndIf if $i < $iballs - 1 Then if $aPos[$i][0] > $ixPartScreen * 3 then $aPos[$i + 1][2] = 1 EndIf If $aPos[$i][0] > $iW + $iRadius Then $aPos[$i][2] = 0 if $i = $iballs - 1 Then $aPos[$i][2] = 2 EndIf _GDIPlus_GraphicsFillCircle($hCtxt, $aPos[$i][0], $aPos[$i][1], $iRadius , $hBrushBall2) Next _GDIPlus_GraphicsDispose($hCtxt) _GDIPlus_BrushDispose($hBrushBall1) _GDIPlus_BrushDispose($hBrushBall2) If $bHBitmap Then Local $hHBITMAP = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap) _GDIPlus_BitmapDispose($hBitmap) Return $hHBITMAP EndIf Return $hBitmap EndFunc ;==>_GDIPlus_LinearBalls Func _GDIPlus_GraphicsFillCircle($hCtxt, $iXCenterPos, $iCenterYPos, $iRadius, $hBrush) _GDIPlus_GraphicsFillEllipse($hCtxt, $iXCenterPos - $iRadius, $iCenterYPos - $iRadius, $iRadius * 2, $iRadius * 2, $hBrush) EndFunc ;==>_GDIPlus_GraphicsFillCircle
    1 point
  29. Other than this list in the first post?: There isn't too much we can do from our side but we are always open to suggestions. Jos
    1 point
  30. A little bit cleaner, with color choice in one place : #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <Memory.au3> #include <GDIPlus.au3> #include <WindowsConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <TrayConstants.au3> Global Const $sExcelColor = "217346", $sWordColor = "2b579a", $sOutlookColor = "B7472A" Global Const $sThemeColor = $sOutlookColor Global Const $hDwmApiDll = DllOpen("dwmapi.dll") Global $sChkAero = DllStructCreate("int;") DllCall($hDwmApiDll, "int", "DwmIsCompositionEnabled", "ptr", DllStructGetPtr($sChkAero)) Global $bAero = DllStructGetData($sChkAero, 1) Global $fStep = 0.02 If Not $bAero Then $fStep = 1.25 _GDIPlus_Startup() Global $iW = 300, $iH = 120 $hGUI = GUICreate("Office", 442, 252, @DesktopWidth /2.95, @DesktopHeight /3.2, $WS_POPUP) GUISetBkColor("0x" & $sThemeColor) ;~ GUISetBkColor(0xB7472A) ;GUISetBkColor(0x2b579a) ;Word Blue ;~ GUISetBkColor(0x217346) ;Excel Green $Label1 = GUICtrlCreateLabel("SciTE4AutoIt3", 8, 8, 102, 21) GUICtrlSetFont(-1, 10, 400, 0, "Segoe UI Light") GUICtrlSetColor(-1, 0xFFFFFF) $Label2 = GUICtrlCreateLabel("AutoIt 247", 64, 72, 314, 75, BitOR($SS_CENTER,$SS_CENTERIMAGE)) GUICtrlSetFont(-1, 40, 400, 0, "Segoe UI Light") GUICtrlSetColor(-1, 0xFFFFFF) $Label3 = GUICtrlCreateLabel("Starting...", 10, 205, 54, 21) GUICtrlSetFont(-1, 10, 400, 0, "Segoe UI Light") GUICtrlSetColor(-1, 0xFFFFFF) $Label4 = GUICtrlCreateLabel("r", 410, 4, 20, 21) GUICtrlSetFont(-1, 12, 400, 0, "Webdings") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetTip(-1, "Closes the splash screen.") $Label5 = GUICtrlCreateLabel("0", 385, 0, 20, 21) GUICtrlSetFont(-1, 12, 400, 0, "Webdings") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetTip(-1, "Minimises the splash screen.") GUISetState(@SW_SHOW) Global Const $iPic = GUICtrlCreatePic("", 80, 150, $iW, $iH) GUICtrlSetState(-1, $GUI_DISABLE) WinSetTrans($hGUI, "", 0) GUISetState() Global $hHBmp_BG, $hB, $iSleep = 100 GUIRegisterMsg($WM_TIMER, "PlayAnim") DllCall("user32.dll", "int", "SetTimer", "hwnd", $hGUI, "int", 0, "int", $iSleep, "int", 0) Global $z, $iPerc For $z = 1 To 255 Step $fStep WinSetTrans($hGUI, "", $z) Next Do Switch GUIGetMsg() Case $GUI_EVENT_CLOSE, $Label4 ConsoleWrite("Exit") GUIRegisterMsg($WM_TIMER, "") _WinAPI_DeleteObject($hHBmp_BG) _GDIPlus_Shutdown() For $z = 255 To 1 Step -$fStep WinSetTrans($hGUI, "", $z) Next GUIDelete($hGUI) Exit EndSwitch Until False Func PlayAnim() $hHBmp_BG = _GDIPlus_ThreeBalls($iW, $iH, $iPerc) $hB = GUICtrlSendMsg($iPic, $STM_SETIMAGE, $IMAGE_BITMAP, $hHBmp_BG) If $hB Then _WinAPI_DeleteObject($hB) _WinAPI_DeleteObject($hHBmp_BG) ; Joue sur la vitesse d affichage $iPerc += 1 If $iPerc > 110 Then $iPerc = 0 EndFunc ;==>PlayAnim Func _GDIPlus_ThreeBalls($iW, $iH, $iPerc, $sString = "Please wait...", $iRadius = 5, $iBalls = 3, $bHBitmap = True) Local Const $iDiameter = $iRadius * 2 Local $tPointF1 = DllStructCreate("float;float") Local $pPointF1 = DllStructGetPtr($tPointF1) Local $tPointF2 = DllStructCreate("float;float") Local $pPointF2 = DllStructGetPtr($tPointF2) DllStructSetData($tPointF1, 1, $iDiameter) DllStructSetData($tPointF1, 2, 0) DllStructSetData($tPointF2, 1, $iDiameter) DllStructSetData($tPointF2, 2, $iDiameter) Local $hBrushBall2 = DllCall($__g_hGDIPDll, "uint", "GdipCreateLineBrush", "ptr", $pPointF1, "ptr", $pPointF2, "uint", 0xFFcecbca, "uint", 0xFFf2eeed, "int", 1, "int*", 0) $hBrushBall2 = $hBrushBall2[6] Local $hBitmap = _GDIPlus_BitmapCreateFromScan0($iW, $iH) Local Const $hCtxt = _GDIPlus_ImageGetGraphicsContext($hBitmap) _GDIPlus_GraphicsSetSmoothingMode($hCtxt, 2) _GDIPlus_GraphicsSetPixelOffsetMode($hCtxt, $GDIP_PIXELOFFSETMODE_HIGHQUALITY) Local Const $hBrushBall1 = _GDIPlus_BrushCreateSolid("0xFF" & $sThemeColor) _GDIPlus_GraphicsFillRect($hCtxt, 0, 0, $iW, $iH, $hBrushBall1) Local $aPos[$iBalls + 2][4], $iArrayPos, $j = 1 Local Static $aCircle[$iBalls + 1] For $i = 0 To $iBalls - 1 $aPos[($iBalls - 1) - $i][0] = ($iW / 2) - (($iDiameter * 3) * ($i + 1)) + (($iBalls - 1) / 2 * ($iDiameter * 3)) + $iDiameter * 3 $aPos[($iBalls - 1) - $i][1] = ($iH - $iRadius) / 2 _GDIPlus_GraphicsFillCircle($hCtxt, $aPos[($iBalls - 1) - $i][0], $aPos[($iBalls - 1) - $i][1], $iRadius, $hBrushBall1) $aPos[($iBalls - 1) - $i][2] = 100 / $iBalls $iArrayPos = Int($iPerc / ($aPos[($iBalls - 1) - $i][2])) $aPos[$iArrayPos][3] = ($iPerc - ($iArrayPos * ($aPos[($iBalls - 1) - $i][2]))) / $aPos[($iBalls - 1) - $i][2] If $iArrayPos > 0 Then For $j = 0 To $iArrayPos - 1 $aPos[$j][3] = 1 Next EndIf Next ; Animation remplissage des balles Local $i, $fDH Local Static $s For $i = 0 To $iBalls - 1 $fDH = Sin($s + Cos($i )) $s += 0.1 _GDIPlus_GraphicsFillCircle($hCtxt, $aPos[$i][0], $aPos[$i][1], $iRadius * abs($fDH) , $hBrushBall2) Next _GDIPlus_GraphicsDispose($hCtxt) _GDIPlus_BrushDispose($hBrushBall1) _GDIPlus_BrushDispose($hBrushBall2) ;~ _GDIPlus_PenDispose($hPen) If $bHBitmap Then Local $hHBITMAP = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap) _GDIPlus_BitmapDispose($hBitmap) Return $hHBITMAP EndIf Return $hBitmap EndFunc func _GDIPlus_GraphicsFillCircle($hCtxt, $iXCenterPos, $iCenterYPos, $iRadius, $hBrush) _GDIPlus_GraphicsFillEllipse($hCtxt, $iXCenterPos - $iRadius, $iCenterYPos - $iRadius, $iRadius * 2, $iRadius * 2, $hBrush) endFunc
    1 point
  31. Thanks A lot!
    1 point
  32. AZJIO

    Set BK Color normal

    #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> Global $bToggle = False $Form1 = GUICreate("Form1", 332, 245, 317, 159) $Button1 = GUICtrlCreateButton("Button1", 32, 32, 81, 49) $Button2 = GUICtrlCreateButton("Button2", 152, 32, 121, 57) $Button3 = GUICtrlCreateButton("A", 64, 152, 209, 73) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE ExitLoop Case $Button3 $bToggle = Not $bToggle If $bToggle Then GUICtrlSetBkColor($Button1, 0xFF0000) GUICtrlSetBkColor($Button2, 0xFF0000) GUICtrlSetData($Button3, "B") Else GUICtrlSetStyle($Button1, $GUI_SS_DEFAULT_BUTTON) GUICtrlSetStyle($Button2, $GUI_SS_DEFAULT_BUTTON) GUICtrlSetData($Button3, "A") EndIf EndSwitch WEnd
    1 point
  33. I couldn't find how to search for images with transparency with the ImageSearch library, but finally figured it out on my own. I thought I'd share how to do it here since I can't find the info anywhere. Just in case someone else is having trouble with this. Here is a link to the ImageSearch library ( *note I'm using the version by qsek which fixes a memory leak I guess ) ImageSearch library thread : Basically you put the *Trans line BEFORE the filename + path, for instance: _ImageSearchArea( "*Trans0xFF00FF " & "test.png", 1, 0, 0, 800, 600, $x, $y, 0 ) The *Trans0xFF00FF will ignore all bright pink pixels in test.png The *Trans option syntax is explained here: http://www.autohotkey.com/docs/commands/ImageSearch.htm I cannot tell you how arcane this was for a autoit newbie like myself O.o There really should be an imagesearch function built into autoit, the pixel searches are way too slow.
    1 point
×
×
  • Create New...