
TomCat
Active Members-
Posts
64 -
Joined
-
Last visited
Everything posted by TomCat
-
does not work too :-/ looks like only way is to use unlocker with commandline in a script.
-
Hi tnx for the answer but no doesnt work Any else ideas?
-
Hi I have following Problem. I need to write some text into a file that is opened by an other process. If I try to write into the file like this: $file = FileOpen("test.txt", 1) ; Check if file opened for writing OK If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf FileWrite($file, "Line1") FileWrite($file, "Still Line1" & @CRLF) FileWrite($file, "Line2") FileClose($file) I get error Unable to open file. If I use iniwrite for same file i can write into the file. How can i force FileOpen now to open it for write into the file even if other process is writing to it? Or is their a way to unlock the other file with autoit? I hope someone here can help me
-
very awesome hope for final soon
-
Hi some question. Somebody knows a way to include an exe file into and compiled autoit script without saving it somewhere? I want to run it directly into memory without tempfile. I found out how it work with dll files but not with exe. Im thinking about to run exe file directly into memory or to download it from a server and run it without saving it as temp file Can somebody help me?
-
GUICtrlSetColor not working right for GUICtrlCreateRadio
TomCat replied to TomCat's topic in AutoIt General Help and Support
thank you very much -
Hi does anybody know how to fix that in this example the text "Test" of the $Radio1 = GUICtrlCreateRadio("Test", 4, 3, 105, 24) looks on some pcs red like it should be and on others black? I had this problem on 2 different Windows XP machines. Most user see it with Windows XP red only one black. My test under Win7 result also in black fontcolor. I dont understand why for me it looks like an autoit related bug. Any ideas how to get the right fontcolor on all Windows versions ?^^ #include <GUIConstantsEx.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("test", 114, 36, 192, 114) $Radio5 = GUICtrlCreateRadio("Test", 4, 3, 105, 24) GUICtrlSetFont($Radio1, 8, 800, 0, "MS Sans Serif") GUICtrlSetColor($Radio1, 0xE10000) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch sleep(10) WEnd
-
old _INetGetSource dont get it work again -.-
TomCat replied to TomCat's topic in AutoIt General Help and Support
Ok thx that will work. -
Hi I need to use the old _INetGetSource function from autoit-v3.3.0.0 cause i want to set custom HTTP_USER_AGENT. $useragent = ("test") MsgBox(4096, "Test", _INetGetSource_1("http://www.autoitscript.com/autoit3/files/beta/update.dat"), 10) Func _INetGetSource_1($s_URL, $s_Header = '') If StringLeft($s_URL, 7) <> 'http://' And StringLeft($s_URL, 8) <> 'https://' Then $s_URL = 'http://' & $s_URL Local $h_DLL = DllOpen("wininet.dll") Local $ai_IRF, $s_Buf = '' Local $ai_IO = DllCall($h_DLL, 'int', 'InternetOpen', 'str', $useragent, 'int', 0, 'int', 0, 'int', 0, 'int', 0) If @error Or $ai_IO[0] = 0 Then DllClose($h_DLL) SetError(1) Return "" EndIf Local $ai_IOU = DllCall($h_DLL, 'int', 'InternetOpenUrl', 'int', $ai_IO[0], 'str', $s_URL, 'str', $s_Header, 'int', StringLen($s_Header), 'int', 0x80000000, 'int', 0) If @error Or $ai_IOU[0] = 0 Then DllCall($h_DLL, 'int', 'InternetCloseHandle', 'int', $ai_IO[0]) DllClose($h_DLL) SetError(1) Return "" EndIf Local $v_Struct = DllStructCreate('udword') DllStructSetData($v_Struct, 1, 1) While DllStructGetData($v_Struct, 1) <> 0 $ai_IRF = DllCall($h_DLL, 'int', 'InternetReadFile', 'int', $ai_IOU[0], 'str', '', 'int', 256, 'ptr', DllStructGetPtr($v_Struct)) $s_Buf &= StringLeft($ai_IRF[2], DllStructGetData($v_Struct, 1)) WEnd DllCall($h_DLL, 'int', 'InternetCloseHandle', 'int', $ai_IOU[0]) DllCall($h_DLL, 'int', 'InternetCloseHandle', 'int', $ai_IO[0]) DllClose($h_DLL) Return $s_Buf EndFunc ;==>_INetGetSource But this function now does not longer work and I dont understand why any ideas?
-
false positive http://virscan.org/report/cb94cf26d999cf41270fef06383f3d80.html http://virusscan.jotti.org/de/scanresult/661a60a2953c5680671ff5ba9a2397cf93819830 but it suxx -.-
-
I reported to avira and they still say that its an damaged maleware file with harmful Codefragments...
-
Hi anyone ever wrote an funktion to use VirtualProtect in autoit ? If yes can you post it ?
-
sounds interesting good luck
-
it works well some next question ^^ is it also possible to use this functions also in some games ? and if yes how ?^^
-
can you give me a hint how to use SDL_WarpMouse() and SDL_GetMouseState() ?
-
Nice Some Question: Can you add support for UDP Packets too ?
-
Tnx for the answer I tryed it but u get a wrong adress Any Idea why ?
-
can someone give me an excample how to use _MemoryModuleGetBaseAddress please I tried this: $iPID = WinGetProcess("Test") $sModule = ("test.dll+1A128") $baseADDR = _MemoryModuleGetBaseAddress($iPID, $sModule) but it doesnt work
-
Link is down can someone upload again
-
Hi I wand to call an not documented dll file to get some ID back. I have an Programm (written in vb) that use this dll to get the ID but i want to use it in my own autoit programm. All i have is some code from my disassembler: (IDA) ; CODE XREF: sub_401000+2EFj .text:00401190 lea ecx, [esp+0B74h+var_404] .text:00401197 push ecx .text:00401198 call ds:?GenerateTextKey@CPlayerAccount@@SA_NPAD@Z ; CPlayerAccount::GenerateTextKey(char *) .text:0040119E lea edx, [esp+774h] .text:004011A5 push edx .text:004011A6 call ds:?SetTextKey@CPlayerAccount@@SA_NPAD@Z ; CPlayerAccount::SetTextKey(char *) .text:004011AC push 0FFh .text:004011B1 lea eax, [esp+67Dh] .text:004011B8 push ebx .text:004011B9 push eax .text:004011BA mov [esp+684h], bl .text:004011C1 call sub_4060D0 .text:004011C6 push 0FFh .text:004011CB lea ecx, [esp+381h] .text:004011D2 push ebx .text:004011D3 push ecx .text:004011D4 mov [esp+388h], bl .text:004011DB call sub_4060D0 .text:004011E0 push 0FFh .text:004011E5 lea edx, [esp+48Dh] .text:004011EC push ebx .text:004011ED push edx .text:004011EE mov [esp+494h], bl .text:004011F5 call sub_4060D0 .text:004011FA mov edx, [esp+0B98h+var_B58.lStructSize] .text:004011FE add esp, 2Ch .text:00401201 lea eax, [esp+0B6Ch+flOldProtect] .text:00401205 push eax .text:00401206 lea ecx, [esp+674h] .text:0040120D push ecx .text:0040120E push ebx .text:0040120F push ebx .text:00401210 push offset aInstallkey ; "InstallKey" .text:00401215 push edx .text:00401216 mov [esp+0B84h+flOldProtect], ebp .text:0040121A call edi .text:0040121C mov edx, [esp+0B74h+hKey] .text:00401220 lea eax, [esp+0B74h+cbData] .text:00401224 push eax .text:00401225 lea ecx, [esp+0B78h+var_80C] .text:0040122C push ecx .text:0040122D push ebx .text:0040122E push ebx .text:0040122F push offset aMpaccountname ; "MPAccountName" .text:00401234 push edx .text:00401235 mov [esp+0B8Ch+cbData], ebp .text:00401239 call edi .text:0040123B mov edx, [esp+0B74h+hKey] .text:0040123F lea eax, [esp+0B74h+cbData] .text:00401243 push eax .text:00401244 lea ecx, [esp+0B78h+var_70C] .text:0040124B push ecx .text:0040124C push ebx .text:0040124D push ebx .text:0040124E push offset aMpaccountnames ; "MPAccountNameSig" .text:00401253 push edx .text:00401254 mov [esp+0B8Ch+cbData], ebp .text:00401258 call edi .text:0040125A lea eax, [esp+0B74h+var_60C] .text:00401261 push offset aWt ; "wt" .text:00401266 push eax .text:00401267 call sub_401560 .text:0040126C mov esi, eax .text:0040126E add esp, 8 .text:00401271 cmp esi, ebx .text:00401273 jnz short loc_40128A .text:00401275 push 10h ; uType .text:00401277 push offset aError ; lpCaption .text:0040127C push offset aErrorWritingFi ; lpText .text:00401281 push ebx ; hWnd .text:00401282 call ds:MessageBoxA .text:00401288 jmp short loc_4012E2 .text:0040128A ; --------------------------------------------------------------------------- The red parts are the funtions im interested in ^^ Green are the 3 Strings I want to get from this dll file. But this is all new for me is here anybody who know about such things who can help me ? Its nothing illegal
-
I got it many tnx for the help
-
Look i have up to 15000 Lines in a File. I read this File line after line. Every line is shared in 5 parts like this: Part1|Part2|Part3|Part4|Part5| Now i have 5 Combos with up to 50 items per combo. Value from combo1 should be compared with Part1 from string, but only if it is not the first item (default value) if it match, the string should get added to a list. The same with all other combos. Thats easy for me if i want to filter all every time with all 5 values from all 5 combos. But most times i only want to use combo 1 and 4 or combo 2 and 5 to filter so all stings that match with item from combo 1 and 4 respectively 2 and 5. And I have no Idea how to do this :-/ You now understand what i want to do ?