Kimiice7 Posted September 8, 2019 Share Posted September 8, 2019 help gg.prompt.lua Qjctx = 1 if gg.isVisible(true) then gg.setVisible(false) end function main() n = gg.prompt({M='value1',N='value2'},nil,{'number','number'}) if n == nil then os.exit() end if n.M and n.N then A() end end function A() gg.clearResults() gg.searchNumber(n.M..';'..n.N, gg.TYPE_DWORD) gg.clearResults() gg.alert(n.M.. '+'..n.N..'='..(n.M+n.M)) end main() while true do if gg.isVisible(true) then gg.setVisible(false) Qjctx = 1 end gg.sleep(100) if Qjctx == 1 then main() end end Please help me fix this For example i do search value1 = 4 and value2 = 4 First search work fine.. But when i try to do second search i got this error.. After restarting script its work again.. And always second action got error.. Thanks for your help.. Link to comment Share on other sites More sharing options...
AKRAMRAZA Posted September 8, 2019 Share Posted September 8, 2019 29 minutes ago, Kimiice7 said: help gg.prompt.lua 516 B · 1 download Qjctx = 1 if gg.isVisible(true) then gg.setVisible(false) end function main() n = gg.prompt({M='value1',N='value2'},nil,{'number','number'}) if n == nil then os.exit() end if n.M and n.N then A() end end function A() gg.clearResults() gg.searchNumber(n.M..';'..n.N, gg.TYPE_DWORD) gg.clearResults() gg.alert(n.M.. '+'..n.N..'='..(n.M+n.M)) end main() while true do if gg.isVisible(true) then gg.setVisible(false) Qjctx = 1 end gg.sleep(100) if Qjctx == 1 then main() end end Please help me fix this For example i do search value1 = 4 and value2 = 4 First search work fine.. But when i try to do second search i got this error.. After restarting script its work again.. And always second action got error.. Thanks for your help.. Doesn't seem to have any error.Script is running fine. Just gives addition result wrong but Script execution doesn't have any errors.I took log also to show.. help gg.prompt.lua_1567979079241_2023344751.log.txt Link to comment Share on other sites More sharing options...
maulz Posted September 9, 2019 Share Posted September 9, 2019 9 hours ago, Kimiice7 said: help gg.prompt.lua 516 B · 3 downloads Qjctx = 1 if gg.isVisible(true) then gg.setVisible(false) end function main() n = gg.prompt({M='value1',N='value2'},nil,{'number','number'}) if n == nil then os.exit() end if n.M and n.N then A() end end function A() gg.clearResults() gg.searchNumber(n.M..';'..n.N, gg.TYPE_DWORD) gg.clearResults() gg.alert(n.M.. '+'..n.N..'='..(n.M+n.M)) end main() while true do if gg.isVisible(true) then gg.setVisible(false) Qjctx = 1 end gg.sleep(100) if Qjctx == 1 then main() end end Please help me fix this For example i do search value1 = 4 and value2 = 4 First search work fine.. But when i try to do second search i got this error.. After restarting script its work again.. And always second action got error.. Thanks for your help.. Update your GG Link to comment Share on other sites More sharing options...
Question
Kimiice7
help gg.prompt.lua
Qjctx = 1
if gg.isVisible(true) then
gg.setVisible(false)
end
function main()
n = gg.prompt({M='value1',N='value2'},nil,{'number','number'})
if n == nil then os.exit() end
if n.M and n.N then A()
end
end
function A()
gg.clearResults()
gg.searchNumber(n.M..';'..n.N, gg.TYPE_DWORD)
gg.clearResults()
gg.alert(n.M.. '+'..n.N..'='..(n.M+n.M))
end
main()
while true do
if gg.isVisible(true) then
gg.setVisible(false)
Qjctx = 1
end
gg.sleep(100)
if Qjctx == 1 then
main()
end
end
Please help me fix this
For example i do search value1 = 4 and value2 = 4
First search work fine..
But when i try to do second search i got this error..
After restarting script its work again.. And always second action got error..
Thanks for your help..
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.