Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/15/2012 in all areas

  1. Check this out, it's on your VBS pic Interesting but the creature aims "Memory Size" field.
    2 points
  2. Bowmore

    array[] dumb error

    Where does the code with the error come from the line $tags[$i] = "" is not in the script you posted. If your any lines in your file contain more than 5 tags? you will get an array out of bounds error. Have a look in the help file for ReDim to see how to increase the size of the array as required.
    1 point
  3. water

    Active Directory UDF

    I defenitely will! I'm sitting in Casablanca right now and will enjoy Marocco for 11 more days!
    1 point
  4. AdmiralAlkex

    SDL UDF

    Thank you for your offer, but MVPs has a whopping 8MB attachment space, so I'm cool for the time being Good choices That's a great beginning! Looks like it will be a cool game. It will be very interesting to see when it's finished. As for the crash, i guess you could say it's two-part. To find it, I put a bunch of ConsoleWrite()s to find where the trouble was (I guess I'm old-school that way?) and found this: for $i= 0 to $tank_drillframemax-1;loop thru all the drill movement frames _SDL_FreeSurface($tank_drillframemax[$a][$i]) next $tank_drillframemax is not an array so AutoIt crashes/locks up. I think that may be a copy paste error, looks like the array is $tank_drill. Normally AutoIt would crash with the "Subscript used with non-Array variable.", pointing you to the exact location and all that which would make it easy to discover and fix, but something in the UDF causes crashes to lock up AutoIt instead of failing nicely. I don't know why. I have also fallen for this many times, I find in extremely frustrating. But you know what you could also do? Skip it. While it's considered nice to clean up, it's technically a waste of time. The memory used by the process will be returned by Windows anyway when it closes. Yeah exactly, you use DllStruct* functions. It's kind of a bother, I hope AutoIt can do it the c++ way in the future. Hehe, thank you back. Will you believe me if I tell you that Joe Zimmerman was an accident? I'm a huge fan of Star Trek, and one of the best characters in Voyager is The Doctor. He didn't have a name until the last episode when he became known as Joe. And his creators last name was Zimmerman, so I put those together for some kind of obscure easter-egg. I only discovered the comedian later Sorry for taking so much time to answer.
    1 point
  5. Mobius

    AutoCamo - 98.18b

    Thanks Admiral here, have a dilithium crystal * Vlad
    1 point
  6. GOD! WHY DO I KEEP DOING THIS?!?! I always post a damn question and find the solution a few minutes later.... Suddenly I remembered there was a macro for just THAT. @SW_SHOWNOACTIVATE
    1 point
  7. Here ya go: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> #include <ButtonConstants.au3> $WS_EX_NOACTIVATE = 0x08000000 $MA_NOACTIVATE = 3 $MA_NOACTIVATEANDEAT = 4 HotKeySet("{ESC}", "On_Exit") Global $aKeys[48] = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "=", _ "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "[", "]", _ "A", "S", "D", "F", "G", "H", "J", "K", "L", ";", "'", '"', _ "Z", "X", "C", "V", "B", "N", "M", ",", ".", "/", "spc", "enter"] ; Create "keyboard" GUI $hGUI = GUICreate("Test", 360, 120, 500, 100, $WS_POPUPWINDOW, BitOR($WS_EX_TOOLWINDOW, $WS_EX_TOPMOST, $WS_EX_NOACTIVATE)) $dummy1 = GUICtrlCreateDummy() $iCount = 0 For $j = 0 To 3 For $i = 0 To 11 GUICtrlCreateButton("", $i * 30, $j * 30, 30, 30) GUICtrlSetData(-1, $aKeys[$iCount]) $iCount += 1 ;~ GUICtrlSetFont(-1, 10) ;~ GUICtrlSetBkColor(-1, 30000 + 2000 * ($i + 1) + 2000 * ($j + 1)) Next Next $dummy2 = GUICtrlCreateDummy() GUISetState() GUIRegisterMsg($WM_MOUSEACTIVATE, 'WM_EVENTS') Run("notepad.exe") While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $dummy1 To $dummy2 Local $sText = ControlGetText($hGUI, "", $msg) ; Write key If $sText = "spc" Then Send("{SPACE}") ElseIf $sText = "enter" Then Send("{ENTER}") Else Send($sText) EndIf EndSwitch WEnd Func WM_EVENTS($hWndGUI, $MsgID, $WParam, $LParam) Switch $hWndGUI Case $hGUI Switch $MsgID Case $WM_MOUSEACTIVATE ; Check mouse position Local $aMouse_Pos = GUIGetCursorInfo($hGUI) If $aMouse_Pos[4] <> 0 Then Local $word = _WinAPI_MakeLong($aMouse_Pos[4], $BN_CLICKED) _SendMessage($hGUI, $WM_COMMAND, $word, GUICtrlGetHandle($aMouse_Pos[4])) EndIf Return $MA_NOACTIVATEANDEAT EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc Func On_Exit() Exit EndFunc
    1 point
×
×
  • Create New...