• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

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

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!
 
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