DelphiFan Magazine

Top Menu

Main Menu

  • DELPHI
  • CODE SAMPLES
  • FIREMONKEY
  • DATABASE
  • RELEASES
  • VIDEOS
  • REVIEW
  • TECH NEWS

logo

DelphiFan Magazine

  • DELPHI
  • CODE SAMPLES
  • FIREMONKEY
  • DATABASE
  • RELEASES
  • VIDEOS
  • REVIEW
  • TECH NEWS
  • How to add a server application written in UNIGUI to startup?

  • UniGUI Expiry Link Anonymizer

  • UniGUI Add CAPTCHA to the WEB project

  • UniGui. Unique hybrid of Delphi and JS

  • How to transform a blob field into string lines (varchar) in SQL Firebird?

CODE SAMPLESDELPHI
Home›CODE SAMPLES›Two ways to improve the efficiency of unigui development

Two ways to improve the efficiency of unigui development

By admin
October 13, 2020
592
0
Share:
  1. Exit the running program when compiling.

When doing unigui development, every time you compile and run, the unigui application will run in the background. You must manually exit the application in the taskbar every time you recompile. This is very troublesome. You can add kill in the project compilation parameters. Process commands, so that the old process will be automatically killed every time you recompile.

The command parameters are as follows: taskkill /f /im $(OUTPUTFILENAME) 2>1 || exit /B 0

  1. Every time the application is run, the browser is automatically invoked to open the application.

It’s still a bit troublesome to manually open the browser every time you run the application, enter the address and each port, and add the automatic startup method to the ServerModule, and you can open the browser and open the application every time you run it.

procedure ExploreWeb(page:PChar);
var Returnvalue: Integer;
begin
Returnvalue := ShellExecute(0,’open’,page, nil, nil, 1);
if Returnvalue <= 32 then begin case Returnvalue of 0: ShowMessage('Error, insufficient memory!'); 2: ShowMessage('Error, file name is wrong!'); 3: ShowMessage('Error, the path name is wrong!'); 11: ShowMessage('Error, the EXE file is invalid!'); else ShowMessage(PChar('Error code:'+IntToStr(Returnvalue)+', please check the error.')); end; end;

Here is the calling method

procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject);
begin
ExploreWeb(‘http://127.0.0.1:8080’);
end;

Tagsdelphiuniguiunigui developmentunigui settings
Previous Article

Unigui quickly uses the css style of ...

Next Article

Add a column of record number to ...

0
Shares
  • 0
  • +
  • 0
  • 0
  • 0
  • 0

admin

Related articles More from author

  • CODE SAMPLESDELPHI

    Work with External program or Files in Delphi

    November 26, 2020
    By admin
  • CODE SAMPLESDELPHI

    How to put a DateTimePicker in the DBGrid?

    January 3, 2021
    By admin
  • CODE SAMPLESDELPHI

    How to add a server application written in UNIGUI to startup?

    January 27, 2021
    By admin
  • CODE SAMPLESDELPHI

    How to set up Unigui to run on Linux Operating System

    October 11, 2020
    By admin
  • DELPHIRELEASES

    Devart UniDAC 8.3.2 Release

    September 15, 2020
    By admin
  • CODE SAMPLESDELPHIFIREMONKEY

    Get device ID on Android from Delphi

    December 4, 2020
    By admin

Leave a reply Cancel reply

You may interested

  • CODE SAMPLESDELPHI

    Socket error codes and possible problems

  • CODE SAMPLESDELPHI

    About memory data and JSON

  • CODE SAMPLESDELPHI

    Two Ways to Improve the Development Efficiency of Unigui in Delphi

  • LATEST REVIEWS

  • TOP REVIEWS

Timeline

  • January 27, 2021

    How to add a server application written in UNIGUI to startup?

  • January 27, 2021

    UniGUI Expiry Link Anonymizer

  • January 26, 2021

    UniGUI Add CAPTCHA to the WEB project

  • January 26, 2021

    UniGui. Unique hybrid of Delphi and JS

  • January 13, 2021

    How to transform a blob field into string lines (varchar) in SQL Firebird?

Latest Comments

Find us on Facebook

Follow Us on Instagram

logo

Our website, law, laws, copyright and aims to be respectful of individual rights. Our site, as defined in the law of 5651 serves as a provider of space. According to the law, contrary to the law of site management has no obligation to monitor content. Therefore, our site has adopted the principle of fit and remove. Works are subject to copyright laws and is shared in a manner that violated their legal rights, or professional associations, rights holders who, adsdelphi@gmail.com I can reach us at e-mail address. Complaints considered to be infringing on the examination of the content will be removed from our site.

About us

  • 660 Pennsylvania Avenue Southeast #100 Washington, DC 20003
  • 0123456789
  • adsdelphi@gmail.com
  • Recent

  • Popular

  • Comments

  • How to add a server application written in UNIGUI to startup?

    By admin
    January 27, 2021
  • UniGUI Expiry Link Anonymizer

    By admin
    January 27, 2021
  • UniGUI Add CAPTCHA to the WEB project

    By admin
    January 26, 2021
  • UniGui. Unique hybrid of Delphi and JS

    By admin
    January 26, 2021
  • How to add a server application written in UNIGUI to startup?

    By admin
    January 27, 2021
  • Amazing Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

    By admin
    August 13, 2020
  • Critical Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

    By admin
    September 4, 2020
  • Setting up the IDE for your first Android Application in Delphi

    By admin
    September 7, 2020

Follow us

Find us on Facebook

© Copyright Delphifan Forum. All rights reserved.