Leaderboard
Popular Content
Showing content with the highest reputation on 09/02/2014 in all areas
-
Salam, Hello, Hi Today i am showing you some new styles of progress bar i don't know if anyone posted a thing like this on thins forum _GUICtrlCreateProgress This UDF allows you to create new style progress bar Colors, Values can be changed by using native functions of autoit i created this script years ago while i was not on this forum now i think it should be shared on this forum check this out if anyone is interested any help is greatly appreciated NEW $PBSC_LINE_LEFT_TO_TIGHT changed to $PBSC_LINE_LEFT_TO_RIGHT New Style Progressbar.rar old New Style Progressbar.rar3 points
-
Complete Internet Repair
Parsix reacted to Rizonetech for a topic
I've learned so much from the AutoIt community and figured it is about time I start giving something back. I am open sourcing all my software and Complete Internet Repair is the first program I am releasing. Complete Internet Repair will give you a free option to attempt to repair everything internet related. With any repair utility, you will need to remember only two golden rules. Firstly; don't try to repair something that is not broken, you might break it. Secondly; Comnplete Internet Repair cannot repair it all, we are not like the all-seeing and all-knowing Oracle, we cannot anticipate each and every situation, but this all said; it should be able to help with most internet issues. Complete Internet Repair could help if you are experiencing any of the following problems: Internet or network problem after removing adware, spyware, virus, worm, Trojan horse, etc. Loss network connection after installing/uninstalling adware, spyware, antispam, vpn, firewall or other networking programs. Unable to access any website or can only access some websites. Pop-up error window with network related problem description. No network connectivity due to registry errors. DNS lookup problem. Fail to renew the network adapter’s IP address or other DHCP errors. Network connectivity issue with limited or no connections message. Windows update does not work. You are having problems connecting to secured websites (ex. Banking). Internet Explorer stopped working or crashes all the time. A few other internet errors, but we will not discuss all here. Update 22 October 2016 Exes are now signed. New installation utility. Now built on the ReBar Framework. New Update Notification System. Resources moved to external Dll files. Added support for Windows 10. New Interface. New Logging System. New Reset Rroxy Server Configuration. New Registry based Method for configuring Services. Cleaner Optimized Code. You can download Complete Internet Repair 3 and Source Code at: http://www.rizonesoft.com/downloads/complete-internet-repair/ The source code can be viewed on GitHub here. Please while you're there, give it a Star! Please let me know what you think and if you have any suggestions, I would love to hear about it.1 point -
Answer 1: If you by mismatch means that the names are different (crCharColor in AutoIt structure and crTextColor in C/C++ structure), then it doesn't matter, because the names are not part of the structure. The names are only used to be able to reference the data fields in an easy way. In C/C++ you set and get the values of the data fields with dot notation (e.g. MyStruct.crTextColor). In AutoIt you use DllStructSetData and DllStructGetData. When the code in the DLL is executed, the data fields of the structure are referenced directly by memory addresses. If you by mismatch means that the crCharColor field in the AutoIt structure is defined as an int and the crTextColor field in the C/C++ structure is defined as a COLORREF = dword, then it doesn't matter either, because both data types allocates four bytes. As long as you fill these four bytes with a proper RGB color value, the code in the DLL will work. Answer 2: Note that the fields dwReserved/dwCookie in C/C++ and dwReserved in AutoIt in the first codebox, and bUnderlineColor in C/C++ and bReserved1 in AutoIt in the second codebox, are not used in the AutoIt UDF. If you want to use these fields, you have to implement the code yourself. In C/C++ a union is a way to reference the same data field in the structure in different ways. The union in the codebox is allocating a single dword (not two dwords). In C/C++ you can refer to this data field in two ways: MyStruct.dwReserved and MyStruct.dwCookie. But it's the same data field. (If you have written C/C++ code for the version before 0x0500, you can recompile the code for version 0x0500, without the need to replace all the dwReserved names with dwCookie. If you add new C/C++ code for version 0x0500, you can use the name dwCookie, which seems to be better than dwReserved.) This means that the structure in the codebox is exactly the same before and after version 0x0500. In both cases a single dword is allocated. In AutoIt you don't have to distinguish between versions before and after version 0x0500 for this field. In both cases you refer to the field with the name dwReserved. Note again, that dwReserved is not used in the AutoIt UDF. If you have Rich Edit controls with _RICHEDIT_VER < 0x0800 (I don't know which Dll version 0x0800 matches), and the last field in the structure (bUnderlineColor in C/C++ and bReserved1 in AutoIt) is an issue, you can simply remove this field from the structure definition. Since bReserved1 is not used in the AutoIt UDF, the code will still work. For Rich Edit controls where _RICHEDIT_VER >= 0x0800 you need bReserved1. Even if the field is not used. The size of the structure is stored in the first field: cbSize. If bReserved1 is missing, the value of this field will be one byte too small. This will cause an error. Your structure definition for Rich Edit controls before and after 0x0800 should look like this: Global $tagCHARFORMAT2 = $tagCHARFORMAT & ";word wWeight;short sSpacing;INT crBackColor;" & _ "dword lcid;dword dwReserved;short sStyle;word wKerning;byte bUnderlineType;byte bAnimation;byte bRevAuthor" If $RICHEDIT_VER >= 0x0800 Then $tagCHARFORMAT2 &= ";byte bReserved1" Since bReserved1 is not used in the AutoIt UDF, the code will work in both cases.1 point
-
very nice UDF btw. $PBSC_LINE_LEFT_TO_TIGHT it should be $PBSC_LINE_LEFT_TO_RIGHT ?1 point
-
is this piece of code seems useful #include <WindowsConstants.au3> #include <GUIConstants.au3> #include <File.au3> Global $GUI, $msg, $GUI_WIDTH = 700, $GUI_HEIGHT = 500, $Edit_Control Global $file = "New Text Document.txt" Global $data = "", $font_size Global $GUI = GUICreate("", $GUI_WIDTH, $GUI_HEIGHT, -1, -1, $WS_SYSMENU) $font_size = FileReadLine($file, _FileCountLines($file)) GUICtrlCreateEdit($data, 0, 0, $GUI_WIDTH, $GUI_HEIGHT) GUICtrlSetFont(-1, $font_size) For $i = 1 To $font_size GUICtrlSetData(-1, FileReadLine($file, $i) & @CRLF, 1) Next GUISetState() While True $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd1 point
-
What is the question? Jos1 point
-
B3tt3R, The "Search facility is at top-right - I am surprised you have not noticed it over the past 3 years! But you might find >this code useful. M231 point
-
Pick the code for gui/buttons in the helpfile samples, and use this in the script main loop While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $btn_vbs1 Run('notepad.exe ".\folder\vbs1.vbs" ') ; here use the full or relative path of the vbs file EndSwitch WEnd1 point
-
%userprofile%Local SettingsTemporary Internet Files = DIRID 16416 Global Const $CSIDL_INTERNET_CACHE = 0x0020 ; dwFlags values for use with SHGetFolderPath ; current value for user, verify it exists Global Const $SHGFP_TYPE_CURRENT = 0x0000 ; default value Global Const $SHGFP_TYPE_DEFAULT = 0x0001 MsgBox(0, 1, _WinAPI_SHGetFolderPath(16416)) ;;Or MsgBox(0, 1, _WinAPI_SHGetFolderPath($CSIDL_INTERNET_CACHE)) Func _WinAPI_SHGetFolderPath($nFolder, $dwFlags = $SHGFP_TYPE_CURRENT) Local $path = DllStructCreate("wchar[260]") Local $folder = DllCall("shell32.dll", "int", "SHGetFolderPathW", _ "hwnd", 0, _ "int", $nFolder, _ "ptr", 0, _ "dword", $dwFlags, _ "ptr", DllStructGetPtr($path) _ ) If $folder[0] < 0 Then Return SetError(1, "", "") Return DllStructGetData($path, 1) EndFunc Ciao.1 point