EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > General Discussion > Help!?!?!

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 03-16-2009, 02:21 AM
Lanadad Lanadad is offline
A Crazed Gnoll
 
Join Date: Apr 2005
Server: Splitpaw
Posts: 21
Question URL Prefix in Browser Button

I'm trying to get a button in the target window that allows me to open a browser with an URL prefix appended with the name of the target.

I've tried fiddling with the code from ProfitUI (credits: GM9), but I think I'm making an error somewhere. Do I have to escape part of the URL characters?

Currently, this only opens a browser:

Code:
<Button Name="LookUp" OnPress="browser http://www.somewebsite.com/search?name= ## Parent.Name.LocalText" Tooltip="Strategy" />
Any help is appreciated.
Reply With Quote
  #2  
Unread 03-16-2009, 04:31 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

My target window has a button that does this if you want to take a look:
http://www.eq2interface.com/download...edWindows.html
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #3  
Unread 03-16-2009, 09:00 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Also on your code: You can't do it all in one line, first build the URL, then pass it to the browser command.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #4  
Unread 03-16-2009, 09:51 AM
Lanadad Lanadad is offline
A Crazed Gnoll
 
Join Date: Apr 2005
Server: Splitpaw
Posts: 21
Thumbs Up Thanks!

Drumstix42, that's a very nice UI. And thanks for pointing that out to me. It's working now.

Code:
<Button Location="2,2" Name="LookUp" OnPress="URL=&apos;http://eq2.wikia.com/wiki/Special:Search?search=&apos; ## Parent.Name2.LocalText&#xD;&#xA;browser URL" Size="18,18" Style="/WindowElements.WindowFrame.data.settings.style" Tooltip="EQ2Wikia" />

<Button Location="20,2" Name="Strat" OnPress="URL=&apos;http://localhost/wiki/Special:Search?search=&apos; ## Parent.Name2.LocalText&#xD;&#xA;browser URL" Size="18,18" Style="/WindowElements.WindowFrame.data.settings.style" Tooltip="Strat"/>

<Button Location="40,2" Name="Loot" OnPress="URL=&apos;http://lootdb.com/?t=mob&amp;q=&apos; ## Parent.Name2.LocalText&#xD;&#xA;browser URL" Size="18,18" Style="/WindowElements.WindowFrame.data.settings.style" Tooltip="Loot"/>
ps.
GM9, I've added a feature request to the list. Hope you'll consider it.
Reply With Quote
  #5  
Unread 03-16-2009, 11:14 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by Lanadad View Post
ps.
GM9, I've added a feature request to the list. Hope you'll consider it.
Yeah Zoltaroth asked me for the mob lookup a while ago already. It's on the list. I think it should only lookup your target if it is a raid or heroic mob, right? The other question is the other click to search links I have usually allow you a selection of search targets, but on the target window there isn't really much space. I might arrange several transparent buttons horizontally though and allow you to distinguish via the tooltip. Looking at the code you posted above that's somewhat like Drum did I guess.

I'm not sure what you mean by your zone lookup request though. You can't target zones.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #6  
Unread 03-16-2009, 12:15 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

PS: Do enemy players on PVP servers get heroic/epic etc. brackets?
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #7  
Unread 03-16-2009, 01:22 PM
Lanadad Lanadad is offline
A Crazed Gnoll
 
Join Date: Apr 2005
Server: Splitpaw
Posts: 21
Thumbs Up

Quote:
Originally Posted by gm9 View Post
Yeah Zoltaroth asked me for the mob lookup a while ago already. It's on the list. I think it should only lookup your target if it is a raid or heroic mob, right? The other question is the other click to search links I have usually allow you a selection of search targets, but on the target window there isn't really much space. I might arrange several transparent buttons horizontally though and allow you to distinguish via the tooltip. Looking at the code you posted above that's somewhat like Drum did I guess.

I'm not sure what you mean by your zone lookup request though. You can't target zones.
Don't have to I think. You already have the dynamic data for it below the compas/time in yellow text. If the text area is clickable that'd work.

Search string for zone is:
http://lootdb.com/?t=zone&q=

Btw, if you are planning to implement extended searches. It would be great to make them customizable through the existing _ProfitUI_StandardSearches.txt file.

Last edited by Lanadad : 03-16-2009 at 01:30 PM.
Reply With Quote
  #8  
Unread 03-16-2009, 01:29 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Run the updater for the target/implied target stuff. In the end I had it look up all tiers of mobs, not just heroic/epic.

And ok I guess I could add search buttons to the clock window also (it would have to be a different dynamicdata though, what's showing is the region name, not the zone name). I thought you were requesting this for the target window.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:53 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI