SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Nov 1999
    Location
    Piscataway, NJ, USA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Java App windows don\'t appear using FileOpen

    When I read from a file to process screens (FileOpen) the Java windows never appear but if I read from a list of strings the Java windows appear in a Windows NT environment.

    [ ] STRING sFOR
    [ ] HFILE hFile
    [ ] hFile = FileOpen ("F:\jx\include\valid.fmts.txt", FM_READ)
    [ ] while (FileReadLine (hFile, sFOR))
    [ ] TIRKSjx.SetActive ()
    [ ] TIRKSjx.TypeKeys ("<Ctrl-g>")
    [ ] Print ("Working on FORMAT - {sFOR}")
    [ ] ChangeFormat.FOR.SetText (sFOR)
    [ ] ChangeFormat.Ok.Click ()
    [ ] sleep (7)
    [ ] TIRKSjx.CloseWindows (TRUE)

    But if I change to this the windows appear:

    [-] // LIST OF STRING lsFormats = {...}
    [ ] // "CAN"
    [ ] // "CD"
    [ ] // "WA"
    [ ] //
    [ ] // for each sFOR in lsFormats
    [ ] TIRKSjx.SetActive ()
    [ ] TIRKSjx.TypeKeys ("<Ctrl-g>")
    [ ] //ChangeFormat.SetActive ()
    [ ] sleep (2)
    [ ] Print ("Working on FORMAT - {sFOR}")
    [ ] ChangeFormat.FOR.SetText (sFOR)
    [ ] ChangeFormat.Ok.Click ()
    [ ] sleep (7)
    [ ] TIRKSjx.CloseWindows (TRUE)
    Stephen

  2. #2
    Senior Member
    Join Date
    Aug 1999
    Location
    San Diego, CA USA
    Posts
    219
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Java App windows don\'t appear using FileOpen

    1. It's hard to tell where the indentation is in your post. I can only guess.
    2. Your post also is not displaying anything in the TypeKeys parameter list, which I'm guessing is because of the fluky way that angle brackets won't display here.

    So, please try to post the actual code in a format we can all read or worst case attach a file containing the code.

    Also, I assume that you intended to NOT have the LIST OF STRING and its values commented out in the second code snip-it.

  3. #3
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Java App windows don\'t appear using FileOpen

    From your sample code:
    hFile = FileOpen ("F:\jx\include\valid.fmts.txt", FM_READ)

    I'm surprised that you did not get an error from your filename containing two (2) dots (periods). Could it be just a "typo"?

    And even if you are able to open and read the data from file, I don't see any connection on what action you do to the data in regards to opening the Java App window.
    Maybe I am missing something but all I see is you doing the TypeKeys ("") in the 2nd example that brings up the Java App window.
    Is it possible that you got an error in the OpenFile (due to the filename.x.y format)?

  4. #4
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Java App windows don\'t appear using FileOpen

    My thought:

    Easy fix, read in your file content into your
    'LIST OF STRING lsFormats' then use the rest of your code listing 2.

    In any respect, both method takes the same amount of time. O(2N)=O(N) so live with it

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:05 PM.

Copyright BetaSoft Inc.