Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Detecting specific website open in web browser

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Detecting specific website open in web browser

    Our company desktop IS is built in A5 that we have named URSA. URSA interfaces with several company websites, with data exchanges through spreadsheet data and ODBC methods and with data on the Clipboard. One website is the crowd sourcing platform fieldnation.com. I can open any website with sys_open(url) and an instance of the website will open in the default browser. However, I'd like to have a method to detect whether there is a browser open to the website so I can defer from opening yet another instance of the website with sys_open(). Is there an A5 xbasic method that will detect an open instance of a website from a desktop application?
    Mike W
    __________________________
    "I rebel in at least small things to express to the world that I have not completely surrendered"

    #2
    The A5 function SYS_ID_ENUM() will list all current windows, Alpha 5 and others. However, it will only list the currently active tab of a browser. So, if the website of interest is in a tab without focus, it will not be listed.

    When I need to interact with the Windows environment, I use Autoit. Autoit is a scripting language that interacts with Windows elements and will produce stand-alone Windows executables that can be run from Alpha5.

    The following project shows how Autoit can activate selected browser tabs.

    https://www.autoitscript.com/forum/t...omment-1494768

    Look for the function BrowserTab()

    Comment


      #3
      I am NOT familiar with how things are done desktop side but my thoughts on this were to open the browser in a container of some sort then track that as being open or not. Also is it possible to use your own "browser" that doesn't have tabs available? Like can you simply open this webpage in an iframe or something? Again, a view in a container. Either that or an API to avoid the browser altogether...
      I think you can openIE in whats called kiosk mode as well see here
      https://superuser.com/questions/4597...bs-address-bar
      it may not be the best but it might help!
      NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

      Comment


        #4
        Mike, the only easy way can come up with is a table log showing what's open and to whom.
        Either that or closing all sites when a new one is opened.
        See our Hybrid Option here;
        https://hybridapps.example-software.com/


        We are the
        Department of Sunshine and Rainbows!

        Hope restored, faith renewed, spirits lifted!

        Comment


          #5
          Hello all,
          Thanks for your suggestions. I have been engaged between several homes handling the persistent snow fall over the past 10 days that is now well over 3 feet here in Michigan and traveling to several appointments the last several days. I have only a tiny snowblower that gave out on me this past weekend, so hand shoveling it has been. I am aware of the sys_id_enum(). This will enumerate an open xdialog by dialog title but the presence of an open browser only generically. So if I could effect Charles' idea of an xdialog with activeX control that opened a web page that would work. Then I could just use ui_modeless_dlg_exists(dlg_title) to detect it open. In the past I had several dialogs to access shipper websites (FedEx,UPS) for bulk tracking of shipments, and it worked very well. However, the "progress" of web sites in today's world has moved past the capabilities of that method resolving web sites and when the companies "progressed" and updated their web sites, that method stopped working and became obsolete. Sys_id_enum() will detect an open browser, but staff have browsers open always for access to lot's of things, and detecting the browse being open has no specificity. This situation also applies to why Ted's thoughts aren't a solution, because it would work if a website was accessed exclusively from URSA, but much of the time, the website is accessed through opening a browser directly, not through a call from URSA. And having tried to make it a "rule" that a website be exclusively accessed from URSA is the veritable "herding cats" scenerio. The web site access is for performing various manual entries, work order additions, some data reviews, and sometimes data downloads, so a variety of activities I believe to be beyond the scope of an API method. Therefore, the web site must be fully open and fully functional, so I'm not seeing the kiosk idea a solution, but I'll keep studying. So at this point, I will present to the user a branch-point, user-interface dialog that opens first, with a query to the user to answer if the website is already open or not, and branch off the user response. Not as automatic and elegant but will work absent an automatic background method.
          Mike W
          __________________________
          "I rebel in at least small things to express to the world that I have not completely surrendered"

          Comment


            #6
            I guess its really up to them at this point - do they WANT the functionality of the application being aware or not? If they do, then they must follow the plan - If it's important and there is only one way - then they will have to accept it.
            NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

            Comment


              #7
              I'd suggest an Ariens 30 inch wide with at least a 192CC engine. It's a beast.

              Open website I have no other suggestions...
              Al Buchholz
              Bookwood Systems, LTD
              Weekly QReportBuilder Webinars Thursday 1 pm CST

              Occam's Razor - KISS
              Normalize till it hurts - De-normalize till it works.
              Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
              When we triage a problem it is much easier to read sample systems than to read a mind.
              "Make it as simple as possible, but not simpler."
              Albert Einstein

              http://www.iadn.com/images/media/iadn_member.png

              Comment


                #8
                Automating a browser from Windows is not easy. There are tools for doing it, but a learning curve exists. If you want to try, here are some sites to get you started. I did use BlueDuck SDA about 10 years ago.

                https://blueducksda.sourceforge.net/
                https://www.browserstack.com/guide/r...firefox-driver

                Comment


                  #9
                  Good morning,
                  Thanks for all your input. Just getting back from holiday in the mountains.
                  AL - I would love to have just what you suggest, and if I had anywhere to store such a beast, I would have one in a heartbeat. But I have no space, and what I have room to store is a little 16" Toro Power Curve, so that is what I have to go into battle.
                  Charles, Ted - I've decided to use a blended approach of those suggested, which is to have a defined, recommended work pattern for users, and to have the application (URSA) register in a table that the web site is active when opened from URSA, since the table already existing in URSA that facilitates table locking within other application components. This will deliver a defined work pattern with the most efficient process, and the capabilities to have a check to see if the web site has already been opened from URSA, and if true, present a message to the user for them to proceed through the already opened instance. And if they choose to have multiple instances of the web site being open from independently manual openings, then they have their personal desktop cluttered with a bunch of open windows, and so be it. The BlueDuck and Firefox SDA approach, while interesting, and potentially usable for other future circumstances, it is just too intensive and time consuming at this time to solve this individual functionality.
                  Mike W
                  __________________________
                  "I rebel in at least small things to express to the world that I have not completely surrendered"

                  Comment


                    #10
                    Mike

                    Thanks for using AL instead of Al.

                    San serif fonts usually do a lousy job of a capital i and a lower case l.

                    This AI stuff looks like my name Al .....

                    Another font does it much better - AI vs Al

                    as long as your eye sight is pretty good.

                    With lake effect snow in Grand Rapids, I'd get the machine...
                    Heck I need it on the other side of the lake..
                    Al Buchholz
                    Bookwood Systems, LTD
                    Weekly QReportBuilder Webinars Thursday 1 pm CST

                    Occam's Razor - KISS
                    Normalize till it hurts - De-normalize till it works.
                    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                    When we triage a problem it is much easier to read sample systems than to read a mind.
                    "Make it as simple as possible, but not simpler."
                    Albert Einstein

                    http://www.iadn.com/images/media/iadn_member.png

                    Comment


                      #11
                      You mean you are a real person?
                      See our Hybrid Option here;
                      https://hybridapps.example-software.com/


                      We are the
                      Department of Sunshine and Rainbows!

                      Hope restored, faith renewed, spirits lifted!

                      Comment


                        #12
                        Originally posted by Ted Giles View Post
                        You mean you are a real person?
                        No. I was the first AI....
                        Al Buchholz
                        Bookwood Systems, LTD
                        Weekly QReportBuilder Webinars Thursday 1 pm CST

                        Occam's Razor - KISS
                        Normalize till it hurts - De-normalize till it works.
                        Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                        When we triage a problem it is much easier to read sample systems than to read a mind.
                        "Make it as simple as possible, but not simpler."
                        Albert Einstein

                        http://www.iadn.com/images/media/iadn_member.png

                        Comment


                          #13
                          One and only! ( except all the clones )
                          See our Hybrid Option here;
                          https://hybridapps.example-software.com/


                          We are the
                          Department of Sunshine and Rainbows!

                          Hope restored, faith renewed, spirits lifted!

                          Comment

                          Working...
                          X