Source language: Translate to:

Window Size

General questions about NeoBook

Moderator: Neosoft Support

Window Size

Postby Dixan » Sat Apr 08, 2017 3:20 pm

Hi guys
Is there some way when execute a pub, the window
size of Our SO (XP, W7, W10) change to the app
size like when we play some games and when we
close the pub the SO window size go back to it's
previously size?
Dix@n
User avatar
Dixan
 
Posts: 51
Joined: Sat May 14, 2016 2:48 pm

Re: Window Size

Postby virger » Sat Apr 08, 2017 4:34 pm

Yes!
Find the special variables, windows size, pub size...in help
COSTA RICA
PURA VIDA
User avatar
virger
 
Posts: 518
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central

Re: Window Size

Postby Dixan » Wed Apr 12, 2017 7:01 am

Sorry, I didn't find it. Help. :cry:
Dix@n
User avatar
Dixan
 
Posts: 51
Joined: Sat May 14, 2016 2:48 pm

Re: Window Size

Postby virger » Wed Apr 12, 2017 8:19 am

Try this

[ScreenHeight] The height the entire Windows screen in pixels.
[ScreenWidth] The width of the entire Windows screen in pixels.
[PubLeft] The position of the upper left corner of the interior of the publication window (the client area)
[PubTop] The position of the upper left corner of the interior of the publication window (the client area) in screen coordinates. These values can be added to the coordinates of an object to determine its absolute position relative to the entire screen.
[PubWidth] The width of the interior of the publication window (the client area).
[PubHeight] The height of the interior of the publication window (the client area).
[WindowLeft] The screen Y location of the upper left of the publication window.
[WindowTop] The screen X location of the upper left of the publication window.
[WindowWidth] The width of the publication window including the border and scroll bars (if any).
[WindowHeight] The height of the publication window including the title bar, border and scroll bars (if any).

Enjoy
COSTA RICA
PURA VIDA
User avatar
virger
 
Posts: 518
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central

Re: Window Size

Postby Dixan » Wed Apr 12, 2017 9:01 am

I understand that but how The pub gets the SO window size,
How I change it to the pub window size and how SO window
gets the original size when I close the pub? :?:
Dix@n
User avatar
Dixan
 
Posts: 51
Joined: Sat May 14, 2016 2:48 pm

Re: Window Size

Postby Gaev » Wed Apr 12, 2017 11:09 am

Dixan:

Define SO in detail ... that is not a known acronym .. at least not in English.
User avatar
Gaev
 
Posts: 3728
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Re: Window Size

Postby Dixan » Wed Apr 12, 2017 1:24 pm

Sorry, SO is in spanish, I mean (OS) Window 7, XP, W10. Well I want when I execute my pub that is in 800x600 changes the OS resolución todo 800x600 and when I close the pub OS get back to its original resolutión.
Dix@n
User avatar
Dixan
 
Posts: 51
Joined: Sat May 14, 2016 2:48 pm

Re: Window Size

Postby Gaev » Wed Apr 12, 2017 5:15 pm

Dixan:

You might look into using one of these utility programs that you can call (Run) in the StartUp and ShutDown sections of your pub ...

- http://www.nirsoft.net/utils/nircmd.html ... e.g. nircmd.exe setdisplay 800 600 24
- http://tools.taubenkorb.at/change-screen-resolution/ ... e.g. ChangeScreenResolution.exe /w=800 /h=600

Also Display Changer II from http://12noon.com/?page_id=641 allows you to ...
- change the screen resolution
- run a specified program
- restore original screen resolution

.. avoiding the need to handle this inside your pub.

Good luck.
User avatar
Gaev
 
Posts: 3728
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Re: Window Size

Postby virger » Thu Apr 13, 2017 9:35 am

