Thread Tools Display Modes
09-05-10, 08:23 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
script'n'run

/script and /run are still dead?

Code:
/script DEFAULT_CHAT_FRAME:AddMessage(GetMouseFocus():GetName())
does not work and I need it badly.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
 
09-05-10, 08:27 AM   #2
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 716
Make an addon with this:

Code:
SLASH_RUN1 = "/run"
SlashCmdList.RUN = function(arg) loadstring(arg)() end
And BTW, use /framestack, its better
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
 
09-05-10, 08:41 AM   #3
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Thx for the framestack hint. That was pretty much what I wanted.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
 
09-05-10, 08:53 AM   #4
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
/fstack <- shorter
 
09-05-10, 09:01 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
and print() is shorter than DEFAULT_CHAT_FRAME:AddMessage()
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

 
09-05-10, 09:13 PM   #6
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,308
I looked into the FrameXML to see what was causing the /script, /run, and /dump commands to fail. Apparently, the code makes a check on the client build through a function called IsGMClient(). This should return an equivalent to true if the code is being run on a general release (not beta or PTR).

There's an addon made to fix this, it completely overwrites both functions, but it should still work.
It's All Cogwheel's Fault (/run /dump fix)
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
 
 

WoWInterface » AddOns, Compilations, Macros » Cataclysm Beta » script'n'run

Thread Tools
Display Modes

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