Jump to content

GtaSpider

Active Members
  • Posts

    228
  • Joined

  • Last visited

About GtaSpider

  • Birthday May 27

Profile Information

  • Location
    Germany
  • WWW
    http://www.gtaspider.de/

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

GtaSpider's Achievements

Polymath

Polymath (5/7)

10

Reputation

  1. Hey everyone, When I try to add blur to an Image with _GDIPlus_EffectCreateBlur and _GDIPlus_BitmapApplyEffect the blur is only horizontal, not horizontal and vertical, if the blur radius is <= 20. Easy to test with the Image I attached and the default example from the helpfile of _GDIPlus_BitmapApplyEffect The second Image I attached is the result and as you can see the cross is only blurred in one direction. Does anyone have a clue why this happens and furthermore a solution for this problem? (I could just rotate the picture but then it would be twice as time consuming...) Thanks in advance, Spider p.s.: Running Win 10 Pro with all updates
  2. Wow this is amazing! I will give this definitely a try on my next project. Thank you very much , gil! Greetings, Spider
  3. Hi all, I think I isolated the problem. It's not the owndraw, nor the UDF/Build in functions but the WM_NOTIFY consuming too much time to perform the actions required. If you replace the customdraw options with a simple Sleep(10) the same error occurs (the best way to make the gui freeze is to press PAGE DOWN and PAGE UP multiple times). This happens to me with 3.3.12.0, 3.3.14.1 and 3.3.15.0. I think that the internal AutoIt Handler runs in a infinite loop. The cpu-load goes to 100% on a single core. But I don't understand why it does not make any changes if I return the RUNDEFMSG or nothing (Only Return without something behind) Can anybody help or find a work around? I would be very thankful! Minimalized example Code: Greetings, Spider
  4. Hey! A software of mine shows the network traffic between two PCs and is installed on a PC with a industrial resitive touchscreen. Everything works like a charm except the scrolling of the ListView I use. Its quite hard to scroll because the scrollbars are too thin. Is there a way to make the scrollbars wider? Or is there a possibility to use touchfriendly scrollbars (like on smartphones)? Thanks in advance, Spider Edit: Found a way. But if somebody know a way how to make the scrollbars even more touchfriendly.. this would be great http://superuser.com/questions/120120/how-to-change-scroll-bar-size-in-windows-7
  5. Yup, you're rigth. But I initalize it as a static variable; therefore it's only initalized one time, the same Callback for all functions (the Handler function never changes so there is no need to initalize DllCallbackRegister every time) Greetings, Spider
  6. Hey everyone, I searched some hours for a way to use the function WaitForSingleObject not as a function the script has to wait for, but a function which calls a callback function when the event is signaled. I found a way with RegisterWaitForSingleObject but no AutoIt implemention, so I made one on my own, and now I want to share it with you guys! The only limitation by this implemention is that you are not able to use more than one callback at once. to avoid this, you could write a static array in the function which fills with the selfmade callback structs. If you find another way, let me know! Example: Hope you like it and find use for it! Greetz, Spider RegisterWaitForSingleObject.zip
  7. Hey BrewManNH, hi Melba23, Ah okay, I see. So it's a bug in the Delete function, something like this would fix it: ;...GuiListView.au3 If $vCID And $vCID < 10000 Then These functions are also affected by this: _GUICtrlListView_DeleteItem _GUICtrlListView_DeleteItemsSelected Thanks a lot for the fast Support Greetings, Spider Edit: hehe, you were a little bit faster ;-)
  8. Hey, I've noticed that _GuiCtrlListView_DeleteAllItems is very slow. After some researches i found out that the function is only slow on native Controls (GuictrlListviewCreate) but very fast on _GuiCtrlListView_Create. To check whether it's a native control or not the function uses _WinAPI_GetDlgCtrlID. If the return of that function is true (not Zero) then its a native control. But when i use _GuiCtrlListView_Create the function _WinAPI_GetDlgCtrlID Returns allways 10000 for CtrlId. This is wrong, it shall return Zero. I use the latest AutoIt Version (3.3.12.0) and tested it also with the beta (.19). I use Win8.1 and tested it also with Win7, same result! Do you have the same issue? Is it a Bug or is it just me? Here is a code you can test with #include <GuiListView.au3> #include <WinAPI.au3> $hGui_Main = GUICreate("") $hListView1 = GUICtrlCreateListView("blegh",150,0) $hListView2 = _GUICtrlListView_Create($hGui_Main,"blegh",0,0) $hListView3 = _GUICtrlListView_Create($hGui_Main,"blegh",0,150) GUISetState() MsgBox(0,"",_WinAPI_GetDlgCtrlID(GUICtrlGetHandle($hListView1)));Returns 3 - this is correct! MsgBox(0,"_GUICtrlListView_Create",_WinAPI_GetDlgCtrlID($hListView2));Returns 10000 - this is wrong! MsgBox(0,"_GUICtrlListView_Create",_WinAPI_GetDlgCtrlID($hListView3));Returns 10001 - what the heck? Thanks in Advance, Spider
  9. Hey, Nice work! The speed difference surely depends on the speed of the server, and how much speed it is able to give per connection. I made a little Example where you can see the speed. The file is hosted on a very fast server, so the difference shouldn't be that huge. But you can try it with other files from slower servers or may servers which are on the other side of the world (from your position ) Thanks for sharing Farid! #include "UrlDownloadEx.au3" HotKeySet("{ESC}","_exit") Global $t1 = TimerInit() ProgressOn("Exit with {ESC}", "Download 50mb","Start download...") AdlibRegister("_update",250) Global $vResult = UrlDownloadEx("http://download.thinkbroadband.com/50MB.zip", @ScriptDir & "\[temp]50MB.zip", 1, BytesReceived);Quite the same speed over the complete download ConsoleWrite(StringFormat("Result:\t%s\nSize:\t%u\nError:\t%u\nTimer:\t%u\n", $vResult, @extended, @error, TimerDiff($t1))) AdlibRegister("_update",1000) If Not BytesReceived(0,0,0,0) Then Exit;if abborted, exit Global $vResult = UrlDownloadEx("http://download.thinkbroadband.com/50MB.zip", @ScriptDir & "\[temp]50MB2.zip", Default, BytesReceived);speed differ from time to time. you have to but an higher amout of MS in the AdlibRegister (like 1000 instead of 250) ConsoleWrite(StringFormat("Result:\t%s\nSize:\t%u\nError:\t%u\nTimer:\t%u\n", $vResult, @extended, @error, TimerDiff($t1))) Func BytesReceived($iReceivedBytes, $iTotalReceivedBytes, $iDownloadSize, $vParam) Local Static $hTimer = TimerInit(), $iBytes, $iKbS, $sKbS, $iDownloadSize2, $iTotalReceivedBytes2, $fExit = False If $vParam = 1 Then ProgressSet($iTotalReceivedBytes2 / $iDownloadSize2 * 100, StringFormat("%.1f%%\r\n%.2f %s",$iTotalReceivedBytes2 / $iDownloadSize2 * 100,$iKbS,$sKbS)) Local $iTime = 0 $iKbS = 1000 / TimerDiff($hTimer) * $iBytes While $iKbS > 1000 $iTime += 1 $iKbS /= 1024 WEnd Switch $iTime Case 0 $sKbS = "Bytes/s" Case 1 $sKbS = "KB/s" Case 2 $sKbS = "MB/s" Case 3 $sKbS = "GB/s" EndSwitch $iKbS = $iKbS $hTimer = TimerInit() $iBytes = 0 ElseIf $vParam = 2 Then $fExit = True Else $iBytes += $iReceivedBytes $iDownloadSize2 = $iDownloadSize $iTotalReceivedBytes2 = $iTotalReceivedBytes EndIf Return Not $fExit EndFunc ;==>BytesReceived Func _update() BytesReceived(0, 0, 0, 1) EndFunc ;==>speed Func _exit() BytesReceived(0, 0, 0, 2) EndFunc Greetz, Spider Example 3.au3
  10. Hey, Just needed for some projects a side by side control, on the left the binary data on the rigth the string. Nothing more to say here, take a look for yourself. HexControl UDF is licensed under a Creative Commons Attribution 4.0 International License. http://creativecommons.org/licenses/by/4.0/ Greetz, Spider Hex Control.zip
  11. Yea, that worked for me. Thanks alot Jos Greetings, Spider
  12. Hey, I realy like the new au3stripper i allwas used the obfuscator just for stripping (for debugging purposes). It works quite well with most of my scripts, but with a very large script it does not. The consoleoutput says everything is fine and stripping is completet successfully, but the _stripped.au3 is the same as my original script. If i dont delete the old _stripped.au3 it also wont be replaced. Parameters: Here is the debug out. Any Ideas? Thanks in Advance Spider
  13. Whats the matter? void func( int required, int optional = 0); Should work with C++ (not with C)
  14. yes, surely i know and i'm very thankfull for Jon and the entire AutoIt team for their effort! It is just amazing what a big jump forward they made with the new AutoIt stable. I just wanted to know, if there are any plans for future implementations. Because for now I can not use the structes with many C applications i wrote. Or maybe someone has an Idea for a work arround? Thanks, Spider
  15. Hey, Is there any chance we will see this feature in the future? Would be very thankfull Greetz, Spider
×
×
  • Create New...