
CoolDomi
Members-
Posts
13 -
Joined
-
Last visited
Everything posted by CoolDomi
-
guinness, I found the detail that creates this weired thing.... 1st: your code is correct no issue with it (sometimes you look at the wrong place when other thing are right in front of you...). This comes from the example 1 ("creation") where you get the data, call "_BinaryBin_Encrypt", display the stats but right after you call "_BinaryBin_Decrypt" which decrypts the data again.... but in the example 2 ("Extraction") you start calling "_BinaryBin_Decrypt" on something that is allready decrypted . The example createa the problem and not your UDF. Sorry for the bad diag. Dom.
-
guinness, I have something weird happening . Example 2 seems to work 50% of the time??. So the scenario is: a) Use example 1 on a folder with 4 files -> generate the bin file Use example 2 to extract the files => works c) Use example 2 again to extract the files => does not works d) Use example 2 to extract the files => works again I start to dig a little bit and it seems that for whatever reason the value of $aArray[0][0] is one time 4 (I assume the amount of the files in the BIN container) but the next time the value is 0 and then just creates the folder without extracting the files and so on... Update: I went up to "Func __BinaryBin_FileRead($hFilePath)"; and (gets really odd...) in the call 'Return SetError(@error, 0, BinaryToString(DllStructGetData($tBuffer, 'array')))' the value returned by DllStructGetData($tBuffer, 'array') changes every other time... (need some rest) My config: win 7 - 64bits prof AutoIt: 3.3.12.0 using SciTE 3.4.1 it's friday and I'm not fully awake so I try to keep looking or edit this post.... Dom.
-
Try like this ... Local $sErr Local $PortName _CommSetport(3, $sErr, 9600, 8, 0, 1, 0, 0, 0) $PortName = _CommPortConnection() _CommSendString("/1ZR" & @CR) That should solve your error and I am not sure why you use _CommPortConnection() but this one return the name of the COM port it is connected to Cheers -Dom.
- 680 replies
-
- serial port
- virtual port
-
(and 2 more)
Tagged with:
-
Sorry Martin, I was out for the week-end... Thanks for the update, I am using one on these USB-serial converter (and not trying to use a speed higher than 230400). Let me know if I can help to test. Dom PS: THX BrewManNH to step in with the link of TeraTerm
- 680 replies
-
- serial port
- virtual port
-
(and 2 more)
Tagged with:
-
Martin, thanks for this update, but I still get the same error... In fact I tested a little bit further on and I get the error for any speed that is greater than 115200 bauds... any thoughts?? and no, no other reason that 2.88 had problem it was just not compiling. But now that you ask I do have another low priority request: you still have some "ConsoleWrite" instead of your "mgdebugCW" into the CommMg.au3. I already changed them on the code I am using but if you could on the next version that would be great. Thanks a lot - Dom
- 680 replies
-
- serial port
- virtual port
-
(and 2 more)
Tagged with:
-
Hi Martin, I have an application needs to have a baud rate of 230400. When I start my application (either under XP or 7, tested also with 2 different PC), the ComMG.dll (Ver 2.77) returns the error "The parameter is incorrect". The odd part is that the hardware support it (tested with using TeraTerm) and it worked no problem a that speed. Is there any limitation in the DLL that prevent using that baud rate? Thanks. Dom PS: Maybe I am wrong but I think that the CommMG.au3 V 2.88 you uploaded is a test version no the final one
- 680 replies
-
- serial port
- virtual port
-
(and 2 more)
Tagged with:
-
I was always looking for a color converter as stand-alone pgm (we can find a lot on the WEB as web page). - The current UDF color.au3 gives "only" conversion between RGB and HSL with a single unit. - "corz" with it's <corz_essentials.au3> implements another UDF with multiple unit and CMYK conversion (three color functions). Nice one. So I decided to modify the original <color.au3> (now I rename it coolcolor.au3) with the following changes: - Conversion between RGB <=> HSL - Conversion between RGB <=> HSV - Conversion between RGB <=> CMYK - Single unit [0,1] (The end user will be responsible to convert into the final unit) - As color.au3 all the conversions are based from this great site EasyRGB Now about the pgm ColorConverter: - Conversion from/into HSL - Conversion from/into HSV - Conversion from/into CMYK - Conversion from/into Web (Hex) - Display the actual color - Independent unit selection of each color system - Last unit used are saved into an INI file Plan for the next Rev: 1) Add conversion from Pantone Color to the other system (via a table) Let me know if you want other changes. Have fun!!! Dom ColorConverter.au3 CoolColor.au3
-
Organize Includes in Scite for Autoit
CoolDomi replied to Xenobiologist's topic in AutoIt Example Scripts
Hi, Another "fix" for the next release: In the function getIncludes() instead of: For $i = 1 To $lines_A[0] - 1 write For $i = 1 To $lines_A[0] otherwise you will miss the last file referenced in the includes.ini file (in my case WindowsConstants.au3 ) Dom. -
Organize Includes in Scite for Autoit
CoolDomi replied to Xenobiologist's topic in AutoIt Example Scripts
Hi Mega, 1st great work!!, great utility thx a lot . I am currently not using any Beta version of AutoIt, and I your script stop working due to I think this: If $InstallPath <> '' And $normalOrBetaOrBoth = 1 Or $normalOrBetaOrBoth = 3 Then _ArrayAdd($includesPathes_A, $InstallPath & '\Include\') If $betaInstallPath <> '' And $normalOrBetaOrBoth = 2 Or $normalOrBetaOrBoth = 3 Then _ArrayAdd($includesPathes_A, $betaInstallPath & '\Include\') Should add parenthesis to separate the OR condition from the AND: If $InstallPath <> '' And ($normalOrBetaOrBoth = 1 Or $normalOrBetaOrBoth = 3) Then _ArrayAdd($includesPathes_A, $InstallPath & '\Include\') If $betaInstallPath <> '' (And $normalOrBetaOrBoth = 2 Or $normalOrBetaOrBoth = 3) Then _ArrayAdd($includesPathes_A, $betaInstallPath & '\Include\') and it works again like a charm (or at least works for me again . Dom -
Once again thanks gafrost, this time it works great Dom.
-
Thanks gafrost, for the reply, I tried it but the slide scan still move one by one . Anyhow I figure out an our solution with 2 separate buttons (up, down) and a readonly input cntrl. This give me the flexibily I'm looking for (know which button is pressed up or down, etc...). Dom
-
Hi there, I'm trying to change the updown control increment (instead increment/decrement by 1 make it by 5). Is there an easy way to get this to work? Also is there an event or something that I can check to determine if the up or down arrow of an updown control box has been activated? thanks. Dom.