Jump to content

TomCat

Active Members
  • Posts

    64
  • Joined

  • Last visited

TomCat's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. does not work too :-/ looks like only way is to use unlocker with commandline in a script.
  2. Hi tnx for the answer but no doesnt work Any else ideas?
  3. 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
  4. very awesome hope for final soon
  5. 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?
  6. less then client can cause server set the limit ^^
  7. Yes i meant 1,5 GHZ sry xD Crypt.au3 UDF works nice with it many tnx for the hind. some benchmark:_StringEncrypt with 80 char long sting ~ 60ms on 800 MHZ CPU _Crypt_EncryptData same string and CPU ~1,5 ms
  8. Hi Im searching for an fast encryption algorithm that need not so much CPU then _StringEncrypt cause I want to use it in an chat and older PC's with ~1,5MHZ need to much CPU zu encrypt/decrypt the chat. Anyone here know faster algorithm maybe with dll to use for my purpose ?
  9. 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
  10. 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?
  11. false positive http://virscan.org/report/cb94cf26d999cf41270fef06383f3d80.html http://virusscan.jotti.org/de/scanresult/661a60a2953c5680671ff5ba9a2397cf93819830 but it suxx -.-
  12. I reported to avira and they still say that its an damaged maleware file with harmful Codefragments...
  13. Hi anyone ever wrote an funktion to use VirtualProtect in autoit ? If yes can you post it ?
×
×
  • Create New...