G.D.G. Software Forum

Support and community forum dedicated to our products:
HTML Executable - ExeOutput for PHP - Paquet Builder - XLS Padlock - GConvert - GSplit - AniTuner - CHM To Exe - EPub to App
It is currently Wed May 22, 2013 8:19 pm

All times are UTC + 1 hour


Forum rules


All topics in this forum are read-only because they contain solutions to common problems related to ExeOutput for PHP. You can't post new topics in this forum directly: please use the General Discussion or Bugs/Problems forum.



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
PostPosted: Mon Nov 28, 2011 1:12 am 
Offline
User avatar

Joined: Mon Apr 18, 2011 9:41 pm
Posts: 22
Well I just got back to using EXEOutput again...

Quick minimize question... this has nothing to do with using tray icon or not... What I need is the main window to minimize on a <form click>

Sample HTML code:
Code:
<form action="searching.php" method="post">
<input type="submit" name="submit" value="SEARCH">
</form>


When end user clicks SEARCH I need the window to also minimize. That's it...

I didn't see any exo_runhescriptcom calls to the minimize command...

Thanks in advance...
SysAdm


Last edited by SysAdm on Tue Nov 29, 2011 5:45 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Nov 28, 2011 9:06 pm 
Offline
Technical Support
User avatar

Joined: Wed Nov 06, 2002 9:52 am
Posts: 3438
Location: www.gdgsoft.com
Do you mean you didn't see an HEScript script to minimize the main window?


Top
 Profile  
 
PostPosted: Tue Nov 29, 2011 12:52 am 
Offline
User avatar

Joined: Mon Apr 18, 2011 9:41 pm
Posts: 22
gdgsupport wrote:
Do you mean you didn't see an HEScript script to minimize the main window?


That is correct...

I know I can call the function using PHP, but I need the actual function...

Example:
Quote:
Using PHP

ExeOutput provides you with two built-in php functions to call HEScript functions:

exo_runhescriptcom ( string $script )

$script is the reference to the script's name and function to call.

string exo_return_hescriptcom ( string $script , string $defaultvalue )

$script is the reference to the script's name and function to call.

$defaultvalue is the value returned if the script function is not found.

Syntax for $script: script name + dot + procedure/function name, i.e. [scriptname].[functionprocedurename]

Example:

<?php
echo exo_return_hescriptcom("UserMain.ReturnDate", "Error");
?>



Thanks in advance...
SysAdm


Top
 Profile  
 
PostPosted: Tue Nov 29, 2011 2:51 am 
Offline
User avatar

Joined: Mon Apr 18, 2011 9:41 pm
Posts: 22
I kind of have it working!!!
I put this in the UserMain file:

Code:
function GetActiveWindow(): LongWord; external "GetActiveWindow@user32.dll stdcall";
function ShowWindow(hWnd : LongWord; nCmdShow : LongWord): LongWord; external "ShowWindow@user32.dll stdcall";

Const
SW_MINIMIZE = 6;

procedure Minimize;
var hWnd : Longint;
begin
hWnd := GetActiveWindow();
ShowWindow(hWnd, SW_MINIMIZE);
end;


Then I call in the PHP like this:
Code:
exo_runhescriptcom ("UserMain.Minimize");


The only thing is that is leaves a "ghost" of that window's title bar directly above the End User's Task Bar... Is there another way to call the minimize function without using the native Windows call: "GetActiveWindow@user32.dll stdcall";?

EDIT: Was able to get rid of the "ghosting" by using: SW_FORCEMINIMIZE = 11; in the function


In case anybody is reading this for future reference:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633548%28v=vs.85%29.aspx

Thanks in advance...
SysAdm


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC + 1 hour


Related topics
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. resize main window with JavaScript [SOLVED]

sourdough

2

246

Sun Dec 23, 2012 5:22 pm

sourdough View the latest post

There are no new unread posts for this topic. SOLVED : mp3 not loading

Bikkies

1

937

Wed Apr 14, 2010 11:18 pm

Bikkies View the latest post

There are no new unread posts for this topic. Downloading DWG files (SOLVED)

Rickm

4

437

Tue Nov 08, 2011 8:11 pm

Rickm View the latest post

There are no new unread posts for this topic. How to disable F5 refresh control key (SOLVED)

edfirefox

2

713

Fri Mar 09, 2012 9:52 am

gdgsupport View the latest post

There are no new unread posts for this topic. View Source Option (SOLVED)

orionmetrics

1

471

Sat Mar 17, 2012 12:18 pm

gdgsupport View the latest post

 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Copyright G.D.G. Software © 2010-2013 - Powered by phpBB® Forum Software © phpBB Group

phpBB SEO