Jump to content

TheDcoder

Active Members
  • Posts

    7,103
  • Joined

  • Days Won

    88

Everything posted by TheDcoder

  1. <snip> Hello , This time my script is throwing an error which does not make sense... How can I fix this? Code Snippet from the screenshot: P.S You saw it right, I am making a small handy tool for AutoIt Coders, TD
  2. Sorry for the confusion, I was busy with coding P.S I just found out the search feature in the help file, Very helpful!
  3. ​I already tired that, but I wanted to use the default system font ​I used them to save memory (RAM) as I don't release the source of this project, I use predefined variables in my other projects ​Oh , ISN AutoIt Studio's color picker generated that for me, Thanks
  4. ​No, I meant "next time will look in all section of help file"
  5. I meant "Sorry for the trouble, I will do it myself"
  6. Hello, I am using this code: #include "StringSize.au3" StatusIndicator("Test" & @CRLF & "|", 15) Func StatusIndicator($sStatus, $sSize = 8.5, $hParent = 0) $aDimensions = _StringSize($sStatus, $sSize) $aDimensions[2] *= 1.05 ; Increase the width a tad $hGUI = GUICreate("", 50 + $aDimensions[2], 50 + $aDimensions[3], -1, -1, $WS_POPUP + $WS_BORDER + $DS_SETFOREGROUND, -1, $hParent) GUISetBkColor(0xFFFFFF) GUICtrlCreateLabel($sStatus, ((50 +$aDimensions[2]) - $aDimensions[2]) / 2, ((50 +$aDimensions[3]) - $aDimensions[3]) / 2, $aDimensions[2], $aDimensions[3], 0x01) GUICtrlSetFont(-1, $sSize) GUISetState() Return $hGUI EndFunc ; This function requires StringSize UDF!!! Get it from here: http://www.autoitscript.com/forum/topic/114034-stringsize-m23-new-version-16-aug-11/The result: Also, when I change the second string to "|Test": Why is this happening? Thanks in Advance, TD
  7. ​Well... I searched the GUI function reference section
  8. Wow, I forgot to look in the macro section... Sorry for the trouble, TD
  9. How can I use those 2 macros? I search the help file but I found nothing... Thanks in advance, TD
  10. @Melba23 Great! Will be eagerly waiting, TD
  11. @Melba23 Yes Melba, All the bugs are gone, TD
  12. @Melba23 I click the notifications & it happens (mostly when I click the partially visible [margin?] notifications). Also the windows explorer minimizes sometimes (very rarely)
  13. @Melba23 I have done the testing. The bug seems to be fixed but I found a new bug: <snip> Windows explorer's window is showing its menu (the same effect when you right click the [top] border of any window. TD
  14. @Melba23 Will test & give you the results
  15. Hello, Please look at this code: #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include "StringSize.au3" For $i = 1 To 100 StatusIndicator("Really Loooooong Text", $i) Next Func StatusIndicator($sStatus, $sSize = 8.5, $hParent = 0) $aDimensions = _StringSize($sStatus, $sSize) $hGUI = GUICreate("", 50 + $aDimensions[2], 50 + $aDimensions[3], -1, -1, $WS_POPUP + $WS_BORDER, -1, $hParent) GUISetBkColor(0xFFFFFF) GUICtrlCreateLabel($sStatus, ((50 +$aDimensions[2]) - $aDimensions[2]) / 2, ((50 +$aDimensions[3]) - $aDimensions[3]) / 2, $aDimensions[2], $aDimensions[3], 0x01) GUICtrlSetFont(-1, $sSize) GUISetState() Sleep(250) EndFuncResult: (Fast Forwarded by 250 %) As you can see, the last word ("Text") is automatically shifting down, How can I prevent this? Thanks in Advance, TD
  16. Thanks!
  17. Hello, I am currently using this code: Func StatusIndicator($sStatus, $sSize = 8.5, $hParent = 0) ; Function for my program, feel free to use it $aDimensions = _StringSize($sStatus, $sSize) $hGUI = GUICreate("", 50 + $aDimensions[2], 50 + $aDimensions[3], -1, -1, $WS_POPUP, -1, $hParent) GUISetBkColor(0xFFFFFF) $hLabel = GUICtrlCreateLabel($sStatus, (50 + $aDimensions[2]) / 2, (50 + $aDimensions[3]) / 2, $aDimensions[2], $aDimensions[3]) GUISetState() While 1 WEnd EndFuncI cant get $hLabel centered in the GUI, I don't know what's wrong Thanks in advance, TD
  18. Thanks Melba I got confused with this:
  19. Thanks Melba
×
×
  • Create New...