
w0uter
Active Members-
Posts
2,204 -
Joined
-
Last visited
Everything posted by w0uter
-
Replace script while executing
w0uter replied to newton1171's topic in AutoIt General Help and Support
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 -
Yes, now go away.
-
Try "www/News.txt" If that doesnt work im out of guesses.
-
Whats the @error at the other commands ? Also try to make it @scriptdir & '\News.txt'
-
Global Vars + Functions Not Working At All..
w0uter replied to Jasio's topic in AutoIt General Help and Support
Are you sure you can have multiple Adlib's ? -
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.
-
To aim with a gun (sniper rifle) that doesnt have a xhair.
-
http://www.autoitscript.com/forum/index.ph...ch&mode=adv
-
Opening a file with default application...
w0uter replied to rush4hire's topic in AutoIt General Help and Support
Ignore SmOke_N he is tired. http://www.autoitscript.com/autoit3/docs/faq.htm#6 Run(@comspec & ' /c start ' & $s_yourfile) -
or he could just use _Ftp.au3 from my signature.
-
StringRegExp result not making any sense
w0uter replied to OverloadUT's topic in AutoIt General Help and Support
| = OR -
http://www.openwall.com/wordlists/ has a huge dictionary file.
-
Whats wrong with it ?
-
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
-
search the board. there are udf's that do this. or write your own
-
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.
-
sending "^v{ENTER}" is faster.
-
IRC CLIENT (aprox 123 kb) 3728 lines 75 pages
w0uter replied to Adam1213's topic in AutoIt Example Scripts
You dont want him. He uses Call() -
can it find the plugin ?
-
I can live with that awnser Also i got the idee from the threaded timed msgbox in autoit
-
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.
-
Go and read what a thread actually is please.
-
$chars = string = 0 you need to Asc($chars)
-
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))
-
#include <INet.au3> [edit] And ofcourse you need to run the beta, but doesnt evryone already ? [/edit]