之前更改文本变量名忘了改引用名导致提示复制/粘贴成功会报错
This commit is contained in:
@@ -42,7 +42,7 @@ function keyDown.customGame(key)
|
|||||||
str=str.."!"..copyBoard().."!"
|
str=str.."!"..copyBoard().."!"
|
||||||
if #MISSION>0 then str=str..copyMission()end
|
if #MISSION>0 then str=str..copyMission()end
|
||||||
sys.setClipboardText(str.."!")
|
sys.setClipboardText(str.."!")
|
||||||
LOG.print(text.copySuccess,COLOR.green)
|
LOG.print(text.exportSuccess,COLOR.green)
|
||||||
elseif key=="v"and kb.isDown("lctrl","rctrl")or key=="cV"then
|
elseif key=="v"and kb.isDown("lctrl","rctrl")or key=="cV"then
|
||||||
local str=sys.getClipboardText()
|
local str=sys.getClipboardText()
|
||||||
local p1,p2,p3,p4,p5--ptr*
|
local p1,p2,p3,p4,p5--ptr*
|
||||||
@@ -70,7 +70,7 @@ function keyDown.customGame(key)
|
|||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
LOG.print(text.pasteSuccess,COLOR.green)
|
LOG.print(text.importSuccess,COLOR.green)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
LOG.print(text.dataCorrupted,COLOR.red)
|
LOG.print(text.dataCorrupted,COLOR.red)
|
||||||
|
|||||||
@@ -115,13 +115,13 @@ function keyDown.custom_field(key)
|
|||||||
end
|
end
|
||||||
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
|
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
|
||||||
sys.setClipboardText("Techmino Field:"..copyBoard(S.page))
|
sys.setClipboardText("Techmino Field:"..copyBoard(S.page))
|
||||||
LOG.print(text.copySuccess,COLOR.green)
|
LOG.print(text.exportSuccess,COLOR.green)
|
||||||
elseif key=="v"and kb.isDown("lctrl","rctrl")or key=="cV"then
|
elseif key=="v"and kb.isDown("lctrl","rctrl")or key=="cV"then
|
||||||
local str=sys.getClipboardText()
|
local str=sys.getClipboardText()
|
||||||
local p=string.find(str,":")--ptr*
|
local p=string.find(str,":")--ptr*
|
||||||
if p then str=sub(str,p+1)end
|
if p then str=sub(str,p+1)end
|
||||||
if pasteBoard(str,S.page)then
|
if pasteBoard(str,S.page)then
|
||||||
LOG.print(text.pasteSuccess,COLOR.green)
|
LOG.print(text.importSuccess,COLOR.green)
|
||||||
else
|
else
|
||||||
LOG.print(text.dataCorrupted,COLOR.red)
|
LOG.print(text.dataCorrupted,COLOR.red)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -72,14 +72,14 @@ function keyDown.custom_mission(key)
|
|||||||
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
|
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
|
||||||
if #MISSION>0 then
|
if #MISSION>0 then
|
||||||
sys.setClipboardText("Techmino Target:"..copyMission())
|
sys.setClipboardText("Techmino Target:"..copyMission())
|
||||||
LOG.print(text.copySuccess,COLOR.green)
|
LOG.print(text.exportSuccess,COLOR.green)
|
||||||
end
|
end
|
||||||
elseif key=="v"and kb.isDown("lctrl","rctrl")or key=="cV"then
|
elseif key=="v"and kb.isDown("lctrl","rctrl")or key=="cV"then
|
||||||
local str=sys.getClipboardText()
|
local str=sys.getClipboardText()
|
||||||
local p=string.find(str,":")--ptr*
|
local p=string.find(str,":")--ptr*
|
||||||
if p then str=sub(str,p+1)end
|
if p then str=sub(str,p+1)end
|
||||||
if pasteMission(str)then
|
if pasteMission(str)then
|
||||||
LOG.print(text.pasteSuccess,COLOR.green)
|
LOG.print(text.importSuccess,COLOR.green)
|
||||||
else
|
else
|
||||||
LOG.print(text.dataCorrupted,COLOR.red)
|
LOG.print(text.dataCorrupted,COLOR.red)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -74,14 +74,14 @@ function keyDown.custom_sequence(key)
|
|||||||
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
|
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
|
||||||
if #BAG>0 then
|
if #BAG>0 then
|
||||||
sys.setClipboardText("Techmino SEQ:"..copySequence())
|
sys.setClipboardText("Techmino SEQ:"..copySequence())
|
||||||
LOG.print(text.copySuccess,COLOR.green)
|
LOG.print(text.exportSuccess,COLOR.green)
|
||||||
end
|
end
|
||||||
elseif key=="v"and kb.isDown("lctrl","rctrl")or key=="cV"then
|
elseif key=="v"and kb.isDown("lctrl","rctrl")or key=="cV"then
|
||||||
local str=sys.getClipboardText()
|
local str=sys.getClipboardText()
|
||||||
local p=string.find(str,":")--ptr*
|
local p=string.find(str,":")--ptr*
|
||||||
if p then str=sub(str,p+1)end
|
if p then str=sub(str,p+1)end
|
||||||
if pasteSequence(str)then
|
if pasteSequence(str)then
|
||||||
LOG.print(text.pasteSuccess,COLOR.green)
|
LOG.print(text.importSuccess,COLOR.green)
|
||||||
else
|
else
|
||||||
LOG.print(text.dataCorrupted,COLOR.red)
|
LOG.print(text.dataCorrupted,COLOR.red)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user