Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/27/2014 in all areas

  1. I fixed the problem, I had a function in there that I made myself but when I deleted it I forgot to get rid of the variables. Thanks for all the help guys. If $cp[0] < 300 And $cp[1] < 300 And $dead = False Then If $cp[1] < 0 Then ControlMove("","",$obj,$cp[0],$cp[1]+1) ControlMove("","",$prog,$cp[0]-25,$cp[1]-20) ControlMove($gui,"",$prog_b,$cp[0]-25,$cp[1]-20) ;This is the error, just delete "$prog_b" Else ControlMove("","",$obj,$cp[0],$cp[1]+1) ControlMove("","",$prog,$cp[0]-10,$cp[1]-20) EndIf EndIf
    2 points
  2. Hidix17

    Close GUI Window

    Instead of : $Form = GUICreate("Cleaning...", $widthi, $heighti, ($width / 2 ) - ($widthi / 2), ($height / 2 ) - ($heighti / 2),$DS_MODALFRAME,$WS_EX_TOPMOST) you can use: $Form = GUICreate("Cleaning...", $widthi, $heighti, -1,-1,$DS_MODALFRAME,$WS_EX_TOPMOST) and the effect is that same
    1 point
  3. Spider001

    Close GUI Window

    you can always do it on this way then you don't need ProcessWaitClose #notrayicon #include <GUIConstants.au3> #include <WinAPI.au3> $width = _WinAPI_GetSystemMetrics(0) $height = _WinAPI_GetSystemMetrics(1) $widthi = 300 $heighti = 100 $Form = GUICreate("Cleaning...", $widthi, $heighti, ($width / 2 ) - ($widthi / 2), ($height / 2 ) - ($heighti / 2),$DS_MODALFRAME,$WS_EX_TOPMOST) ; width height left top GUICtrlCreateAvi("shell32.dll", 164, 10, 10, -1, -1, BitOr($ACS_TRANSPARENT, $ACS_AUTOPLAY)) GUISetState() RunWait("c:\program files\ccleaner\ccleaner.exe /auto") exit
    1 point
  4. Spider001

    Close GUI Window

    #notrayicon #include <GUIConstants.au3> #include <WinAPI.au3> $width = _WinAPI_GetSystemMetrics(0) $height = _WinAPI_GetSystemMetrics(1) $widthi = 300 $heighti = 100 Run("c:\program files\ccleaner\ccleaner.exe /auto") $Form = GUICreate("Cleaning...", $widthi, $heighti, ($width / 2 ) - ($widthi / 2), ($height / 2 ) - ($heighti / 2),$DS_MODALFRAME,$WS_EX_TOPMOST) ; width height left top GUICtrlCreateAvi("shell32.dll", 164, 10, 10, -1, -1, BitOr($ACS_TRANSPARENT, $ACS_AUTOPLAY)) GUISetState() ProcessWaitClose ("ccleaner.exe") exit
    1 point
  5. That's a prerequisite: When working with computers and modifying security measures you should always know what you do! But how many people actually do
    1 point
  6. This "feature" has been in DOS/Windows for too long to be changed now and many functions in AutoIt merely wrap Windows API. The help is about AutoIt, it isn't a Windows summary.
    1 point
  7. very very nice... I love it..
    1 point
  8. Thanks for the quick replies.
    1 point
  9. @Madrocks - When you post code, please use the provided code quotes, which is to the immediate left of the normal quotes button in the post editor. This makes it far easier for us to read. Don't highlight your code and then use the button, as you need to tell the code editor, it is AutoIt code ... use copy and paste. That said, I don't see where you are calling a function in a loop, just a lot of steps within a function. Admittedly I have only taken a quick look at your code, and not taken it apart. You should use MsgBox's throughout your code, to check on variables etc, to test your logic flow. Here is a very simple representation of using a Loop and a function, where the row number for instance keeps increasing by one. Global $i, $row For $i = 1 To 5 $row = $i MyFunction() Next Exit Func MyFunction() do this to $row do this to $row do this to $row etc EndFunc P.S. Welcome to the forum.
    1 point
  10. Yes (well almost). The == operator also tests for case sensitivity in strings, and that's the difference.
    1 point
  11. Jos

    Comparing any string to 0

    This is because you are comparing numerically and a string is equal to zero. To do a string compare you need to use == Jos
    1 point
  12. For reasons I'm not quite sure of, it pleases me to be able to work with all the different sorts of text files and encodings and to have unicode support. Weird
    1 point
×
×
  • Create New...