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

Add sequence of keys to a function in a browse

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

    Add sequence of keys to a function in a browse

    Is it possible to add a sequence of keys to a function in a browse button?
    Sequence keys: windows key + shift + left arrow

    Function in Browse:

    FUNCTION ID_ButtonClick AS V ( event AS C, data AS C , row AS N )
    'DESCRIPTION: Fired when a button is clicked on a column.
    'Arguments: event - the name of the event that is fired
    ' data - the data in the column cell
    ' row - the row number in the browse
    'this.SetViewport_Row() sets the current row to the row with the button that was clicked.
    this.Set_Viewport_row(row)
    :Form.viewqueried("scoringframe2",eval("\"id=\"+s_quote(id)",this.Name(16)+".this"),"","Normal","","",.t.)


    ' Key sequence here = windows key + shift key + right arrow
    END FUNCTION

    In other words, after the form scoringfram2 opens, execute the key sequence windows key + shift key + right arrow

    By the way this sequence will post the present screen to a second monitor.

    #2
    Re: Add sequence of keys to a function in a browse

    In general the method of sending keys is

    SYS_SEND_KEYS()

    but I don't see the windows key as being available. Also I think that the sending would need to happen in some event of the form, not the button, possible as a condition of variable being set by the button.

    What does windows key + shift key + right arrow do for you?
    There can be only one.

    Comment


      #3
      Re: Add sequence of keys to a function in a browse

      Thanks Stan, unfirtunatelly after beeing able to execute those keys windows logo-shift-right and send the present screen to the second monitor, The fail to worknow.
      I am tryng to find why. untill them I have to wait.
      I will keep the forum posted in my advances.

      Comment


        #4
        Re: Add sequence of keys to a function in a browse

        OK, I found that in my laptop using windows key + shift key or + right arrow is not working and no solution to it.
        I did find that I can use special key Fn and combination with F3 I will be able to send my present screen to an external monitor.
        Using the same combination should worafterer, should return the screen back, but it does not.
        I found that by using the windows key + P + left arrow + enter will return the screen back to the laptop

        I tried to use sys_send_keys("{windows key}{P}{right}{enter}") does not work.
        So I tried combinations down to sys_send_keys("{windows key}") this al least should show me the windows start options, it does not.
        What is the right syntax to make this work?

        This sys_send_keys("{Fn}{F3}") combination does not work either I must be using the wrong syntax

        Comment


          #5
          Re: Add sequence of keys to a function in a browse

          I don't believe there is a correct syntax for sys_send_keys("{Fn}{F3}") because the documentation doesn't indicate that the Fn key can be used.
          There can be only one.

          Comment


            #6
            Re: Add sequence of keys to a function in a browse

            Thanks Stan, What about the Windows logo, also named meta key, start key, MOD4 or the flag key combinations?

            Comment


              #7
              Re: Add sequence of keys to a function in a browse

              Mike,

              Do you understand what the documentation is and how to find it or do you need me to look for you?

              Also check post #2 of this thread.
              There can be only one.

              Comment


                #8
                Re: Add sequence of keys to a function in a browse

                Don't know if this helps, but the keys are

                {LWINDOW} ' left window key
                {RWINDOW} ' right window key
                {+LWINDOW} ' shift-left window key
                {+RWINDOW} ' shift-right window key
                {%LWINDOW} ' alt-left window key
                {%RWINDOW} ' alt-right window key
                {^LWINDOW} ' ctrl-left window key
                {^RWINDOW} ' ctrl-right window key
                {RIGHT} ' right arrow key
                {+RIGHT} ' shift-right arrow key
                {%RIGHT} ' alt-right arrow key
                {^RIGHT} ' ctrl-right arrow key
                {SHIFT} ' shift key (either one)
                {CONTROL} ' control key (either one)
                {Alt} ' left alt key
                {Right alt} ' right alt key

                While the case of the key name shouldn't matter, there may be places where in some versions of A5 it may. The above are what Alpha senses when these keys are pressed. Combining them to get what you want may not work, or may require a specific sequence. My best guess would be

                {+LWINDOW}{+RIGHT}
                Last edited by csda1; 10-02-2012, 11:53 AM.
                Regards,

                Ira J. Perlow
                Computer Systems Design


                CSDA A5 Products
                New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
                CSDA Barcode Functions

                CSDA Code Utility
                CSDA Screen Capture


                Comment


                  #9
                  Re: Add sequence of keys to a function in a browse

                  Thanks Ira for the expansion. I would suggest you use the Send Feedback button in the inline documentation to see if Alpha will add this but even if they did it probably wouldn't help.
                  There can be only one.

                  Comment


                    #10
                    Re: Add sequence of keys to a function in a browse

                    Ira, thanks for the guide in the windows key. The object of this key combination is to return the screen from an external monitor, back to a laptop.
                    I did learn and confirm Stan info about the Fn key; This key never reaches Windows OS, is only in the bios of the PC. So that part I can leave with it, as it is only Fn and F3 in my laptop. Is the return that is has 3 or 4 keys + return .

                    sys_send_keys("{control}{esc}{P}{left}{return}") or sys_send_keys("{control}{esc}{P}{left}") or

                    sys_send_keys("{lwindows}{esc}{P}{left}") "control esc "= the windows key.

                    Above codes do not work.
                    I tried these basic one sys_send_keys("{control}{esc}") or sys_send_keys("{LWINDOWS}")

                    Neither works. Yet if you do press those keys you get the start screen. Please try and see if you have the same problem.

                    Is there anything wrong with my syntax?

                    Comment


                      #11
                      Re: Add sequence of keys to a function in a browse

                      Originally posted by MikeData View Post
                      Is there anything wrong with my syntax?
                      Keys sent by Alpha don't necessarily match up to keys received by Alpha's keyboard buffer.
                      Also {Control} is more like pressing and releasing the control key, followed by the next key specified. {^esc} is using the control key as a shift to the escape character, so is different. use one or more of the key modifiers of +, ^ and % as described for the "shift" type keys. It's also possible that the order of the key modifiers might matter in one or more versions of Alpha (if not all of them) for particular sequences.

                      Here are some working examples.
                      sys_send_keys("{^esc}") ' ctrl-esc => Start
                      sys_send_keys("{%esc}") ' alt-esc => Next window??
                      sys_send_keys("{%+esc}") ' shift-alt-esc => previous window??
                      sys_send_keys("{+^esc}") ' shift-ctrl-esc => task manager
                      sys_send_keys("{%tab}") ' alt-tab => next window??
                      Regards,

                      Ira J. Perlow
                      Computer Systems Design


                      CSDA A5 Products
                      New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
                      CSDA Barcode Functions

                      CSDA Code Utility
                      CSDA Screen Capture


                      Comment


                        #12
                        Re: Add sequence of keys to a function in a browse

                        Ira, we are getting closer, and I see that the combination sys_send_keys("{^esc}") does work but sys_send_keys("{LWINDOW}") , which is the same, does not work.

                        The combination in the interactive windows sys_send_keys("{^esc}{P}") does bring the start windows.
                        in the code of a button, what it does is open the window and puts the P in the search line.
                        The intent of ^esc and P is to open the Monitor display options.

                        Actually doing it manually the ^ esc does not allow to select the P.
                        Only the window Key . So if sys_send_keys can not recognize the LWINDOW or RWINDOW key, nothing further will work.
                        In the forum, this is the only thread that mentions those words.

                        In order to continue to the next option/combination, I need sys_send_keys("{Lwindow}") to work, hope you have more cards under.....

                        I am looking at function key remapping software like sharpkey. It is also limited

                        Comment

                        Working...
                        X