Jump to content

help with execute code


~!#abdullah

Recommended Posts

Posted

I want action button in window Freeroam opens another Script

I have tested function hedit () 
executeCommandHandler ("hedit") 
End 

And worked

But in other scripts does not work: /

I want a way to script another

Posted (edited)

if it works with one resource should to work with others but if you use freeroam you should to but the execute to close the script under " function toggleFRWindow() " else you should to close the function with "end" not "End" :|

for example :

  
function hedit() 
executeCommandHandler("hedit") 
end 

else to close the script should be like that :

function toggleFRWindow() 
        if isWindowOpen(wndMain) then 
                showCursor(false) 
                hideAllWindows() 
                colorPicker.closeSelect()  
               executeCommandHandler("close-hedit")   
        else 
                showCursor(true) 
                showAllWindows() 
        end 
end 

else you should to add a functiong to close the script what you want to add it to the freeroam using : SetVisible.

Edited by Guest

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...