Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Any action which opens another game?

behroz-khan
Registered User
Quote
2017-06-19 09:13:01

I need an action which will open another game that is exported from Copper cube! Like If someone clicks on a 2D overlay item then action is set that open a game! Is there any action?


just_in_case
Moderator
Quote
2017-06-19 10:14:16

Yes , you can do this using scripting.... And now there is an option to dynamically load a ccb file... In the new coppercube version.. 5.7...


behroz-khan
Registered User
Quote
2017-06-19 11:18:11

Thanks! Yes, I will try!


behroz-khan
Registered User
Quote
2017-06-19 11:23:13

Did you mean it will open an exported game? If no, I mean if someone click on a 2D overlay item in my exported game then the action will be open another exported game and close the previous game! And how I can do this using scripting send me the code!


behroz-khan
Registered User
Quote
2017-06-23 07:27:48

You don't answered me but, I will do this using scripting!


just_in_case
Moderator
Quote
2017-06-25 12:43:54

Sorry for being not replying... You should try to understand thay people can be lazy sometimes.....

And no i wasn't talking abouy the exe.. i was talking about the scene itslef.... Ir may be you can try this script.... But am not sure if this wilk work for exe or not...


 function RunFile() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("c:/windows/system32/notepad.exe", 1, false);
}


Hope it works for u... Never tried it... It always works with html .... For html you have to save it as . hta

Good luck!!


Zoo
Guest
Quote
2017-06-26 20:04:03

Hi there...

It works for me, I wrote an article about it on http://marshtownmadness.com , have a look


just_in_case
Moderator
Quote
2017-06-26 21:35:52

@zoo plzz provide the link to that specific topic on your website...
When you are talking about a particualr thing... Don't just simply provide link to the homepage of ur site....

And if my method works for u then i will be glad if u give credits to me.. in your article or post... &128522;&128522;


behroz-khan
Registered User
Quote
2017-06-27 14:58:15

Never mind about laziness, I also reply late sometimes!

Now by the way, Will it work for exe?
ccbSwitchToEXEFile("otherfile.exe");



behroz-khan
Registered User
Quote
2017-06-27 15:01:41

You wrote me the script so I didn't understand the script!
The question is: Where I have to write the file name or location?


just_in_case
Moderator
Quote
2017-06-27 21:12:52

I dont think there is anything related with CcbSwitchToExe....

And you have to write the filename by changing the location
c:/windows/system32/notepad.exe to the exe you wanted to be open.....


behroz-khan
Registered User
Quote
2017-06-29 12:08:10

Are you sure it will work?


pmax
Registered User
Quote
2017-06-30 10:18:10

Just go to the Copercube documentation.

system (commandline)

Executes the given command line. Can be used to run commands or launch programs.

Examples:

System ("type C: \\ Windows \\ WindowsUpdate.log");

On windows, this will print the contents of the file WindowsUpdate.log (if available) to the screen.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact