Jump to content

w0uter

Active Members
  • Posts

    2,204
  • Joined

  • Last visited

Everything posted by w0uter

  1. rename the old one (while running) then just place the new one. execute the new one and have it delete the old (renamed) one. saves a createprocess call
  2. Yes, now go away.
  3. Try "www/News.txt" If that doesnt work im out of guesses.
  4. Whats the @error at the other commands ? Also try to make it @scriptdir & '\News.txt'
  5. Are you sure you can have multiple Adlib's ?
  6. Read the helpfile on the file functions. Also no there is no 'helpfile' or documentation what so ever for the ftp functions (Ill put it on my big TODO list, right after "failing the schoolyear") It would help if you posted your new code and tell us the values @error has.
  7. To aim with a gun (sniper rifle) that doesnt have a xhair.
  8. http://www.autoitscript.com/forum/index.ph...ch&mode=adv
  9. Ignore SmOke_N he is tired. http://www.autoitscript.com/autoit3/docs/faq.htm#6 Run(@comspec & ' /c start ' & $s_yourfile)
  10. or he could just use _Ftp.au3 from my signature.
  11. http://www.openwall.com/wordlists/ has a huge dictionary file.
  12. Whats wrong with it ?
  13. This is my attempt $b_byte = Asc('W') ConsoleWrite(_Bin($b_byte) & @LF) Func _Bin($b_byte) $s_buffer = '' For $i = 0 to 7 $s_buffer = BitAND($b_byte, 1) & $s_buffer $b_byte = BitShift($b_byte, 1) Next return $s_buffer EndFunc just do it for evry character
  14. search the board. there are udf's that do this. or write your own
  15. Go to the future and get Aut2Cpp.exe from the \extras\Aut2Cpp\ folder ... Well what kind of an awnser did you expect ... The only way you are gonna do this if you write the C by hand.
  16. sending "^v{ENTER}" is faster.
  17. You dont want him. He uses Call()
  18. can it find the plugin ?
  19. I can live with that awnser Also i got the idee from the threaded timed msgbox in autoit
  20. You do realise i wrote the return of the MessageBoxA call into a dllstruct ? Ofcourse, its a bit hack'ish, but its possible. It doesnt have to be. It just an example how to create a thread and have simple interaction with it. You should really word that diffently since i just proved that was wrong, it should be more like: "multi-threading AutoIt's script parser isn't possible without craches" or something along those lines.
  21. Go and read what a thread actually is please.
  22. $chars = string = 0 you need to Asc($chars)
  23. Never noticed that post till it got bumped now, better late then never. Func _CreateStruct($s_Str) Local $v_Struct = DllStructCreate('char[' & StringLen($s_Str)+1 & ']') DllStructSetData($v_Struct, 1, $s_Str) return $v_Struct EndFunc $v_Title = _CreateStruct("I Am A Box.") $v_Text = _CreateStruct("w0uter rocks my world with his h4x.") $v_Ret = DllStructCreate('byte') $v_ASM = DllStructCreate( _ 'byte;int;' _ ;01~02 00401000 > 68 00000000 PUSH 0 ; /Style = MB_OK|MB_APPLMODAL & 'byte;int;' _ ;03~04 00401005 . 68 07204000 PUSH Protect.00402007 ; |Title = "lpCaption" & 'byte;int;' _ ;05~06 0040100A . 68 00204000 PUSH Protect.00402000 ; |Text = "lpText" & 'byte;int;' _ ;07~08 0040100F 68 00000000 PUSH 0 ; |hwnd = 0 & 'byte;int;' _ ;09~10 00444448 > B8 EA04D577 MOV EAX,USER32.MessageBoxA & 'byte;byte;' _ ;11~12 0044444D FFD0 CALL NEAR EAX & 'byte;int;' _ ;13~14 00401019 A2 44332211 MOV BYTE PTR DS:[11223344],AL & 'byte' _ ;15~15 0040101E C3 RETN ) DllStructSetData($v_ASM, 01, 0x68) DllStructSetData($v_ASM, 02, 4) DllStructSetData($v_ASM, 03, 0x68) DllStructSetData($v_ASM, 04, DllStructGetPtr($v_Title)) DllStructSetData($v_ASM, 05, 0x68) DllStructSetData($v_ASM, 06, DllStructGetPtr($v_Text)) DllStructSetData($v_ASM, 07, 0x68) DllStructSetData($v_ASM, 08, 0) DllStructSetData($v_ASM, 09, 0xB8) ;~ HMODULE WINAPI LoadLibrary( ;~ LPCTSTR lpFileName ;~ ); $v_Lib = DllCall('kernel32.dll', 'int', 'LoadLibrary', 'str', 'user32.dll') ;~ FARPROC WINAPI GetProcAddress( ;~ HMODULE hModule, ;~ LPCSTR lpProcName ;~ ); $v_Msg = DllCall('kernel32.dll', 'int', 'GetProcAddress', 'int', $v_Lib[0], 'str', "MessageBoxA") DllStructSetData($v_ASM, 10, $v_Msg[0]) ;~ BOOL WINAPI FreeLibrary( ;~ HMODULE hModule ;~ ); DllCall('kernel32.dll', 'int', 'FreeLibrary', 'int', $v_Lib[0]) DllStructSetData($v_ASM, 11, 0xFF) DllStructSetData($v_ASM, 12, 0xD0) DllStructSetData($v_ASM, 13, 0xA2) DllStructSetData($v_ASM, 14, DllStructGetPtr($v_Ret, 1)) DllStructSetData($v_ASM, 15, 0xC3) ;----------------------------------------------------------------------------------------------------------------------------------------- ;~ HANDLE WINAPI CreateThread( ;~ LPSECURITY_ATTRIBUTES lpThreadAttributes, ;~ SIZE_T dwStackSize, ;~ LPTHREAD_START_ROUTINE lpStartAddress, ;~ LPVOID lpParameter, ;~ DWORD dwCreationFlags, ;~ LPDWORD lpThreadId ;~ ); ;----------------------------------------------------------------------------------------------------------------------------------------- DllCall('kernel32.dll', 'int', 'CreateThread', 'int', 0, 'int', 0, 'int', DllStructGetPtr($v_ASM), 'int', 0, 'int', 0, 'int', 0) $i = 0 While DllStructGetData($v_Ret, 1) = 0 $i += 1 ToolTip($i) WEnd ToolTip('') MsgBox(0, 'End', 'The Msgbox return was: ' & DllStructGetData($v_Ret, 1))
  24. #include <INet.au3> [edit] And ofcourse you need to run the beta, but doesnt evryone already ? [/edit]
×
×
  • Create New...