• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Request - Request for Level 2: Macro Google Search Item Links and Targets From Within EQ

jmac

Member
Joined
Sep 12, 2004
RedCents
106¢
Not sure if posting stuff for temporary level 2 access is still a thing, but here's a macro I created to search google from within eq. It can take item links, targets or raw phrases.


Code:
Sub Main

    /declare searchQuery string local ${Param0}
   
    /echo Incoming Query ${searchQuery}
   
   
    /if (${searchQuery.Find[00000]}) {
        |- From Item Link
        /varset searchQuery ${searchQuery.Right[${Math.Calc[${searchQuery.Length} - 51]}]}
        /varset searchQuery ${searchQuery.Replace[ ,+]}
    } else /if (${searchQuery.Find[_]}) {
        |- From ${Target.Name}
        /varset searchQuery ${searchQuery}
        /varset searchQuery ${searchQuery.Replace[_,+]}
    } else /if (${searchQuery.Find[ ]}) {
        |- From Raw String With Spaces
        /varset searchQuery ${searchQuery}
        /varset searchQuery ${searchQuery.Replace[ ,+]}
    } else {
        |- From Raw String No Spaces
        /varset searchQuery ${searchQuery}
    }
    /echo Parsed Query ${searchQuery}
   
    /exec "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://google.com/search?q=eq+${searchQuery} bg


/return

it will open chrome.exe with search params "eq commandLineParameter" so you need to have correct path to chrome.exe

usage:
/mac google ${Target.Name}
/mac google "Item Link"
Must have quotes around the item link
/mac google "north ro"


*btw the item link parsing is from Underfoot client, need 57 if doing RoF2
 
you can purchase a lvl 2 sub with redcents in the RedCents Shop - posting and contributing hopefully gets folks to "hit you with them red cents" and you can save em up for lvl 2

I hit you with that red cents button - thanks for sharing!
 
Nice work! I'd suggest adding the ability for it to use other browsers as well. I also hit you with the redcent button.
 
Can't get /exec start to work from within eq, but could be my client or mq2 version... if it works then yea much nicer
 
With start, make sure it works from command line since if you're including quotes it needs to be
Bash:
start "" "https://etc"

Should work, but alternatively you can also use
Bash:
cmd /c start
to launch the cmd.exe with the start command.

I always test commands from command line first to get them working.
 
Request - Request for Level 2: Macro Google Search Item Links and Targets From Within EQ

Users who are viewing this thread

Back
Top
Cart