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.

AppGameKit Classic Chat / Is it possible to configure the 'SetUp' file from within your code?

Author
Message
Rudders
12
Years of Service
User Offline
Joined: 20th Jan 2012
Location: Oxfordshire UK
Posted: 11th Sep 2014 13:43
Hi,

I know this only applies to Windows, but I am trying to set my Windows display using SetVirtualResolution but of course it is using the Setup Width and Height.

Is it possible to configure the Window Width and Height from code?

Cheers
Funnell7
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 11th Sep 2014 14:05 Edited at: 11th Sep 2014 14:07
Try these two...

Rudders
12
Years of Service
User Offline
Joined: 20th Jan 2012
Location: Oxfordshire UK
Posted: 11th Sep 2014 15:05
HI Funnell7

Sorry! but 'SetScreenResolution' is not recognised as a Command ????
Rudders
12
Years of Service
User Offline
Joined: 20th Jan 2012
Location: Oxfordshire UK
Posted: 11th Sep 2014 15:07
I am reading a file and assigning two integer variables to the Screen Width and Screen Height, therefore code is:

SetScreenResolution(dispW, dispH, 1)
SetVirtualResolution(dispW, dispH)

But the first line is not recognised as a command?
Funnell7
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 11th Sep 2014 16:04
I don't actually use this command myself, just remember seeing it somewhere... Maybe it is a new command in V2. I'm afraid I'm not currently using V2 so cannot confirm, but am sure someone will jump in and give you a definitive answer soon...
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 11th Sep 2014 17:41
I think it's a v2 command.

Login to post a reply

Server time is: 2024-11-25 09:33:32
Your offset time is: 2024-11-25 09:33:32