I am trying to create an applescript to parse a text string into the World of Warcraft Application.
An example of the script
set CR to ASCII character of 13
repeat 100 times
tell application “System Events”
tell application “World of Warcraft” to activate
keystroke CR
keystroke “/run for x=0,4 do for y=1,GetContainerNumSlots(x) do l=GetContainerItemLink(x,y) if l then if GetItemInfo(l)==“Raw Brilliant Smallfish” then PickupContainerItem(x,y) DeleteCursorItem() return end end end end” & CR
What I was hoping for is for the script to press Return then parse “/run for x=0,4 do for y=1,GetContainerNumSlots(x) do l=GetContainerItemLink(x,y) if l then if GetItemInfo(l)==“Raw Brilliant Smallfish” then PickupContainerItem(x,y) DeleteCursorItem() return end end end end” and then press Return again.
The issue I am getting is that the “Raw Brilliant Smallfish” section of my parse is stopping the script from running but it is required in the game otherwise it errors in there.