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

xbasic code help

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

    #16
    Re: xbasic code help

    Here is what i am working on.

    The script gos in the Pro Design System toolbar in the Code edit view on the one button as.
    Button Action set it to Run Xbasic

    I only have one button on it right now till i get this working.

    When you click on the button it should open up Photo shop and create a blank 4x6 window for you in PS and thats it.

    ----------------------------

    If you make a file set up like this it works
    sys_shell("C:\testA\testB\Drops\4x6.exe C:\testA\testB\Drops\Trigger.jpg",1)

    But when you have any words that have a space it will not work like.... Program Files
    Last edited by Digitaled; 01-24-2007, 02:47 AM.

    Comment


      #17
      Re: xbasic code help

      Ed, unfortunately, I don't have Photoshop installed on this machine. can you post the script you're having trouble with? Mabye there is something else going on???

      Comment


        #18
        Re: xbasic code help

        Jeff, Ed,

        As spaces indicate where an arguement starts shouldn't the space between Program Files be considered??? Not entirely sure of how to do this...maybe add single quotes like-- 'Program Files' . Also, I wouldn't think you would add the single quotes completely around the arguement but just around what name(s) have spaces??

        Mike
        Mike
        __________________________________________
        It is only when we forget all our learning that we begin to know.
        It's not what you look at that matters, it's what you see.
        Henry David Thoreau
        __________________________________________



        Comment


          #19
          Re: xbasic code help

          Originally posted by MikeC View Post
          Jeff, Ed,

          As spaces indicate where an arguement starts shouldn't the space between Program Files be considered??? Not entirely sure of how to do this...maybe add single quotes like-- 'Program Files' . Also, I wouldn't think you would add the single quotes completely around the arguement but just around what name(s) have spaces??

          Mike
          If you place single quotes around the whole path alpha should ignore the spaces and consider the whole path as one string. It should work either way.

          This is strange... When I was testing some solutions earlier I tried this:

          Code:
          sys_shell("C:\Documents and Settings\All Users\Desktop\notepad.exe C:\Documents and Settings\All Users\Desktop\Notepad Files\payments.txt")
          It didn't work until I put single quotes around the argument. I just tried it again without the quotes and it worked fine?!? I must have done something, but I'm not sure what...

          Comment


            #20
            Re: xbasic code help

            Jeff,

            Could be that the spaces are sometimes ignored and sometimes not...just like in naming fields and such--sometimes spaces pose a problem and sometimes not. Just a possibility I think.

            Maybe Ed should simply add the single quotes around both the arguement path and the initial path just to see what happens in his case. Not much to lose...

            Mike
            Mike
            __________________________________________
            It is only when we forget all our learning that we begin to know.
            It's not what you look at that matters, it's what you see.
            Henry David Thoreau
            __________________________________________



            Comment


              #21
              Re: xbasic code help

              Here is the last one that i tryed and did not work.

              Are the quotes in the right place?
              What else can i try

              sys_shell("C:\Program Files\HollywoodPM\Drops\4x6.exe 'C:\Program Files\HollywoodPM\Drops\Trigger.jpg'",1)

              Comment


                #22
                Re: xbasic code help

                Ed, That statement looks fine... I don't have photoshop on my computer so I can't test further, but I don't think your problem is in Alpha. What happens if you run 4x6.exe from the command prompt with c:\...\trigger.jpg as the argument?

                Comment


                  #23
                  Re: xbasic code help

                  Originally posted by MikeC View Post
                  Jeff,

                  Could be that the spaces are sometimes ignored and sometimes not...just like in naming fields and such--sometimes spaces pose a problem and sometimes not. Just a possibility I think.

                  Maybe Ed should simply add the single quotes around both the arguement path and the initial path just to see what happens in his case. Not much to lose...

                  Mike

                  Mike, that's true, it never hurts to test things out. I know for sure that the two suggestions I made do work, I'm just not sure why they aren't working for Ed. I suspect it has something to do with Photoshop, but what do I know? :)

                  Comment


                    #24
                    Re: xbasic code help

                    Originally posted by Jeff@Listbrokers View Post
                    Ed, That statement looks fine... I don't have photoshop on my computer so I can't test further, but I don't think your problem is in Alpha. What happens if you run 4x6.exe from the command prompt with c:\...\trigger.jpg as the argument?
                    I am not sure how to do that??

                    It dose work when i have no words with space in them.

                    Comment


                      #25
                      Re: xbasic code help

                      Ed,

                      Have you tried using the single quotes around the initial path also? In addition to having them around the arguement that is. Try it please just to eliminate that possibility.

                      Mike
                      Mike
                      __________________________________________
                      It is only when we forget all our learning that we begin to know.
                      It's not what you look at that matters, it's what you see.
                      Henry David Thoreau
                      __________________________________________



                      Comment


                        #26
                        Re: xbasic code help

                        Originally posted by Digitaled View Post
                        I am not sure how to do that??

                        It dose work when i have no words with space in them.
                        I'm thinking that when you execute 4x6.exe it invokes photoshop... I'm thinking there might be a problem with the photoshop interaction.

                        To run 4x6.exe from the command prompt do the following:

                        Are you familiar with DOS?

                        GOTO start->run, type cmd, press enter
                        when the command prompt opens you'll have to navigate to the directory that has the 4x6.exe file in it.
                        To do that you would type something like:

                        cd \program files\Hollywood Photo Magic\Drops\

                        once you are in the directory type:

                        4x6.exe c:\program files\Hollywood Photo Magic\Drops\trigger.jpg

                        see if that works...

                        Comment


                          #27
                          Re: xbasic code help

                          I am quite familiar with a lot of alpha's functions. This one is the goofiest function of all! one, unlike any other and for reasons unknown, uses a space as a parameter separator as opposed to a comma or a more meaningful separator.

                          None of what you have tried will work, simply because the moment alpha comes across the space, it uses anything before the space as one file name (which is not) and everything after the space as the second file name.
                          The way it is written, alpha will think you are referring to a file named:
                          C:\Program
                          and another file named:
                          Files\Hollywood Photo Magic\Drops\4x6.exe C:\Program Files\Hollywood Photo Magic\Drops\Trigger.jpg
                          neither of which is true.

                          Actually and more accurately, alpha will think you are referring to a bunch of files each time it comes across another space:
                          C:\Program
                          Files\Hollywood
                          Photo
                          Magic\Drops\4x6.exe
                          and so on..

                          So, how do you get around that?
                          1-you cannot use any file name that has a space in it
                          2-Submit a bug report

                          What do you do in the meantime?
                          Copy those files to another that has no spaces, for example:
                          copy: C:\Program Files\Hollywood Photo Magic\Drops\4x6.exe
                          to: c:\4x6.exe

                          and copy:
                          C:\Program Files\Hollywood Photo Magic\Drops\Trigger.jpg
                          to: C:\Trigger.jpg

                          then use:
                          sys_shell("c:\4x6.exe C:\Trigger.jpg",1)

                          or (I don't know if this will work, but it's worth a try):
                          dim x as c="C:\Program Files\Hollywood Photo Magic\Drops\4x6.exe"
                          dim y as c="C:\Program Files\Hollywood Photo Magic\Drops\Trigger.jpg"
                          sys_shell(x y,1)

                          If it does not work, try to dim x & y as p instead of c
                          Last edited by G Gabriel; 01-24-2007, 04:36 AM.

                          Comment


                            #28
                            Re: xbasic code help

                            Gabriel that is very interesting.

                            So Alpha is the one that will not let this work.

                            I can make it work if i only use folder names with no space in the words.

                            The problem is (How can i get around this)

                            At install when i sell this program to someone to use how can i make the 4x6.exe and Trigger.jpg go to a file like C:\ HPMDrops ?

                            It this point i do not know much about making a install set up.

                            Can i set up the program to not install in the Program Files Folder?
                            And have it install in it's own folder on the C drive.

                            Like
                            C:\HollywoodPM\

                            Then the Drops would be in
                            C:\HollywoodPM\Drops
                            so then this will work

                            sys_shell("C:\HollywoodPM\Drops\4x6.exe C:\HollywoodPM\Drops\Trigger.jpg",1)

                            Can i set up the install to do this if so this will fix the problem well one of them i sill need the toolbar to stay on top of all other programs running.

                            Comment


                              #29
                              Re: xbasic code help

                              From the interactive window:

                              ------------------------------------------------------------
                              dim prog as c
                              dim doc as c
                              dim progdoc as c

                              prog="C:\Program Files\Adobe\Acrobat 7.0\Reader\Acrord32.exe"
                              doc="C:\Documents and Settings\Doug\My Documents\Doug\Bulletin.pdf"
                              progdoc=prog+" "+doc
                              ?progdoc
                              = "C:\Program Files\Adobe\Acrobat 7.0\Reader\Acrord32.exe C:\Documents and Settings\Doug\My Documents\Doug\Bulletin.pdf"

                              sys_shell(progdoc)
                              sys_shell("C:\Program Files\Adobe\Acrobat 7.0\Reader\Acrord32.exe C:\Documents and Settings\Doug\My Documents\Doug\Bulletin.pdf")
                              -----------------------------------------------------------

                              Both of the two bottom sys_shell's worked!

                              So Ed, I would try a test on your machine using a known, Acrobat Reader 7.0, which you probably have on your machine. If you don't, you can download it from Adobe. Of course adjust the paths to whatever you might have on your machine. The path to the program will probably be the same but you will have to point the second to a pdf you have. I don't know what 4x6.exe is but I think that it may not be dealing with paths that have a space.

                              HTH
                              Doug

                              Comment


                                #30
                                Re: xbasic code help

                                Ed:
                                Have you tried this:
                                or (I don't know if this will work, but it's worth a try):
                                dim x as c="C:\Program Files\Hollywood Photo Magic\Drops\4x6.exe"
                                dim y as c="C:\Program Files\Hollywood Photo Magic\Drops\Trigger.jpg"
                                sys_shell(x y,1)
                                Doug tried it and it worked. Give it a try.

                                Comment

                                Working...
                                X