Leaderboard
Popular Content
Showing content with the highest reputation on 01/22/2023 in all areas
-
Can i run a script remotly?
genius257 and one other reacted to SOLVE-SMART for a topic
I don't think that would work in this way @ioa747. But I didn't try it because a common way of dealing with GitHub sources/repositories/projects is to "Fork" the repo and then work on the duplication on your local side. But it's indeed an interesting question in my opinion. In case only one file of an external ressource is necessary it might working. When further dependencies are given within this single source files, I guess it wouldn't work. That's why things like npm or other package manager will give you the source of other repos also locally. When I remember correct, there is already a package manager for AutoIt files available. Maybe Au3Pm or something similar. If you are interested in, you could check the collection list of guys who host UDFs and other AutoIt projects on GitHub. I'm almost sure, a package manager project is there too. Best regards Sven Update: Yes it's au3pm by @genius257 here ๐ .2 points -
Assigning variables to an array
SOLVE-SMART and one other reacted to TimRude for a topic
@SOLVE-SMART Respectfully, I don't see a problem with redeclaring a global array inside a function, especially if the array was originally declared as Global already in the main code section. Global is global. The whole point of a global variable or array is to allow it to be read/set from anywhere in the code. In this case all you're doing by reusing the Global keyword is conforming to the syntax requirements in order to assign values to an already global array. I know some programming languages may not allow declaring a global variable inside a function and that's their prerogative. But if AutoIt is flexible enough to handle it, so am I.2 points -
Collection of GitHub users (with AutoIt projects)
teodoric666 reacted to SOLVE-SMART for a topic
Hi folks ๐ , I know about several of us do have AutoIt projects on GitHub. In this hopefully growing collection I want to list forum members and their GitHub projects (AutoIt based). Why? One use case could be the contribution to some of their projects. Assume that AutoIt projects are not that wide spreaded or supported in terms of contribution (participation), as JavaScript projects for example. Wouldn't it be nice to get more contribution on your project? Wouldn't it be nice to work on bigger projects in a community? I personally would love to ๐ . Disclaimer: As the GitHub profiles (and repositories), I will list here, are public and your profiles either findable by your signature, your "About Me" page or by a simple Google or GitHub search ๐ , I see no restriction to collect these kind of information and post it here. In case you don't agree with this visualisation and you don't want to be listet here, please let me know and I will remove that entry as soon as possible ๐ค . I really hope that fits your feeling about it. Collection (in progress): @Forum username ยป GitHub username ยป Link to the GitHub projects (filtered by language=autoit) @Alan72104 ยป Alan72104 ยป Projects @alexanr1 ยป alexanr1 ยป Projects @AspirinJunkie ยป Sylvan86 ยป Projects @Centrally ยป ellysh ยป Projects @Danp2 ยป Danp2 ยป Projects @Danyfirex ยป DanysysTeam ยป Projects @DonChunior ยป DonChunior ยป Projects @ergo ยป seizu ยป Projects @genius257 ยป genius257 ยป Projects @J2TeaM ยป J2TEAM ยป Projects @James ยป jbrooksuk ยป Projects @Jefrey ยป jesobreira ยป Projects @jvanegmond ยป jvanegmond ยป Projects @kurtykurtyboy ยป KurtisLiggett ยป Projects @lamnhan066 ยป lamnhan066 ยป Projects @LinkOut ยป xLinkOut ยป Projects @LoganCH ยป loganch ยป Projects @Mat ยป MattDiesel ยป Projects @Mateocedillo ยป rmcpantoja ยป Projects @matwachich ยป matwachich ยป Projects @mLipok ยป mlipok ยป Projects @MrKm ยป MurageKabui ยป Projects @NHD ยป nomi-san ยป Projects @oHenry ยป htejera ยป Projects @OvisMaximus ยป OvisMaximus ยป Projects @philpw99 ยป philpw99 ยป Projects @rcmaehl ยป rcmaehl ยป Projects @Rurorita ยป OfficialLambdax ยป Projects @rynow ยป 4ern ยป Projects @scintilla4evr ยป scidsgn ยป Projects @seadoggie01 ยป seadoggie01 ยป Projects @seangriffin ยป seanhaydongriffin ยป Projects @smbape ยป smbape ยป Projects @SOLVE-SMART ยป Sven-Seyfert ยป Projects @Stilgar ยป THWillert ยป Projects @Surya ยป thesunRider ยป Projects @tarretarretarre ยป tarreislam ยป Projects @TheDcoder ยป TheDcoder ยป Projects @TheSaint ยป Twombs ยป Projects @trancexx ยป dragana-r ยป Projects @vietanhdev ยป vietanhdev ยป Projects ฮฃ = 41 I would love to see the list growing and I am very excited about a possibly upcoming behavior and improvement change, regarding AutoIt on GitHub ๐ . ๐ก Please help me to increase the list. Either by your GitHub link (profile) or through a link from a member you know. Best regards Sven ________________ Stay innovative!1 point -
read and write xlsx files without Excel
funkey reacted to AspirinJunkie for a topic
This UDF provides 2 functions to read data directly from xlsx files or to output data as xlsx file. Only the cell contents are considered - no cell formatting and the like. It is therefore explicitly not a full replacement for the Excel UDF, since its scope goes well beyond that. But to quickly read in data or to work with xlsx files without having Excel installed, the UDF can be quite useful. There may also be specially formatted xlsx files which I have not yet encountered during testing and which may cause problems. In this case it is best to make a message about it here and upload the file. Note: xlsx files must be unpacked for reading. To make this as fast as possible it is recommended to put a >>7za.exe<< file into the script directory, otherwise a slow alternative will be used. Otherwise an example says more than 1000 words: >>sourcecode and download on github<< Changelog:1 point -
read and write xlsx files without Excel
argumentum reacted to AspirinJunkie for a topic
My linked file is not the 7za.exe - it is a 7z-archive which contains the 7za.exe. You have to unpack the file before. AutoIt manages its variables in a table which is divided in lists. In the old AutoIt source code these were two different lists - one for the globals and one for the locals. In the lists themselves all variables are equal. The assignment to a scope results from the affiliation to a certain list. If the variable would be part of the global list, it would be globally accessible. In the concrete case the variable remains a local variable and is not accessible for scopes outside (except just by the return). It must handled a bit differently in the AutoIt interpreter, because it is static (we don't know how exactly, because the source code for this is not available) but it doesn't end up in the global list. A global variable on C++ level would also mean that it can be addressed by C++ via its identifier. AutoIt variables, however, do not get a C++ identifier at all but get their name via their list entry as structure _VarNode with the attribute szName. The static persistence has nothing to do with scope for now. It is still not a global variable - not even on C++ level.1 point -
NB: Shouldn't this line ; Now i check the dimension of the array. It should be max. 6! If Ubound($aiResult) = 6 Then be ; Now i check the dimension of the array. It should be max. 6! If Ubound($aiResult) <= 6 Then Because "max. 6" means 6 or lower to me1 point
-
The example provided in the help file shows how to process an array. So your script should look like: For $iNumber In $aiResult _Example($iNumber) Next or For $iNumber = 0 To UBound($aiResult) - 1 _Example($iNumber) Next1 point
-
Did you have a look at the help file to see how "For...In...Next" works?1 point
-
Assigning variables to an array
SOLVE-SMART reacted to RTFC for a topic
Don't ReDim, don't redeclare, and don't return an entire array (needlessly moving data back and forth); just parse ByRef: #include <Array.au3> Local $aArrayTarget[5] = ["0", "1", "2", "3", "4"] _AddLocallyDefinedArray($aArrayTarget) _ArrayDisplay($aArrayTarget, "Target and Source concatenated") Func _AddLocallyDefinedArray(ByRef $aTarget) If Not (IsArray($aTarget) and UBound($aTarget,0)=1) Then Return Local $aArraySource[5] = ["5", "6", "7", "8", "9"] _ArrayConcatenate($aTarget, $aArraySource) EndFunc This way it'll work regardless of whether the target is global.1 point -
Can i run a script remotly?
SOLVE-SMART reacted to ioa747 for a topic
I don't actually need it, Just food for thought Thanks !!1 point -
1 point
-
This UDF contains functions to make the handling of arrays more effective and elegant. Besides functions which are inspired by Python's range-create and its array-slicing, most of the functions are based on the principle of being able to specify user-defined functions for subtasks. E.g. with the classic _ArraySort() it is not possible to sort "naturally" or to sort 2D arrays by multiple columns or instead by string length or or or... With these functions here you can usually realize this in only one function call. Also the possibility to display arrays nicely formatted as string (quasi the counterpart to _ArrayDisplay) was missing until now. The function list of the UDF: Therefore, here are a few code examples for selected functions: _ArrayCreate(): _ArraySlice(): _Array2String(): _ArraySortFlexible(): _ArrayBinarySearchFlex(): _ArrayGetNthBiggestElement(): >>sourcecode and download on github<<1 point
-
JSON UDF in pure AutoIt
TheDcoder reacted to AspirinJunkie for a topic
To be fair, I have attached a file where the ratio is the other way around. The reason here is that there is massive use of JSON unicode char escapes in the file. The escapes resolution seems to be implemented more efficiently in jsmn. To be honest it is still a big mystery to me how a parser written in pure AutoIt and executed by interpreter can be faster (even if it were only in a few cases) than one in machine code. On the other hand, it must be said that jsmn does not peddle great speed, but rather the small code size and the portability of the code. These promises are simply kept by jsmn. Aerosmith.json1 point