SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2002
    Posts
    77
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Not able to return from notification sub

    hello

    i have a subroutine written for windowcrete notification.

    My flow will be as follows:

    If i run the exe, first i will get a login depends on the session manager (SM), sometimes i will get some time may not because of SM.

    so i am going for creating a notification. but as soon as sub funciton is finished, the control is NOT coming to the next statement of RUN. i.e., MyFunc is not getting executed.


    viewport clear
    ON WindowCreate ("~Login", NULL) Call EnterLogin

    Declare Sub EnterLogin (hwnd AS Variant)

    scenario "a"

    Run "C:\flexicube.exe"

    MyFunc

    end scenario

    SUB EnterLogin( hwnd AS Variant)
    WEditSetText("@1", "34332")
    WEditSetText("@2", "password")
    WButtonClick("&OK")
    END SUB

    Thanks


    ------------------
    Sunnie
    Sunnie

  2. #2
    Junior Member
    Join Date
    Sep 2001
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Not able to return from notification sub

    Hi sunnie,

    As I can see in you code, the problem is in your "Run "C:\flexicube.exe"" statement.
    Script will not be able to go to the next statement until you close your flexicube.exe application. To resolve the problem, just write

    Run "C:\flexicube.exe", NOWAIT

    instead of

    Run "C:\flexicube.exe"

    I mean, "C:\flexicube.exe" without NOWAIT optional parameter is allowed to complete before the test code continues on to the next statement.

    Regards,
    Vahancho

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 12:34 AM.

Copyright BetaSoft Inc.