Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/08/2020 in all areas

  1. I don't know if you are like me, but I am always searching for that specific code I wrote over the years, but cannot find it. It was way too exhausting to look at 1k+ scripts. And Windows Explorer is not the best tool to do such exploration. So I made this little script that save me tons of time. Hope you will find it useful too. You can adjust default search folders and type of files you want to search for, but you can also change it at runtime. To use multiple filters separate them with ";" Let me know if you have any suggestion to enhance the tool. Version 2023-12-27 * Code revision : 3.3.16.1 now required Version 2023-05-10 * Sets children flag on first drawn list Version 2021-04-06 * Context menu modified to allow clipping file name and line content Version 2020-11-21 * Allows only 1 running instance of the script * Added right-click support on Tray to exit script Version 2020-06-29 * Added Copy File Name to context menu (helps to copy include files names) Version 2020-04-22 * Added icons to main buttons * Added informative box to describe progress and results of a search * Increased robustness of the GUI * Open Button enabled only under the right conditions * Added Tooltip on filter field to describe how to enter multiple criteria * Forced a minimum Window size Version 2020-04-18 * Added support of Context Menu in Tree View * Added support of Tray * Minimizes on Tray Version 2020-04-12 * Added DPI awareness * Added Enter Key functionality to start a search Version 2020-04-09 * Changed base size of the GUI to make it wider * Made the window resizable * Added Reset button * Shown busy cursor more appropriately * Corrected bug of first line displayed Thanks all for your input. SearchContent.au3
    2 points
  2. TheSaint

    Get Image Links

    This program is a bit of a joint venture between myself and TheDcoder. I created the program, then as I usually do, mentioned it to TheDcoder in passing ... we chat most days on HexChat (freenode). He then kindly suggested he could create a script (browser plugin/addon) to make it even simpler. I said go for it, and he did. We have only tested it on Chrome (him) and Brave (me) ... Brave is the fastest browser I know and a Chrome clone, and the script works well. I then modified my program to suit his addon. A BIG THANKS to him. NOTE - We used the ViolentMonkey addon to install and run his script with, but he assures me it should also work fine with GreaseMonkey and other browsers. If you want to use his script, then something like one of those is required. https://violentmonkey.github.io/ IMPORTANT - The script will attempt to work on every site, so best to disable when not required or you will get pestered with popups. This is simply done by deselecting the script from the ViolentMonkey addon browser toolbar button option. I imagine GreaseMonkey etc will have similar. Installing the script via the program's INSTALL button, requires you to have your default browser already running, and ViolentMonkey or GreaseMonkey etc, already installed. If not, then you will be prompted to download the script instead. The program 'Get Image Links' basically allows you to get some images, that you cannot easily get by right-click and save, in your browser. TheDcoder tells me this is because in the instances I wanted to use it for, the images were set as background images for the game page links. So even saving the web page does not get them, though the links are in the source code of the saved page. It particularly works well with the large thumbnail game images at both Itch.io and IndieGala ... not yet tried with any other site. Basically I download free games from them, and then grab each cover image thumbnail to set as the folder image for each game. There is two methods (ways) to use the program. (1) Use TheDcoder's script. (2) Save the web page. Both methods usually require you to scroll to the last image, so that every image has shown in your browser, and then becomes available. STEP 1 (1) Using TheDcoder's script. Install script (once) and enable at need for the site you are wanting to grab images from. Visit the site and page you want or refresh, so that you see a popup from the script ... which tells you to use CTRL+SHIFT+C to grab the links when ready. On the use of CTRL+SHIFT+C another popup should tell you how many links have been copied. Then click the IMPORT button on the 'Get Image Links' program, and links will be copied from the clipboard, to the List field. (2) Saving the web page. This is my original method and not as quick and simple as TheDcoder's script. Visit the site and page you want, then save that page locally on your PC. Drag & Drop that saved page, onto the List area of the 'Get Image Links' program. Hopefully, all the links will be extracted and populate the List field. Remove any undesirables. NOTE - My program provides some defaults for line splitting and link section extraction. They work for Itch.io and IndieGala ... though the latter may need a removal or three. Please note, that the two methods above, replace existing entries on the List. To add instead, you need to hold down CTRL when either clicking the IMPORT button or using Drag & Drop. STEP 2 You can elect to download each image link individually or all, with one click of the DOWNLOAD button. The DOWNLOAD button also alternatively works as a REMOVAL button, if the 'Wipe' option is selected. Before clicking DOWNLOAD, set the destination path, using that option ... or go with the default of My Documents ... a sub-folder called 'Images' is created in any case. Once an image file has been downloaded successfully, then it gets 4 asterisk in front of the URL in the List. Selecting an entry on the List that has been downloaded, you can view that image file, by clicking the VIEW button, which uses your default viewer program. If you re-import Links from the same site and have not relocated the downloads, then any existing entry gets those 4 asterisk and is skipped during further downloading. NOTE ALSO, that the program remembers its screen position when closed. It also checks every 5 seconds, for an active Internet connection and enables or disables two buttons accordingly ... if needed. As you can see from the screenshot, I tested it offline. TheDcoder's GitHub page for the browser addon script. Please go there and give him a Star. Get Image Links v1.2.zip (source is included) Get Image Links v1.1.zip (5 + 9 + 15 previous downloads) Working on the update due to wrong script link, back with it shortly. The script works but was an earlier version without the count. My apologies. Enjoy!
    1 point
  3. Musashi

    Client Access cache

    ) missing
    1 point
  4. Thanks for writing this nice little tool. As @jchd pointed out, there are already a lot of external textfinders, but for quick searches yours is very useful. Furthermore, it is also a good example script for others . Suggestions : The width of the GUI and controls is fixed. The TreeView control ($idTreeFile) and the Combo control ($idFolder) could be a bit wider. On the other hand, anyone can easily customize that themselves. A button to reset the display for a new search might be a good addition.
    1 point
  5. Nine, thumbs up from me. Clear, neat, concise and useful peace of code. Thanks a lot. Regards.
    1 point
  6. TheDcoder

    Get Image Links

    Just to clarify, you need to click the "Raw" button to get the raw plain text script, and if you have ViolentMonkey installed, it will prompt you to update the script. This link will always point to the latest version as it is the link for the "project" itself. "Raw" links are tied to specific commits so they will always serve the same file even if the project was updated. This is a feature of Git, unfotunately we don't have a dynamic raw link which always points to the latest version, this is a limitation of GitHub Gist.
    1 point
  7. We generally only use Citrix for staff without laptops to connect in remotely from home, however majority of staff have laptops and VPN access. Although since the lock down we've had to extend our Citrix licensing and add additional host servers to handle the extra load during business hours, that's $50k we'll probably never fully utilize (probably would have been cheaper to just buy the staff laptops). I've never used LoginVSI but looks like an interesting tool, although once we come out of lock down, I expect usage to drop again, so would probably be overkill in our environment, I mean prior to lockdown we'd be lucky to have 50 staff connecting concurrently. Just glad it's not my money
    1 point
  8. Not meaning your program is bad, just a hint: I use(d) both AgentRansack and FileLocator from https://www.mythicsoft.com/ with high satisfaction.
    1 point
  9. TheSaint

    Get Image Links

    I have now fixed the program and it is available again. See first post. My apologies to those five who downloaded it, TheDcoder and I got our wires crossed ... and unfortunately he wasn't around to check, when I first uploaded. The program for those five and me, will replace the old script link in the 'Settings.ini' file if found, with the new. TheDcoder tells me it is a limitation of Gist at Git that updates are a new link, so that means any update will mean breaking what is built into the program. My way around that, was the writing to the INI file, which I had added by default. So any future updates to the script will mean providing the updated link here, for manually pasting into the INI file, if users aren't savvy enough to work things out for themselves. Of course, the best method of dealing with a script update, is to just go to the Git web page and manually update by clicking on the link. https://gist.github.com/TheDcoder/bbd889d4626d06f5293dfe9a2f06d12d Seeing as I had to change and compile my script again, I decided to tweak the browsing for destination values arrangement, so it now works better.
    1 point
  10. It's not a number then. Floating number separated with dot, not with comma, otherwise it's a string. You (as a programmer) should define the format for the input. If it's not in defined format, it's considered wrong (unsupported) input.
    1 point
  11. I was also getting error 40 on some processes after _WinAPI_GetProcessCommandLine. It means that some part of the processReadMemory was out of reach. After debugging the WinAPI function I found on MSDN that x64 process cannot be read from another x86 process. In order to have a successful return you must run your script x64 (or use WMI like I did). Don't know if that will solve your issue though...But it is a crucial information that is not documented in help file.
    1 point
  12. Maybe this will work better and enlighten you why this particular computer does not answer correctly : #RequireAdmin #include <Array.au3> #include <WinAPIHObj.au3> #include <WinAPIProc.au3> Local $aAdjust, $aProcess[200][10], $iCount = 0 Local $hToken = _WinAPI_OpenProcessToken($TOKEN_ALL_ACCESS) _WinAPI_AdjustTokenPrivileges($hToken, $SE_DEBUG_NAME, $SE_PRIVILEGE_ENABLED, $aAdjust) Local $objWMIService = ObjGet("winmgmts:\\" & @ComputerName & "\root\CIMV2") Local $colItems = $objWMIService.ExecQuery('SELECT * FROM Win32_Process') If Not IsObj($colItems) Then Exit MsgBox(0, "", "Not an object") If Not $colItems.count Then Exit MsgBox(0, "", "Not found") For $oItem In $colItems $aProcess[$iCount][0] = $oItem.ProcessId $aProcess[$iCount][1] = $oItem.SessionId $aProcess[$iCount][2] = $oItem.Caption $aProcess[$iCount][3] = $oItem.CSName $aProcess[$iCount][4] = $oItem.CreationClassName $aProcess[$iCount][5] = $oItem.Description $aProcess[$iCount][6] = $oItem.CSCreationClassName $aProcess[$iCount][7] = $oItem.CommandLine $aProcess[$iCount][8] = _WinAPI_GetProcessCommandLine($oItem.ProcessId) $aProcess[$iCount][9] = @error $iCount += 1 Next ReDim $aProcess[$iCount][10] _WinAPI_AdjustTokenPrivileges($hToken, $aAdjust, 0, $aAdjust) _WinAPI_CloseHandle($hToken) _ArrayDisplay($aProcess) In the SELECT statement, you can add a WHERE clause.
    1 point
  13. @argumentum Oh well I should have done this in first place - Well now I did: ... UPDATE #1: Now I created a ticket for this:https://autoitscript.com/trac/autoit/ticket/3752 ... Let's see what happens.
    1 point
  14. @BigDaddyO Untested, but this seems a valid solution (Method 2)
    1 point
  15. It talks about WinTitleMatchMode on the page that I referenced in my original post. As a matter of fact, it's on the first line of the page and the part right below that shows the different modes. Obviously you didn't read it. I not wasting anymore of my time.
    1 point
  16. Have you tried to openProcessToken with $TOKEN_ALL_ACCESS ?
    1 point
  17. 1 point
  18. Nearly there....You should also use Tidy to make it more readable. This is a shorter cleaned up version of your code: ;just an example may not be 100% accurate HotKeySet("{LCTRL}+d", "remap") Global $bool = False ;to toggle While 1 Sleep(25) WEnd Func remap() If $bool = False Then Send("{LCTRLDOWN}") MouseClick("right") Send("{LCTRLUP}") EndIf $bool = Not $bool EndFunc ;==>remap Jos
    1 point
×
×
  • Create New...