Jump to content

Rizzet

Active Members
  • Posts

    33
  • Joined

  • Last visited

Rizzet's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I Agree, this is a very nice tool and i used it alot.. THANKS ALOT
  2. Hi, i need to read a file that is larger then 2gb to binary. I do not need to read all at once.. (its mostly the last part i need to read) but with FileOpen() and FileRead i have to read the start, and that doesnt fit in my "mem/ram"
  3. I have a new problem, if the return of a dllcall is a "ptr"/pointer of the same struct. How to use it/read it??
  4. Hi, that helped alot.. i will try that and hopefully be more succesfull. If not then i probably have a more clear example Code
  5. Hi, ive tried creating this dll structure to CDBFAPI.DLL but failed, Could you help me? struct DBF { [...] char *filename; // the name of DBF-file char *filename_memo; // the name of a memo-file (DBT or FPT) char *filename_hdr; // the name of header-file (HDR) struct Header hdr; // the first 32 bytes of header struct Field fld[2048]; // the description of fields char als[2048][32]; // headers of fields int Fieldorder[2048]; // the order of fields struct Options opt; // options unsigned short num_fld; // the number of fields [...] int memo_field; // the current memo-field or -1, // if a memo-fields is not present [...] char *record_block; // pointer to area of reading/writing char *str; // pointer to area of the return of lines char *memo_block; // pointer to memo-fields [...] char *copy_of_record; // copy of record [...] };
  6. i've downloaded the beta and it all seems to work now
  7. ConsoleWrite(@OSServicePack&@CRLF) ConsoleWrite(@OSTYPE&@CRLF) ConsoleWrite(@OSVersion&@CRLF) ConsoleWrite(@AutoItVersion&@CRLF) _________________________________ Service Pack 2 WIN32_NT WIN_XP 3.2.12.1
  8. my script do reproduce the symptoms..for me. have you tried the script?? just make a anyfile.txt in the same folder as the script then open what ever file you want (exept the andfile.txt) with the dialog. If it works for you then its a problem with my computor
  9. its not only that that doesnt work.. the file things was just a fast example.. just took the first file things that open a file in any way i this is all kind of problems.. All File* or Ini* or GUI* things get messed up, its like i cant return things from windows anymore
  10. My current code is very big, but i post a little example of my problem $testFile = FileOpenDialog("What file?","23","(*.*)",1,"") ConsoleWrite("File Path: "&$testFile&@CRLF) FileClose($testFile) ConsoleWrite("anyfile.txt Exists: " & FileExists(@ScriptDir&"\anyfile.txt") &@CRLF) $testFile2 = FileOpen("anyfile.txt",0) ConsoleWrite("anyfile.txt Contains: " & $testFile2 & @CRLF &"Error = "& @Error & @CRLF) FileClose($testFile2) and my the data posted File Path: C:\IniBrain.ini anyfile.txt Exists: 1 anyfile.txt Contains: -1 Error = 0 >Exit code: 0 Time: 2.431
  11. when i use FileOpenDialog my program partly stop working i can no longer open new files or create GUI's... is this just my windows who got an error or have i missed something?
  12. i diffrent way to do the same as ResNullius did.. i hope this isnt flickering #include <GuiConstants.au3> Global $GuiX, $GuiY, $GuiW, $GuiH $gui = GUICreate("My Gui") $rollup = GUICtrlCreateButton("RollItUp", 50, 200, 100, 20); GUISetState() While 1 $Msg = GUIGetMsg() Switch $Msg Case $GUI_EVENT_CLOSE Exit Case $rollup _RollUpGui($gui, 10) ExitLoop EndSwitch WEnd Func _RollUpGui($hWnd, $step, $delay = "default") Local $GuiClientH, $MinH Local $trans = 250 $GuiClientSize = WinGetClientSize($hWnd) $GuiClientH = $GuiClientSize[1] _GuiGetPos($hWnd) $MinH = $GuiH - $GuiClientH While $GuiW > 50;$GuiPos[3] _GuiGetPos($hWnd) If $GuiH > ($MinH) Then $GuiH -= $step $GuiY += $step / 2 Else $GuiH = $GuiH $GuiY = $GuiY $GuiW -= $step $GuiX += $step / 2 EndIf WinMove($gui, "", $GuiX, $GuiY, $GuiW, $GuiH) If $delay = "default" Then $delay = ($step * 2) + ($step / 2) Sleep($delay) ;Trans section WinSetTrans ( $gui, "", $trans) if $trans > $step then $trans -= $step/2 else WinSetTrans ( $gui, "", 0) endif WEnd ;GUIDelete($gui) ;Exit EndFunc ;==>_RollUpGui Func _GuiGetPos($hWnd) $GuiPos = WinGetPos($hWnd) $GuiX = $GuiPos[0] $GuiY = $GuiPos[1] $GuiW = $GuiPos[2] $GuiH = $GuiPos[3] EndFunc ;==>_GuiGetPos edit: oops posted wrong code..
  13. Hi. i dont know why it is.. but as i said the original one is still alot faster for me.. on this example you sent im still getting the PixelSearch 9 times faster then the _fastSearch.. im using AutoIt Version: 3.2.4.9 and i editet your include on line 32 from: $storage = DllCall("fast_pixel_search_dll.dll", "int", to: $storage = DllCall("fast_pixel_search_dll.dll", "int:cdecl", and i got a duel cure(oops i dont..forgot im on my laptop:P) edit: it take me ~990 ms on _fastSearch and ~120 ms on PixelSearch
  14. hi im tested your pixel search.. and the original PixelSearch that is in autoit is about twice as fast.. but i dont rly understand how your "circle" search works.. that thing might be the fast thing
  15. i cant tab either Edit: Seems like volly "fixed" it
×
×
  • Create New...