Jump to content

McGod

Active Members
  • Posts

    569
  • Joined

  • Last visited

Everything posted by McGod

  1. very nice!!
  2. This is a simple game of trying to push boxes into goal spots! It also comes with a Level Designer so you can create your own level to be harder then anyone elses! One of the Levels included: The Level Designer: Download: http://www.speedyshare.com/710692230.html (Sorry for external download, have no space on Forum Attachments) Link to Store Levels At: http://sokoban.ampaste.net/ There are three test levels included.
  3. Anyone got any good methods of working with really big arrays, there is 18 million elements in it (2 million over limit) I might go about trying to split it in two. Any ideas?
  4. Create an OnAutoitExit Function that will kill blockinput Opt("OnExitFunc", "KillBlock") Func KillBlock () BlockInput(0) EndFunc
  5. YOu could change the domain to http://www.whatismyip.org/ then.
  6. I have a function in both Actionscript and C++, but I have no idea on how exactly to convert to autoit. function getStringHashBase(s, hash) { var __reg3 = undefined; var __reg2 = undefined; __reg2 = 0; while (__reg2 < s.length) { hash = (hash << 4) + s.charCodeAt(__reg2); if (__reg3 = hash & 4.02653e+009) { hash = hash ^ __reg3 >> 24; hash = hash ^ __reg3; } ++__reg2; } return hash; } C++: DWORD GetStringHashBase(CHAR* szString, DWORD dwHash) { DWORD dwLoc3 = NULL; for(UINT i = 0; i < strlen(szString); i++) { dwHash = (dwHash << 4) + szString[i]; dwLoc3 = dwHash & 4,026532E+009; if(dwHash & 4,026532E+009) { dwHash = dwHash ^ dwLoc3 >> 24; dwHash = dwHash ^ dwLoc3; } } return dwHash; } As far as I have gotten on Autoit Func GetStringHashBase($String, $Hash) Local $sSplit = StringSplit($String, "") For $n = 1 To $sSplit[1] Step 1 $dwHash = BitShift($dwHash, -4) Next EndFunc
  7. Easy method: Have it take a base screenshot and MD5 it Every 5 seconds, take a screenshot and MD5 it then compare the two. If they aren't the same MD5 then something changed.
  8. I much liked PHP's date function so I decided to make it for Autoit. ;============================================================== ;Function Name: Date($Format, [$Timestamp=0]) ;Description: Parses your format and returns a date ;Parameters: $Format - A string you want formatted ; $Timestamp - A value from _NowCalc () ; Example: 2008/05/05 09:53:53 ;Return Values: Returns a formatted string ;Reference: This is a replica of PHP date (); function ; Use http://ca3.php.net/date for formatted ;============================================================== Download: Date.au3 Example: Date('F j, Y, g:i a') // March 10, 2001, 5:16 pm Reference: http://ca3.php.net/date Some formats I didn't include due to the fact the information isn't enough. B - u - e - I - O - P - T - Z - c - r - U
  9. By the way, memory editing gets you no where in online games. Client-server checks pwn this.
  10. I made this so I don't have to use PixelSearch () to find close colors, but then I continued to add some extra functions. Functions: _ColorCheckVariation($nColor, $sCompare, $sVari=5) Check if the two color's are within a variation _ColorGetVariation($nColor1, $nColor2, $nRetType=1) Check if the two color's are within a variation _ColorRGBToHex($nRed=0, $nGreen=0, $nBlue=0) Check if the two color's are within a variation _ColorHexToRGB($nColor) Check if the two color's are within a variation Download: Color_Variation.au3 An example that uses this Example.au3
  11. We don't support trojans, backdoors or viruses here. You are the people who get Autoit flagged on virus database.
  12. I haven't seen one yet that actually has the check part in it so I made one. Encrypts a random string along with a confirm code. When you check, decrypt string and compare codes. Pretty basic. UDF: Keygen.au3 Example: Example.au3
  13. Function WinGetTitle WinGetTitle("") returns the active window's title. So, something like this. Func _Activated () Local $sRet[2] $sRet[0] = WinGetTitle("") $sRet[1] = WinGetHandle($sRet[0]) Return $sRet EndFunc
  14. An idea for you guys to consider is to add a Endmessage character or something. If you have: TCPSend($Sock, "Message1") TCPSend($Sock, "Message2") and the server lags a little bit or is parsing out messages you can get: Message1Message2
  15. You could take this to the next level and add multiplayer support!
  16. While 1 Global $pass = InputBox( "Password", "Please enter password", "", "*", 190, 115) If @error Then Exit If $pass = "@reboot" Then ExitLoop MsgBox( 1, "Rejected!", "Incorrect Password", 5) WEnd MsgBox( 1, "Accepted", "Password accepted!", 30) ;Script goes here
  17. If $Data = "start" Then
  18. Too true.
  19. Not an easy as you might think Zedna, Since he's using a DOS command prompt so he would telnet to his router, send root via telnet. Try uses TCP() functions, they would be able to implement the Telnet.
  20. Using Edit Control Functions, you can near mimic DOS like edit controls. #include <GuiConstants.au3> #include <WindowsConstants.au3> #include <AVIConstants.au3> #include <ButtonConstants.au3> #include <ComboConstants.au3> #include <Constants.au3> #include <DateTimeConstants.au3> #include <EditConstants.au3> #include <FontConstants.au3> #include <GDIPlusConstants.au3> #include <HeaderConstants.au3> #include <ImageListConstants.au3> #include <IPAddressConstants.au3> #include <ListBoxConstants.au3> #include <ListViewConstants.au3> #include <MemoryConstants.au3> #include <MenuConstants.au3> #include <ProgressConstants.au3> #include <RebarConstants.au3> ;~ #include <ScrollBarConstants.au3> #include <SecurityConstants.au3> #include <SliderConstants.au3> #include <StaticConstants.au3> #include <StructureConstants.au3> #include <TabConstants.au3> #include <ToolbarConstants.au3> #include <TooltipConstants.au3> #include <TreeviewConstants.au3> #include <UpDownConstants.au3> #include <WindowsConstants.au3> #include <GUIEdit.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 634, 453, 193, 115) HotKeySet("{BACKSPACE}", "Testet") HotKeySet("{ENTER}", "Testt") HotKeySet("{DEL}", "Testt") $Edit1 = GUICtrlCreateEdit("", 0, 0, 633, 449) GUICtrlSetData(-1, @SystemDir & ">") GUICtrlSetFont(-1, 8, 400, 0, "Lucida Console") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x000000) GUISetState(@SW_SHOW) Global $sLastLine = _GUICtrlEdit_GetTextLen($Edit1) #EndRegion ### END Koda GUI section ### While 1 Sleep(10) _GUICTrlEdit_SetSel($Edit1, _GUICtrlEdit_GetTextLen($Edit1)+1, _GUICtrlEdit_GetTextLen($Edit1)+1) $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func Testt () Local $sCmd = StringMid(GUICtrlRead($Edit1), $sLastLine+1) _GUICtrlEdit_BeginUpdate($Edit1) recall_command($sCmd) _GUICtrlEdit_EndUpdate($Edit1) _GUICtrlEdit_AppendText($Edit1, @SystemDir & ">") Global $sLastLine = _GUICtrlEdit_GetTextLen($Edit1) MsgBox(1, "", $sLastLine) EndFunc Func recall_command($info) $cmdinfo = Run(@ComSpec & " /c " & $info, @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD + $STDIN_CHILD) While 1 $line = StdoutRead($cmdinfo) If @error Then Return If $line = "" Then ContinueLoop GUICtrlSetData($Edit1, GUICtrlRead($Edit1) & @CRLF & $line); WEnd EndFunc ;==>recall_command Func Testet () Local $sSel = _GUICtrlEdit_GetSel($Edit1) If $sSel[0] <= $sLastLine Then Return If $sSel[1] - $sSel[0] = 0 Then GUICtrlSetData($Edit1, StringTrimRight(GUICtrlRead($Edit1), 1)) Else _GUICtrlEdit_ReplaceSel($Edit1, "") EndIf EndFunc bit bugged, and very rough.
  21. #include <GuiConstants.au3> #include <WindowsConstants.au3> #include <AVIConstants.au3> #include <ButtonConstants.au3> #include <ComboConstants.au3> #include <Constants.au3> #include <DateTimeConstants.au3> #include <EditConstants.au3> #include <FontConstants.au3> #include <GDIPlusConstants.au3> #include <HeaderConstants.au3> #include <ImageListConstants.au3> #include <IPAddressConstants.au3> #include <ListBoxConstants.au3> #include <ListViewConstants.au3> #include <MemoryConstants.au3> #include <MenuConstants.au3> #include <ProgressConstants.au3> #include <RebarConstants.au3> ;~ #include <ScrollBarConstants.au3> #include <SecurityConstants.au3> #include <SliderConstants.au3> #include <StaticConstants.au3> #include <StructureConstants.au3> #include <TabConstants.au3> #include <ToolbarConstants.au3> #include <TooltipConstants.au3> #include <TreeviewConstants.au3> #include <UpDownConstants.au3> #include <WindowsConstants.au3> ScrollBars is commented due to a constant confliction.
  22. http://www.autoitscript.com/autoit3/docs/f...ons/UDPRecv.htm http://www.autoitscript.com/autoit3/docs/f...ons/UDPSend.htm http://www.autoitscript.com/autoit3/docs/f...ons/UDPOpen.htm For syntax: http://tools.ietf.org/html/rfc2865
  23. I'm kinda lost on where this is going.
  24. You could use WinPCap with DllCall to achieve this.
  25. That is really cool, you should add more animations, like randomly a koopa appears, fights mario.
×
×
  • Create New...