sinusiks / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

Expose useful Windows API functions to Javascript #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See this topic:
https://groups.google.com/d/topic/phpdesktop/_DWd-AmYhWQ/discussion

Original issue reported on code.google.com by czarek.t...@gmail.com on 26 May 2013 at 7:34

GoogleCodeExporter commented 9 years ago
Some useful windows API functions that should make it into the example:

SHBrowseForFolder(): 
http://msdn.microsoft.com/en-us/library/windows/desktop/bb762115(v=vs.85).aspx

GetOpenFileName(): 
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646927(v=vs.85).aspx

GetSaveFileName(): 
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646928(v=vs.85).aspx

Open and save as dialog boxes: 
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646960(v=vs.85).aspx

Original comment by czarek.t...@gmail.com on 30 May 2013 at 10:33

GoogleCodeExporter commented 9 years ago
The functions in comment #1 should definitely be exposed to javascript. There 
are also some other that we might want:

CloseWindow()
ExitApplication()

The window functions below will be required for Issue 6 "Frameless browser, 
minimize/maximize using javascript".

ShowWindow()
HideWindow()
MinimizeWindow()
MaximizeWindow()
RestoreWindow()
MoveWindow()
ResizeWindow()

SetFullscreen() - see Issue 38 "Javascript API to set fullscreen".

ShellExecute()? - equivalent of php system/exec functions. But this one would 
be exposed to javascript?

Original comment by czarek.t...@gmail.com on 23 Jan 2014 at 3:39

GoogleCodeExporter commented 9 years ago
Exposing the windows API functions to PHP would be in a form of a PHP example, 
that shows how to use the w32api experimental extension 
(http://php.net/manual/en/book.w32api.php) or something similar.

Original comment by czarek.t...@gmail.com on 23 Jan 2014 at 3:59

GoogleCodeExporter commented 9 years ago
The api should accessible in javascript through the "phpdesktop" object:

  phpdesktop.SetFullscreen()

Original comment by czarek.t...@gmail.com on 23 Jan 2014 at 4:50

GoogleCodeExporter commented 9 years ago
Regarding functions to show a dialog to open/save a file, or browser for 
folder, see what options to these functions we could expose:
http://www.zzee.com/phpexe/help.html#zzee_link_18_1215035079
http://www.zzee.com/phpexe/help.html#zzee_link_19_1215035079

Original comment by czarek.t...@gmail.com on 24 Jan 2014 at 12:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Some functions have already been exposed, see the JavascriptApi wiki page.

Original comment by czarek.t...@gmail.com on 26 Jan 2014 at 9:58

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 21 Oct 2014 at 10:37

GoogleCodeExporter commented 9 years ago
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/31

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 3:18