Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Search tool-easily search your harddrive!


  • Please log in to reply
2 replies to this topic
tidbit
  • Administrators
  • 2709 posts
  • Hates playing Janitor
  • Last active: Jan 15 2016 11:37 PM
  • Joined: 09 Mar 2008
here is my 1st script with AHK:
.ahk: <!-- m -->http://upl.vs-hs.com/d/85c<!-- m -->
.exe: <!-- m -->http://upl.vs-hs.com/d/979<!-- m -->

screenshot: <!-- m -->http://i202.photobuc...1/t1kk1/ste.jpg<!-- m -->
Posted Image

Description:
searches your desired directory (start menu if left blank) for a file and or filetype. Double-click on the file to open it.

heres some examples:

example1-find sonic.exe:
<directory>
name: sonic
type: exe

example2-search for <word(s)>gun<word(s)>:
<directory>
name: *gun*
type: jpg

example3-every file name/type in the directory (CAREFUL!!):
<directory>
name: *
type: *

you get the point right? oh and theres no stop button, so..yeah, if anyone could help me replace the "Clear" button with a "Stop" button, I would be greatful! or any "good" modifications would be awesome.

rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .


garry
  • Spam Officer
  • 3219 posts
  • Last active: Sep 20 2018 02:47 PM
  • Joined: 19 Apr 2005

...if anyone could help me replace the "Clear" button with a "Stop" button

idea to stop the loop
research:
Gui,Submit,Nohide
A1=0
.
.
LV_Delete() ;clear old dir.
  Loop,%chdir%\%search%.%filefilter%,0,1
    {
    if A1=1
       break
    LV_Add("",A_LoopFileName,A_LoopFileSizeKB,A_LoopFileExt,A_LoopFileFullPath) ;add the info to the listview
    }
.
.
clear:
Gui,Submit,Nohide
A1=1
;LV_Delete()
return


tidbit isto lazy to login
  • Guests
  • Last active:
  • Joined: --
ive tried something like that. but there is one issue:
the search is a button, so i would have to press the search button to stop. and if i do that, it exacutes LV_Delete. of course i could put that in the if statement to, and switch the "search" button text to "stop"


imma play around a bit more