Jump to content
  • 0

Help Me With gg.prompt


Kimiice7

Question

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


 

Screenshot_2019-09-09-04-01-38-486_com.rhmsoft.edit.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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


 

Screenshot_2019-09-09-04-01-38-486_com.rhmsoft.edit.png

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

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


 

Screenshot_2019-09-09-04-01-38-486_com.rhmsoft.edit.png

Update your GG

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.