Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/07/2019 in all areas

  1. Hello Community, here's the latest update on... SMF - Search my Files Current Version: v17 (2024-Oct-20) SMF - Search my Files features A good looking GUI, Search files by location, Search files and / or folders, Poll [-]File names and Locations in Long and Short (8.3) format, [-]File Extensions, [-]File Times (modified, created, accessed), [-]File size, [-]File Attributes, [-]File Extended Attributes, Filter by [-]Extension, [-]Attribute, [-]File size, [-]File time, Free Name filtering by usage of RegEx, GUI designed to fit to 800x600 desktops with Tab-Design Nice looking Icon Minimize to Tray (also while searching) Export Result to CSV-file Export Result to XML-file Save & Load search runs Build Tree for local Computer on StartUp, add NetworkDrives optional A separate Report-GUI [-]Pre-Select output columns [-]SQLite driven [-]Dynamically generated statements, fully user adjustable [-]Dynamically sub filtering of results on the fly [-]Results can be executed directly, starting with the default associated program (ShellExcecute) [-]Select Results by drag, copy selected URIs to clipboard [-]Copy, move, delete or Erase results or subset of results md5 driven Duplicate file finder [-]High-Performance [-]added trimmed md5 short calculation (false md5, but sufficient for dup-search and a great speed improvement!) [-]Search 30.000 pics for dups in 1min 30secs Added many other ideas (some not activated / implemented yet) Limitations / Bugs / ToDos Lots and lots of unnecessary Global Variables Ugly code PLUS violations of any coding principal known to man... But hey, thats why I release the source, so that YOU help me to further improve SMF... SMF works fine at least on the 32bit XP SP3 and 64bit Win7/Win8/Win10 machines and I've tested it on. If you find bugs please let me know. Thanks to my sweet girlfriend for reviewing, giving new ideas and having so much patience with me :-*. Thanks to Jon, Larry, Jos, Valik, Jpm, Melba23 and Trancexx and for creating AutoIt and maintaining the forum. And finally thanks to all these great guys from the forum, providing excellent UDFs, snippets of code I use in SMF or help and feedback: Achilles, Ascend4nt, Ed_Maximized, Elgabionline, Erik Pilsits (Wraithdu), Eukalyptus, Gafrost, Holger Kotsch, Jarvis J. Stubblefield (JSThePatriot), Jos, Lahire Biette, Lazycat, Lod3n, Prog@ndy, Ptrex, Rasim, RazorM, RobSaunders, Sean Hart, Siao, Simucal, Smashly, SmOke_N, Teh_hahn, Valik, Ward, WideBoyDixon, Yann Perrin, Yashied & Zedna. Please let me know if you found some piece of code in the source for which I forgot to mention a credit. The executable and the source can be downloaded from my site: https://funk.eu Enjoy, let me know what you think of SMF and with Best Regards
    1 point
  2. https://mpv.io/ is a free, open source, and cross-platform media player. mpv can be controlled by external programs using the JSON-based IPC protocol. It can be enabled by specifying the path to a unix socket or a named pipe using the option --input-ipc-server. Clients can connect to this socket and send commands to the player or receive events from it. https://mpv.io/manual/stable/#json-ipc Find attached a proof of concept example on how to control MPV via Pipes by AutoIt. MediaInfo.dll is included to auto-rotated movies with "Orientation" flag set. Download MPV.exe from homepage and point to it with the var $s_Global_Path_MPV. Set $s_Global_Path_MediaFile to a movie file to run the test-script on. Have fun MPV-Test_v0011.zip
    1 point
  3. 27 November 2019: Uploaded a new SciTe4AutoIt3.exe v19.1127.1402.0 installer. This version contains the new SciTE 4.2.0 version. Check below for all other updates to the included utilities. ==> SciTE4AutoIt3 v19.1127.1402.0 Enjoy, Jos Addition/Changes/Fixes in the current installer: -------------------------------------------------------------------------------------------------- 27-11-2019 *** Merged the SciTE v 4.2.0 by Neil Hodgson with our own version of SciTE. (Jos) *** Updated AutoIt3Wrapper v19.1127.1402.0 (Jos)     - 19.102.1901.1 added encoding retrieval for UTF8/ANSI files so they are properly written back     - 19.102.1901.2 Exit script with 999 when update resource copy failed .     - 19.102.1901.3 Fix incrementing version number now before running au3stripper to ensure it contains the new version when increment before is requested.     - 19.102.1901.4 increment version before au3stripper when increment before is Y     - 19.102.1901.5 also update fileversion info in case of a3x compile when requested.     - 19.102.1901.7 change au3check and tidy  stop on error logic to allow for other editor programs.     - 19.102.1901.8-11 Changes to allow the program to be run by other editors.     - 19.102.1901.12 Updates Stop and Restartconsole message to indicate in case the HotKeys aren't set in case of second instance                      HotKeys are ony set when the Editor program has the focus to allow for multiple instances.     - 19.102.1901.13 Updated _RefreshSystemTray, which wasn't working anymore since a long time     - 19.102.1901.14 Added WinClose for the Shelled Script to nicely close that process before ultimately killing it when still needed. *** Updated Au3Stripper v19.1127.1402.0 (Jos)     - 19.102.1901.2 Fixed not removing #pragma lines from Included files.     - 19.102.1901.5 Fixed ternary stripping issue *** Updated SciTEConfig v19.1127.1402.0 (Jos)     - 19.524.1057.1 Fixed creation of includes.txt in userdir and  added some extra logging for adding includes to includes.txt - Some small updates to standard themes. *** Updated Tidy v19.1127.1402.0 (Jos)     - 19.524.1057.1: Fix tidy issue adding space after closing > on #include statement. -------------------------------------------------------------------------------------------------- ==> ScitillaHistory page containing all SciTE-Scintilla updates. ==> Visit the SciTE4AutoIt3 Download page for the latest versions ==> Check the online documentation for an overview of all extra's you get with this installer.
    1 point
  4. Hi I just wanted to share the tree I've made with all of you. Made it myself with a little help of the forum and google. This uses an example from @Chimp in this post, then I added the movable part, you exit by pressing 'end'. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=tree.ico #AutoIt3Wrapper_AU3Check_Stop_OnWarning=y #AutoIt3Wrapper_Run_Tidy=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <WinAPISysWin.au3> #include <GUIConstants.au3> #include <Misc.au3> ; for _IsPressed (23 END key) ;FileInstall("***\tree.gif", @ScriptDir & "\tree.gif") ;<<<<<<<<<< include ur gif file here Local $hDLL = DllOpen("user32.dll"), $oIE = ObjCreate("Shell.Explorer.2") Local $hBackground = GUICreate("", 350, 470, 20, 20, $WS_POPUP, $WS_EX_LAYERED + $WS_EX_TOPMOST) GUISetBkColor(0xffffff) Local $AlphaKey = 0xffffff $hLabel = GUICtrlCreateLabel("", 0, 0, 350, 450, -1, $GUI_WS_EX_PARENTDRAG) _WinAPI_SetLayeredWindowAttributes($hBackground, $AlphaKey, 0, $LWA_COLORKEY) GUISetState(@SW_SHOW, $hBackground) $hIE = GUICtrlCreateObj($oIE, -20, -5, 410, 480) ; <- embedd $oIE in the AutoIt GUI GUICtrlSetBkColor(-1, 0xffffff) $oIE.navigate(@ScriptDir & "\tree.gif") While True If _IsPressed("23", $hDLL) Then ExitLoop ; END key was pressed Sleep(50) WEnd $oIE = "" $hDLL = "" GUIDelete($hBackground) Thanks and happy holidays! xmas.au3 xmas.exe tree.ico
    1 point
  5. JohnWIlling

    Page Dump

    Over the years I developed a routine to dump every page element for IE. I've attached the file that contains this routine (PageInfo). This way, given a page, I could identify all of the object as AutoIt sees it. Now I'm like to have something similar for WD using the FindElement. Any suggestion on how best to accomplish this? Test_IE.au3
    1 point
  6. A bit shorter... #include <Array.au3> $a = IniReadSection("colours.ini", "colours") For $i = 0 to UBound ($a)-1 $a[$i][0] = Number($a[$i][0]) Next ;_ArrayDisplay ($a) _ArraySort ($a, 0, 1) ;_ArrayDisplay ($a) IniWriteSection("colours_sorted.ini", "COLOURS", $a)
    1 point
  7. Jos

    Sort ini file numerically

    Something like this should be close: (make sure you have a backup before testing!) #include <Array.au3> $sFilePath = "colours.ini" ; Read the INI section labelled 'General'. This will return a 2 dimensional array. Local $aArray = IniReadSection($sFilePath, "COLOURS") If @error Then Exit ; process data from section For $i = 1 To $aArray[0][0] ; convert KEY string to value $aArray[$i][0] = number($aArray[$i][0]) consolewrite("Key: " & $aArray[$i][0] & " Value: " & $aArray[$i][1] & @CRLF ) Next _ArraySort($aArray,0,1) ; Remove old unsorted Section from INI IniDelete($sFilePath,"COLOURS") ; Write sorted values For $i = 1 To $aArray[0][0] IniWrite($sFilePath,"COLOURS",$aArray[$i][0],$aArray[$i][1]) consolewrite("Key: " & $aArray[$i][0] & " Value: " & $aArray[$i][1] & @CRLF ) Next Jos
    1 point
  8. Newer version ( 0.2019.12.07) added a color tweaker that correlates RGB and HSL and one can tweak more than one color at once, so that is cool. Also added a color picker of sorts that I call it "pixel observer" (as that is what it does). At times to make this code, I need to get the pixel color but an not mouse over it, so, had to put something together to do just that. ..in the pics above you an see the need to not mouseover as the pixel color would change. When calling the pixel observer from the interface ( clicking "[ C ]" ), it'll highlight when matching colors. And that was handy for coding this. There is a pixel distance option that also came handy for coding the preview. Here is the text for the help screen: ...among the things that I'd like to try is to do the preview in GDI+. I believe it would not flash as this one does. But I feel is good enough as is, as far as functionality. But I'll have to pick this up later next year. If you have any ideas I did not think of and is within my ability, I'll look into it when I get back to this code. The files are in the downloads section.
    1 point
  9. 2019-Dec-07, Changelog v12 > v13 Updated - SQLite Dll to 3.31.0-Beta Updated - MediaInfo Dll to 19.09 Updated - TrID Definitions to version 2019 Dec 02 Updated - Further speed improvements Updated - Lots of other small bug fixes and style changes Source and Executable are available at http://www.funk.eu Best Regards Updated first Post... Enjoy ...
    1 point
  10. OK. It took me some time to partly digest this. I focus on the actual data you'll be storing and querying. The rest of your program workflow is something completely separate. So from what I gathered, you have to store at least countries, their states and potentially many abbreviations for them. Alongside you also have to deal with a list of apps (whatever that means) and the preference they have set for conversion of the above data. I'd advise that you download a good 3rd-party SQLite DB manager, like SQLite Expert (the freeware version offers a lot of features without nagware, adware nor anything). Take some time to tour the thing, play with examples. That tool will allow you to easily setup DB schemas (with some help), try them on real-world or example data, execute queries and determine what to change until the result is satisfactory w.r.t. your context. A database is organized in tables (think "mahematical sets", an SQL table has no intrinsic order😞 a number of rows (like in a spreadsheet) and one or more columns which store attributes for the row. A row must have a unique ID, generally a meaningless unique integer (somehow similar to the name or memory address of a variable). You may have to create one or more indices to speed up searching the data in the table. A typical DB contains several tables, most of the time related by strong relationships and satisfying some constraints. The goal of a DB schema (its design) is to enforce those constraints and relationships in all cases. For instance a genealogy DB must satisfy that noone is it's own parent, noone is his sister parent, that everyone has one male and one female parent... Even on what seems a trivial example, you can feel that "parent" and "parenthood" has to be made rigourous notions to deal with real-world cases (adoption vs biological parents, gamete donation, gay parents, surrogate mother, transgender, whatelse). If you don't precisely enough define the entities and their relationships, your DB is going to make you very sorry some day. Countries: the ISO codes (ISO2 & ISO3, i.e. US & USA, but some countries don't have an ISO3 code assigned) are good candidates to identify a country. Yet, some countries aren't recognized in some contexts! More fuzzy are country names: there are several "official standards" to choose from and this gets worse with country names translations: is my country France, Frankreich, Frànkrich, Frankrijk, Francia, Francià, França, Γαλλία, Fransän, Франция, საფრანგეთი, کومرٱ ڤلات فرانسٱ , whatelse? Depending on your use, you'll have to store translations of country names elsewhere from fixed columns of the country table for as many languages or standard of your choice, or choice of the apps you deal with. That needs to be precisely defined as you'll see below with examples. Countrynames (nicknames) are stored in a separate table, each with a link to their row in country table. This machinery is the opposite to data pointers in many IT languages: here, the child "points" to the parent. This is called a foreign key in DB world. 'Foreign' in that it links an entry in one table to one entry in another table, here the country table. States within a given country: a state has to be in relationship with one and only one country, even if one can find states with the same name in distinct countries. In some countries "region" has the same meaning as "state in the US". A state will carry a unique ID (say an integer), one name or abbreviation or translation AND a key to a country (the ID of the country, also an integer). This is a many to one relationship (names to countries). Now if you'll have to handle countries and/or states/regions in several languages, you'll find it much easier to have created table linking a name with a unique country (another foreign key). This way you can search this table for "Франция" and using the foreign key, find that it refers to FR (ISO2) or FRA (ISO3). If you choose a wrong design and store alternative/translated names or abbreviations in columns of the country table, you'd have to search every such column separately, involving more work and more maintenance if things evolve. OTOH, with such a separate table you can instantly list all know names of a country, or all states/region in a country, all with one fast query. String are stored internally as Unicode (as you can see in table currencies). You can search case-sensitively or not, use wildcards % and _ (equivalent for DOS * and ?) and even use add-on functions like fuzzy search or regex (compatible with AutoIt PCRE). Trying to do the same with arrays is going to be messy and painful. I'm joining an example toy DB. Countries table derived from my own, countrynames in a restricted number of languages and conventions, currencies linked by foreign-key from the country table, statesnames in another table. As examples, you can list all the countrynames like '%anm%' by using the Name header of the countrynames table in the Data tab, or by using the following query in the SQL tab and hitting F5: select * from countrynames where countryname like '%anm%'; To find the ISO2 code and intl phone prefix for cyprus or chyprus or chypre or ..., and check that there is no ambiguity on the name (only one prefix should result): select distinct phoneintl from countries join countrynames using (countryid) where countryname like 'c%pr%'; Find a list of official ENiso names of countries using currencyISO 'AUD': select countryname from countrynames join countries using (countryid) join currencies using (currencyid) where currencyISO = 'AUD' and countrynamelang = 'EN' and countrynametype = 'ISO'; Obviously this example isn't any close to what you actually need but it should give you a global idea about where you're heading if you follow this route and how powerful the beast can be (and that's only the surface). Not every piece of data is complete in every table, I've rushed that from several pieces floating around. The table countrynames includes one extra unpopulated column: countrynametype. Feel free to populate these with some data of your own, countrynametype allowing you to classify what kind of name or abbreviation the row contains. States/regions/provinces use yet another table with foreign key to countries table. StateNames table gives alternate names or attributes to official states listed in States table. List all states of Australia with their codes and French names, order by statecode ascending: select distinct statecode, statename as FRname from countries join countrynames using(countryid) join states using (countryid) join statenames using (stateid) where countryname like 'australia' and statenamelang = 'FR' order by statecode You can have dozens or hundreds tables in a DB, large DBs can have hundreds thousand and reach 100 TB. Don't be afraid by syntax, I know it seems weird at first: it's always clearer and shorter than code which would produce the same result! SQL language allows you to precisely describe what you want, not how to get there. Abbrevs.sq3 Sorry folks for the text wall.
    1 point
  11. I use USB modem like this I send AT command with AutoIt ComPort functions. You could also use your own Android Phone using ADB like this: https://stackoverflow.com/questions/17580199/sending-a-sms-on-android-through-adb Saludos
    1 point
×
×
  • Create New...