Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Change Saveimage path

Author
Message
Hubert BAYRE
6
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 8th Dec 2017 17:35 Edited at: 9th Dec 2017 06:38
Hello !
Is there a method to really set the saveimage target folder on Windows ?


This code :


Save the file into the app windows folder : C:\Users\pc\AppData\Local\AGKApps\Borne_ehpad_agk\media\diaporamas\diapo5 !

i want save the file to /media/diaporamas/diapo5 ! (into the 'classic' media folder where i read all the other data without problem).

Could you help me ?
Hubert BAYRE
6
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 9th Dec 2017 18:51 Edited at: 9th Dec 2017 18:55
After some documentation exploration, Write folder and Read folder seems not to be at the same default location. No way to set that.
https://www.appgamekit.com/documentation/Reference/File/OpenToWrite.htm
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 9th Dec 2017 22:00
You can't save to the Read folder because it would normally be in the Program Files folder. Windows does not allow this.
AGK uses the standard default method of saving in AppData.

But you can actually save anywhere by preceding your filename with "raw:" For example, "raw:c:\MyFolder\MyImage.jpg"

You can also find My Documents - GetDocumentsPath()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Hubert BAYRE
6
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 12th Dec 2017 18:48
Many thanks.

Login to post a reply

Server time is: 2024-03-29 10:38:42
Your offset time is: 2024-03-29 10:38:42