Leaderboard
Popular Content
Showing content with the highest reputation on 03/06/2021 in all areas
-
No. After your calculation, $iColor's data type is a double not an integer. They are stored differently in memory. The Hex function did exactly what you told it to do, Maybe the example below will help illuminate the issue: $iColor = (3310546 + 3310546) / 2 ConsoleWrite("$iColor is a " & VarGetType($iColor) & @CRLF) ConsoleWrite("$iColor = 0x" & Hex($iColor) & @CRLF) ConsoleWrite("$iColor (dec): " & $iColor & ", $iColor (hex): " & Hex($iColor, 6) & @CRLF) ConsoleWrite(@CRLF) $iColor = Int((3310546 + 3310546) / 2) ConsoleWrite("$iColor is a " & VarGetType($iColor) & @CRLF) ConsoleWrite("$iColor = 0x" & Hex($iColor) & @CRLF) ConsoleWrite("$iColor (dec): " & $iColor & ", $iColor (hex): " & Hex($iColor, 6) & @CRLF) Console $iColor is a Double $iColor = 0x414941E900000000 $iColor (dec): 3310546, $iColor (hex): 000000 $iColor is a Int32 $iColor = 0x003283D2 $iColor (dec): 3310546, $iColor (hex): 3283D22 points
-
Quick Download Tool
argumentum reacted to wolf9228 for a topic
I will adjust the colors later ... The tool was a larger and clearer font size. I modified it to be default in terms of font type and size ... Thanks.1 point -
Register file type .au3 for PSPad to start by double click
Professor_Bernd reacted to Jos for a topic
Here is how you change the Edit option: In the registry you either use: "HKCR\AutoIt3Script\shell" or "HKCR\AutoIt3ScriptBeta\shell" and then change the "HKCR\AutoIt3Script\shell\Edit\Command" to the PSPad.exe. You can then change the preffered double click option by setting the default in "HKCR\AutoIt3Script\shell\" to either "Run" or "Edit". That's all. Oh, and when there is any field:"Application" in key "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.au3", somebody did an "Always open with" which obviously overrides the original setting and you want to remove that. Jos1 point -
Register file type .au3 for PSPad to start by double click
TheXman reacted to Professor_Bernd for a topic
That seems to be correct. The link from TheXman confirms: In HKEY_CLASSES_ROOT the keys of HKEY_LOCAL_MACHINE\Software\Classes and HKEY_CURRENT_USER\Software\Classes are merged. Excerpt from the MS Docs article: That's why it can work with HKEY_CLASSES_ROOT, but it can also go wrong if there is already an entry under HKEY_LOCAL_MACHINE\Software\Classes HKEY_CURRENT_USER\Software\Classes. Now I understand that was what was confusing me in my testing! - If you know how to do it, it's easy! @TheXman The linked page has important information that I need for this. This information is like me trying to solve a crossword puzzle for days to no avail and then someone comes up with the answers! I'm going to study those in depth. Thanks a lot! Thank you all so much guys! Prof Bernd1 point -
Register file type .au3 for PSPad to start by double click
Professor_Bernd reacted to TheXman for a topic
https://docs.microsoft.com/en-us/windows/win32/sysinfo/hkey-classes-root-key1 point -
Many thanks for this excellent and prompt clarification. I am still discovering Autoit and hadn't found the Int() conversion (I had found Number() but that was'nt the solution). This response solves my problem😊1 point
-
Sure ... it's just an attempt to challenge the software used to download the files ... Thanks.1 point
-
This is a program that I made to help my self learn better regular expressions. There are a lot of other programs/website with the similar functions. The main advantage of this program is that you don't have to click a button after every changes. The program detected changes and react on it. Function: Match Match of arrays Match and replace Load source data from website Load source data from a website with GET/POST Load text data from file Clear fields Export and Import settings (you can finish the expression a other time, just export/import it) Cheat sheet DPI aware Generate AutoIt code example code The source code is not difficult and I think most user will understand it. In the zip file there is a export files (reg back example), you can drag and drop this files on the gui to import it. EDIT: Updated to version V1.2.0 Changes are: Expand and collapse of the cheat sheet (Thanks to Melba23 for the Guiextender UDF) Usefull regular expressions websites links included in the program Text data update time EDIT: Updated to version V1.3.0 Changes are: Automatic generate AutoIt code Icons on the tab Few minor bug fixes EDIT: Updated to version V1.4.0 Changes are: Link to AutoIt regex helpfile If the regular expression has a error than the text becomes red Option Offset with Match and array of Matches Option Count with Match and replace Some small minor bug fixed EDIT: Updated to version V1.4.1 Changes are: Small bug in "create AutoIt" code fixed EDIT: Updated to version V1.4.2 Changes are: Small bug in "create AutoIt" code fixed Bug with website data fixed EDIT: Updated to version V1.4.3 Changes are: DPI aware Click function on cheat sheet to insert function in the regex input field (Sourcode, example and compiled exe file) Regex toolkit.zip1 point
-
Quick Download Tool
TheDcoder reacted to argumentum for a topic
54 mb down / 12 up / 19 ms. . This is in Miami. Maybe I'm closer to the server than you all.1 point -
To enhance speed I suggest to move the Excel stuff to the beginning (__OpenFile) and to the exit funtion _Exit (__CloseFile). As you do not change the file there is no need to call this functions for every mail. If/Then/Else/EndIf that hold just a single statement can be reduced to a single line: If IsArray($aBodyArray) Then Return $aBodyArray EndIf will become If IsArray($aBodyArray) Then Return $aBodyArray shortens your script and enhances readability.1 point
-
This is simply amazing; who would have thought that up to eight fat bytes could be squeezed into a single tiny int64? $ByteA = 123 $ByteB = 234 $ByteC = 25 $ByteD = 255 $ByteE = 111 $ByteF = 0 $ByteG = 77 $ByteH = 99 $bytesbuffer=DllStructCreate("align 8;byte[8]") $int64buffer=DllStructCreate("int64",DllStructGetPtr($bytesbuffer)) DllStructSetData($bytesbuffer,1,$ByteA,1) DllStructSetData($bytesbuffer,1,$ByteB,2) DllStructSetData($bytesbuffer,1,$ByteC,3) DllStructSetData($bytesbuffer,1,$ByteD,4) DllStructSetData($bytesbuffer,1,$ByteE,5) DllStructSetData($bytesbuffer,1,$ByteF,6) DllStructSetData($bytesbuffer,1,$ByteG,7) DllStructSetData($bytesbuffer,1,$ByteH,8) ConsoleWrite("As one large integer: " & DllStructGetData($int64buffer,1) & @CRLF) ConsoleWrite("As eight bytes: " & @CRLF) For $index=1 To 8 ConsoleWrite("Byte " & $index & " = " & DllStructGetData($bytesbuffer,1,$index) & @CRLF) Next EDIT: I guess I'm going to have to find myself a sarcasm-emoji; maybe ?1 point