Maybe help you.
Code: Select all
NBW Publication Source File
(C)2016 NeoSoft Corp.
Title=CHANGE RESOLUTION DISPLAY
Author=GdoSan/April-2017
Language=US
NeoBookVer=5,80
ScreenColors=16777216
ScreenWidth=600
ScreenHeight=280
BkndColor=0
ScreenAutoSize=Yes
LinkColor=16711680
WindowStyle=0
WindowOrder=0
WindowPos=0
WindowProps=31
BiDiMode=0
UseUpdateTimer=Yes
ReturnTime=60
ShutdownAction=Run "ChangeScreenResolution.exe" "/w=[Wo] /h=[Ho] /f=[Fo] /b=[Bo]" "RunOnce+Wait+LoadComplete+Minimized+Hidden" "" ""
ShapeTransColor=536870912
SplashProps=3
CompileType=0
MediaType=0
FilesIncluded=1
FontsIncluded=2
CopyExternalFiles=No
SetupMedia=3
SetupInstDir=C:\MyProgram
SetupTitle=Setup
SetupColors=16711680|0|65535
VersionMajor=1
VersionMinor=0
VersionRelease=0
VersionBuild=0
ReqExLevel=1
CustomFontName=Arial
CustomFontSize=9
CustomFontStyle=0
CustomCharset=1
CacheSize=30
ExtractOp=132
L_OK=OK
L_CANCEL=Cancel
L_YES=Yes
L_NO=No
L_CLOSE=Close
L_ERRORTITLE=Error
L_FINDTITLE=Find
L_FINDPROMPT=Find &What
L_FINDFIRST=&Find First
L_FINDNEXT=Find &Next
L_FINDERROR=Search text not found.
L_PWORDTITLE=Password required
L_PWORDMSG=Before continuing, you must first|enter the correct password.
L_PWORDPROMPT=&Password:
L_PWORDERROR=That's not the right password!
L_MEDIAERROR=In order to play this type of file you must install|the appropriate multimedia hardware and/or|software.
L_INTERNETERROR=Unable to locate Internet Browser software.
L_ABORTFUNCTION=Do you want to cancel this function?
L_EXTRACTERROR=This file could not be extracted and cannot be played.
L_INSTDIRPROMPT=Please enter the drive and directory where you would like this program to be installed. To accept the default drive and directory, simply press Enter.
L_INSTFOLDERPROMPT=Do you wish to create a program folder?
L_INSTRUNPROMPT=Do you want to run
L_INSTDISKPROMPT=Please insert disk #
L_INSTDISKERROR=That's not the correct disk, try again.
L_INSTGENERROR=The installation has terminated.
L_INSTEXITPROMPT=Do you really want to cancel the installation?
L_INSTWINTITLE=Setup
L_INSTPROGTITLE=Extracting Files...
L_SENDEMAIL=Sending Mail...
L_MAILSERVER=Please enter the name of your outgoing email server:
L_COPY=Copy to Clipboard
L_SELECTALL=Select All
L_DONWLOADFILE=Downloading: %s
L_PLEASEWAIT=Please wait...
TrayMenuBegin
MenuName=TrayOpen
MenuText=Open
MenuState=3
MenuKey=0
MenuAction=SetVar "[WindowState]" "Normal"
MenuName=TrayExit
MenuText=Exit
MenuState=3
MenuKey=0
MenuAction=Exit "" ""
MenuEnd
MasterPage
NewPage=New Page
PageStyle=0
PageColor=16777215
PageGradient1=16711680
PageGradient2=255
PageGradientDir=1
WallpaperStyle=0
ObjectType=3
Name=BtChange
X=296
Y=213
W=120
H=50
Anchor=0
Text=Change¶[Wi]x[Hi]
Align=2
ImageStyle=0
ObjAction=Run "ChangeScreenResolution.exe" "/w=[Wi] /h=[Hi] /f=[Fr] /b=[Bi]" "RunOnce+Wait+LoadComplete+Minimized+Hidden" "" ""
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
Enabled=No
TabOrder=3
ObjectType=3
Name=BtRestore
X=437
Y=213
W=120
H=50
Anchor=0
Text=[Wo]x[Ho]¶Restore
Align=2
ImageStyle=0
ObjAction=Run "ChangeScreenResolution.exe" "/w=[Wo] /h=[Ho] /f=[Fo] /b=[Bo]" "RunOnce+Wait+LoadComplete+Minimized+Hidden" "" ""
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
Enabled=No
TabOrder=2
ObjectType=10
Name=LsDis
X=23
Y=93
W=229
H=182
Anchor=0
Text=[LsDis]
VarName=[vDis]
VarType=0
ObjAction=strparse "[vDis]" "[#32]" "[Dt]" "[x]"¶¶substr "[Dt3]" "1" "2" "[Fr]"¶substr "[Dt2]" "1" "2" "[Bi]"¶¶strparse "[Dt1]" "x" "[Dt]" "[x]"¶¶setvar "[Wi]" "[Dt1]"¶Setvar "[Hi]" "[Dt2]"¶¶EnableObject "BtChange"¶EnableObject "BtRestore"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12646632
FillPattern=0
Font=Arial
FontSize=14
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=5
ObjectType=3
Name=BtIni
X=0
Y=55
W=600
H=34
Anchor=1
Text=Init
Align=2
ImageStyle=0
ObjAction=FileWrite "Dis.Bat" "All" "ChangeScreenResolution.exe /m > dis.log"¶Run "Dis.Bat" "" "RunOnce+Wait+LoadComplete+Minimized+Hidden" "" ""¶FileRead "Dis.log" "All" "[Dt]"¶StrReplace "[Dt]" " default" "" "[Dt]" ""¶StrReplace "[Dt]" "@" "" "[Dt]" ""¶StrReplace "[Dt]" "[#32][#32]" "" "[Dt]" ""¶SetVar "[LsDis]" "[Dt]"¶ListBoxDeleteItem "LsDis" "1"¶¶filewrite "Dis.Bat" "All" "ChangeScreenResolution.exe /l > Dis.log"¶Run "Dis.Bat" "" "RunOnce+Wait+LoadComplete+Minimized+Hidden" "" ""¶¶FileLen "Dis.log" "[Ln]"¶Loop "1" "[ln]" "[C]"¶    FileRead "Dis.log" "[c]" "[Lin]"¶    SearchStr "Settings:" "[Lin]" "[Ps]" ""¶    If "[Ps]" ">" "0"¶        ExitLoop¶    EndIf¶EndLoop¶StrParse "[Lin]" ":" "[Dt]" "[x]"¶...Settings: 1280x800 32bit @60Hz default¶strparse "[Dt2]" "x" "[Dt]" "[x]"¶¶StrReplace "[Dt1]" "[#32]" "" "[Wo]" ""¶strparse "[Dt2]" "[#32]" "[Dt]" "[x]"¶¶setvar "[Ho]" "[Dt1]"¶substr "[Dt2]" "1" "2" "[Bo]"¶substr "[Dt3]" "2" "2" "[Fo]"¶¶DisableObject "BtIni"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=14
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=6
ObjectType=8
Name=Info2
X=296
Y=101
W=260
H=109
Anchor=0
Font=Arial
FontSize=14
FontStyle=0
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;\red0\green0\blue0;}\paperw12240\paperh15840\margl1440\margr1440\margt1440\margb1440\margh720\margf720{\*\pnseclvl1\pnucrm\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl2\pnucltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl3\pndec\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl4\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{)}}}¶{\*\pnseclvl5\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl6\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl7\pnlcrm\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl8\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl9\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶\endnhere\sectdefaultcl{\pard{\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs28\cf0 \tab \tab     Width:\tab [Wi] px\par¶\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs28\cf0 \tab \tab    Heigth:\tab [Hi] px\par¶\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs28\cf0 Color Depth:\tab [Bi] Bits\par¶\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs28\cf0   Frequency:\tab [Fr] Hz\par¶\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs28\cf0 }}¶}
HMargin=0
VMargin=0
LineColor=0
LineWidth=1
LineStyle=0
FillColor=13689080
FillPattern=0
TabOrder=7
ObjectType=8
Name=Info1
X=0
Y=0
W=600
H=55
Anchor=1
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;\red0\green0\blue0;}\paperw12240\paperh15840\margl1440\margr1440\margt1440\margb1440\margh720\margf720{\*\pnseclvl1\pnucrm\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl2\pnucltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl3\pndec\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl4\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{)}}}¶{\*\pnseclvl5\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl6\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl7\pnlcrm\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl8\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl9\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶\endnhere\sectdefaultcl{\pard{\qc\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs24\cf0\b\ul DOWNLOAD FIRST\par¶\qc\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs24\cf0\b\ul\i http://tools.taubenkorb.at/change-screen-resolution/}}¶}
HMargin=0
VMargin=0
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=1
TabOrder=8
ObjectType=3
Name=BtQuit
X=568
Y=94
W=26
H=175
Anchor=0
Text=Q¶U¶I¶T
Align=2
ImageStyle=0
ObjAction=exit "From Costa Rica" "PURA VIDA"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=12
FontStyle=3
FontCharset=1
TextColor=0
TabOrder=1


Enjoy
COSTA RICA
PURA VIDA
User avatar
virger
 
Posts: 518
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central


Return to General NeoBook Discussions

Who is online

Users browsing this forum: No registered users and 0 guests