Leaderboard
Popular Content
Showing content with the highest reputation on 03/22/2022 in all areas
-
array unique with a 2D array return?
Musashi and one other reacted to pixelsearch for a topic
Maybe something like this ? #include <Array.au3> Opt("MustDeclareVars", 1) Local $aArray[][] = [ _ ["Dec","four","Mon"], ["Jan","nine","Tue"], ["Mar","six","Wed"], ["Bus","five","Tue"], _ ["blue","four","Mon"],["Jan","nine","Tue"], ["Mar","six","Sat"], ["Bus","five","Fri"] ] Local $iColSearch = 2, $aArray2 = _ArrayUnique2D($aArray, $iColSearch) _ArrayDisplay($aArray2, "Array Unique col " & $iColSearch) ;============================================= Func _ArrayUnique2D(ByRef $aArray, $iColSearch) Local $iRows = Ubound($aArray, $UBOUND_ROWS), $iCols = Ubound($aArray, $UBOUND_COLUMNS) Local $aArray2[$iRows][$iCols], $iRow = -1, $oDictionary = ObjCreate("Scripting.Dictionary") For $i = 0 To $iRows - 1 If Not $oDictionary.Exists($aArray[$i][$iColSearch]) Then ; key exists ? $oDictionary.Add($aArray[$i][$iColSearch], $i) ; key important, item not. $iRow += 1 ; 0+ For $j = 0 To $iCols - 1 $aArray2[$iRow][$j] = $aArray[$i][$j] Next EndIf Next ReDim $aArray2[$iRow + 1][$iCols] Return $aArray2 EndFunc2 points -
I can't seem to get my code to run my portable Virtual Box.
Draygoes reacted to Earthshine for a topic
UAC determines whether you need to be admin. It's better than letting any script run, more secure, that's why--windows is protecting you same in Linux, have to run as su (super user) to do anything that affects the system that is how it should always be, not the wild wild west. following this practice leads to a pc with a long, reliable well configured life. stable OS in fact, you should never operate from an elevated account unless you are installing software or doing OS related maintenance, you should be logged in and running as a standard user--much more safe--need to install something (you probably just want to, not need to) --then log in as admin or elevate to admin temporarily1 point -
1 point
-
Power BI and COM
Earthshine reacted to orbs for a topic
i'm fairly certain anything inside Power BI (desktop, online service, and interactions thereof) can be achieved with DAX. regarding publishing to the online service, you don't need to export to a file as an intermediate - you can do that directly inside Power BI. have a look here and here for start. i recommend you begin by introducing yourself to DAX on the desktop. use it to gradually replace the easier pieces of your tasks, like applying filters etc. as you go, you'll discover its potential and how to use it. i don't think you'd require browser automation; but if you do, the WebDriver UDF is your solution.1 point -
Hi everyone, Some good news for you among all the gloom of these virus-ridden times: Nine, Subz and Danyfirex have accepted the invitation to become MVPs. Please join me in congratulating them on their new status in our community. Keep safe out there, M231 point
-
Here: should be used quotation marks. Here is small modification: #include <Clipboard.au3> _Example() Func _Example() Local $sRTF_FileFullPath = @ScriptDir & '\outfile.rtf' Local $hFile = FileOpen($sRTF_FileFullPath) Local $sRTF_Content = FileRead($hFile) FileClose($hFile) ;~ FileDelete($sRTF_FileFullPath) Local $iClipboardFormat = _ClipBoard_RegisterFormat("Rich Text Format") Local $hMemory = _ClipBoard_SetData($sRTF_Content, $iClipboardFormat) EndFunc1 point
-
1 point
-
So you have an autoit script, then what happens? I don't understand how a converter can replace a compiler. You might think you have explained this, but you have not, please detail exactly what this project aims to do, from start to finish.1 point
-
I've already answered that question. But, I'll explain it differently: We know that AutoIt is already written in C++, but an AutoIt app is slower than a C++ app. Why ? Because the output file of AutoIt has all the functions inside it even if only one of them is used ! Then, it reads the script from the overlay and execute it. How about C++ ? It's totally different, things are organized and faster because the compiler only includes the functions you need and writes native code. To know what I'm talking about, read this: http://delphiblog.twodesk.com/making-slow-code-go-faster-measuring-speed So, this whole project is the first step to write an Au3 to Cpp converter, you can call it: "Au3++ compiler". (thanks for jpm for the name) Yeah, let me know if you have any better idea(s) My fav color. Strange, I've searched using google and didn't get a hit ! Anyway, I've sent Jon another message about this account as well.1 point
-
1 point
-
You most likely knew already I understand the meaning of LoL, so my question is not about that part.1 point
-
1 point
-
Not for me and still hope people will report stuff that is "wrong". Meaning? Jos1 point
-
@Alzri - Welcome to the forum. So when AutoIt 4 comes out (not saying it is or ever will ... not my department), are you going to rename your Library to AU5 Library? Or just leave as AU4, to confuse everyone?1 point
-
I haven't looked at your project yet and it wasn't clear from the above description, hence my question. So this is a project similar to BCX. That's going to be a fun project to do I guess. Jos1 point
-
You of all, as an AutoIt dev, should understand the true aim of this project ! Hint: Au3 Cpp converter1 point
-
AutoIt3 functions are written in C++ so not sure I understand the purpose of this. Jos1 point
-
I forgot to add this to the topic, would any moderator plz add it: https://github.com/Z-Rantom/AU4-Library1 point
-
I realize this is an old, dead thread, but in case anyone comes searching here, I believe this is what MikeMan27294 was looking for: _ClipPutHTML https://sites.google.com/site/ascend4ntscode/clipputhtml1 point
-
Description: AutoIt functions re-written in C++ to enhance the productivity of a developer. Why AutoIt ? AutoIt functions are so powerful that it can almost implement anything in Windows. In addition, each function is well documented which makes it extremely easy to use them productively. Why this library ? Well, the mechanism of an AutoIt binary file is not neat, so this is when AU4 Library come in handy. Another advantage is that AutoIt decompilers won't be something to worry about any more. Suggestions / Wanna join ? If you have any suggestions, I'm all ears. And if you want to join, send me a PM. Project link: https://github.com/Z-Rantom/AU4-Library Greetz, Z-Rantom (Alzri)0 points
-
No, it's just glaringly obvious. A similar topic takes place in chat, and 5 minutes later a "new" member registers with the express intention to recruit people to do it. I've got no words for that, except lol.0 points
-
Well, I guess it's quite different from the name "AutoIt 4" cuz it's "AU4 Library" I would've done that if it exists !0 points