Forum Replies Created

  • Alex Clay

    Member
    August 9, 2024 at 3:41 am in reply to: Disabling All Message Boxes for Automation process

    In our framework we use custom windows for messaging. This allows us to disable user interaction during automation.

    As far as I know there isn’t a system-wide way to disable the built-in dialog messages.

    If you don’t want to build your own you could factor the messaging to common code and wrap in conditional checks to bypass during automation.

    Hope that helps!

    Alex

  • Alex Clay

    Member
    August 30, 2020 at 3:54 pm in reply to: The printer has changed.

    Hi Brian,
    Try setting $root.$prefs.$printernotify to kPrtNoteNoMsg. See the docs here: https://www.omnis.net/developers/resources/onlinedocs/index.jsp?detail=NotationRef/$root/prefs.html
    Alex

  • Alex Clay

    Member
    June 28, 2019 at 2:33 pm in reply to: SqLite multiple user

    Great! I think you’ll enjoy working in PostgreSQL.

  • Alex Clay

    Member
    June 27, 2019 at 4:26 pm in reply to: SqLite multiple user

    Hi,
    Per the SQLite docs on WAL mode, you need to set:

    PRAGMA journal_mode=WAL;

    PRAGMA looks to be a command you issue via SQL: https://www.sqlite.org/pragma.html
    So try this:

    1. Connect to SQLLite in Omnis
    2. Issue PRAGMA journal_mode=WAL; as an execute in your database

    Alex

  • Alex Clay

    Member
    March 18, 2019 at 8:19 pm in reply to: EurOmnis 2019 Call for Papers

    Hi Claus,
    I apologize for the outage. The team who manages the registration app is aware of the problem and is working on it. The latest information I heard is that they expect it to be available tomorrow afternoon (UTC-0).
    Please give the registration a try later tomorrow and let me know if you are still unable to connect.
    Thank you in advance for registering!
    Alex

  • Alex Clay

    Member
    September 28, 2018 at 1:02 pm in reply to: Using Omnis with adaptive software

    Hi Ted,
    Omnis Software has touted WCAG compatibility as an upcoming feature. Their goal, as was shared at a conference in Boston in March, is to ensure Omnis fully compatible with screen readers and current and upcoming laws for regarding accessibility.
    Studio 9 includes these features and is in beta now, with a release expected later this year. If your potential employer has a membership with the Omnis developer partner program (ODPP) then you could sign up for the beta and give it a try.
    I don’t know how much the IDE has been changed to support screen readers, but I expect the free-form method editor that’s new in Studio 9 would be easier for a reader to navigate.
    I hope this helps!
    Alex

  • Alex Clay

    Member
    January 16, 2018 at 11:31 am in reply to:

    Hi Paul,
    These are excellent! As to your question for announcing, here’s what I put on the omnis.ci site:

    • Post under the News form on the Omnis Developer portal
    • Email developer@omnis.net with a request to add your library to the Libraries section of the Omnis Developer portal. Be sure to include a link to repository on GitHub and a brief description of what the library does
    • Post an announcement to the Omnis Developer List

    Thanks again to you and Graeme!
    Alex

  • Alex Clay

    Member
    January 15, 2018 at 2:13 pm in reply to:

    You can absolutely share Studio 5 lbs files on GitHub. The advantage of using Studio 8.1 is that you can also dump the source to readable files, then use git to compare and manage the code. I recommend you:
    1. Post the Studio 5 lbs file(s) so others can download and use them
    2. Update a local copy of the library to Studio 8.1
    3. Export the source from 8.1
    4. Include that source with your Studio 5 library
    If someone wants to offer an enhancement with a pull request, have them do the same. That way you, and others, can compare and see the differences in the exported code. Studio 8.1 doesn’t radically change code from 5, so reviewing the exported 8.1 code should give you a fair evaluation of what’s changed in Studio 5.

  • Alex Clay

    Member
    February 2, 2024 at 7:59 pm in reply to: Windows PID of running Omnis Instance

    We do the same. Here’s our full solution that’s cross-platform for macOS and Windows. This stores the PID in a class variable since it’s static per application instance. There are a couple references to our framework (logging utility and task variable to detect platform), but this should be readable and hopefully help someone.

    If cnMyProcessID<>0

    Quit method cnMyProcessID

    End If

    If tvMacVersion

    Do $root.$runapplescript('do shell script "ps -p $$ -o ppid="',lcScriptResult) Returns lnReturn

    If lnReturn<>0

    Do uoLog.$error(con("Error ",lnReturn," trying to find my process ID. Result is: ",lcPathToMe))

    Quit method 0

    End If

    Calculate cnMyProcessID as trim(lcScriptResult,kTrue,kTrue,'"')

    Else

    Register DLL ("KERNEL32.DLL","GetCurrentProcessId","JV") Returns lnErrorCode

    Call DLL ("KERNEL32.DLL","GetCurrentProcessId") Returns cnMyProcessID

    End If

    Quit method cnMyProcessID

  • Alex Clay

    Member
    June 27, 2019 at 11:37 pm in reply to: SqLite multiple user

    It may be more of a drastic change, but have you considered moving to a backend that’s built for concurrent access? PostgreSQL is an excellent, open-source and free option, and we use it to manage thousands of concurrent clients across our servers.
    I’m not sure why running the PRAGMA command resets the connection. The Omnis docs indicate the SQLite connection runs with the PERSIST journal mode: https://developer.omnis.net/onlinedocs/Programming/09serv.html#troubleshooting
    The page also suggests the mode can be changed to OFF, so I would expect you could set it to WAL. Perhaps email Omnis support to ask about this?