Work for scriptwriter!

Rispondi al messaggio

Emoticon
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode attivo
[img] attivo
[url] attivo
Emoticon attive

Revisione argomento
   

Espandi visuale Revisione argomento: Work for scriptwriter!

Re: Work for scriptwriter!

da chrisjj » ven dic 11, 2009 10:20 pm

Thanks. Is there anyone prepared to take on this task?

Re: Work for scriptwriter!

da Melloware » mar dic 01, 2009 10:36 pm

trixmoto ha scritto:I'm not sure it's possible to write into the search bar via scripting.
Well using Windows API SendMessage or PostMessage and Spy++ if it is a normal ComCtrl textbox it should be able to be modified and text entered into it.

Assuming HWND is the handle to the MM Search text box...

Codice: Seleziona tutto

[DllImport("user32.dll")]
private static extern int SendMessage(IntPtr hWnd, int wMsg, int
wParam, [MarshalAs(UnmanagedType.LPStr)] string lParam);

private const int WM_SETTEXT = 0x0C;

private void button1_Click(object sender, EventArgs e)
{
string txt = "Hello World";
SendMessage(hWnd, WM_SETTEXT,0, txt);
}

Re: Work for scriptwriter!

da trixmoto » lun nov 30, 2009 7:04 am

No, not using the MM search functionality. A script would have to build and run the SQL itself and then load the results into the window.

Re: Work for scriptwriter!

da chrisjj » lun nov 30, 2009 6:12 am

trixmoto ha scritto:I'm not sure it's possible to write into the search bar via scripting.
Ah, useful info - thanks.

Is there any other scriptable method of doing a search?

Re: Work for scriptwriter!

da trixmoto » lun nov 30, 2009 6:01 am

I'm not sure it's possible to write into the search bar via scripting.

Re: Work for scriptwriter!

da chrisjj » dom nov 29, 2009 1:30 pm

> Advanced Duplicate Find & Fix[/url] has a similar functionality to which you are looking for.

Indeed it has a sub-set (thanks) - it is the solution I am trying to improve upon.

Re: Work for scriptwriter!

da Mizery_Made » dom nov 29, 2009 1:16 pm

Advanced Duplicate Find & Fix has a similar functionality to which you are looking for. It's not ran via hotkeys or commands, but it offers a "Find More from Same -> Custom Search" which would allow you to run that type of four properties matches based on the properties of the song you right click on. I would say that it also allows you to even set "Auto-Searches" but I can't recall if that ability is in 3.5.2 available in that thread, or if it's in a build Bex was working on a while back. It would allow you to set up default searches that would only be a right click and a couple movements of the mouse away. I don't believe the auto-searches would work with a conditional search (i.e., search for Artist, Title, Genre & Year for most cases, but if the selected track doesn't have a year, it wouldn't run the search minus the year)

Work for scriptwriter!

da chrisjj » dom nov 29, 2009 9:18 am

I want a script called Search for Similar that upon a hotkey press or menu command, pastes into the quick search bar this:

Title:<title> AND Artist:<artist> AND Genre:<genre> AND Year:<date>

properties being taken from the track selected (in Track List or Now Playing), but omitting terms for any blanks e.g. if Artists and Year are blank:

Title:<title> AND Genre:<genre>

Payment is available! Just quote a price first.

Thanks.

Top