SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to Convert to Autoit Code

    JustHuman (I guess you are the autoit man here [img]images/icons/wink.gif[/img] )
    do you have any Autoit code which use the QTP AOM
    to start the QTP,then open and run a particular test?
    The purpose of this: I want to restart the windows then run the QTP test after that using windows task manager.
    if you have a similar code , could you please post it?
    guys any one who has a similar code which satisfy this request may reply.
    Thank you.

    [ 02-23-2006, 11:25 AM: Message edited by: chillyhouse52556 ]
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: How to Convert to Autoit Code

    chillyhouse52556, Why don't you right your own code for the same...make a VBScript and place it in the startup folder...

  3. #3
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Convert to Autoit Code

    Tarun thanx I guess this is the easiest way to do it

    [ 02-23-2006, 11:53 AM: Message edited by: chillyhouse52556 ]
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

  4. #4
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Convert to Autoit Code

    How to convert the below code to Autoit code?
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">Dim qtapp
    Dim qttest
    Dim qtResultsOpt

    Set qtApp = CreateObject(&quot;QuickTest.Application&quot
    qtApp.Launch
    qtApp.Visible = True


    qtApp.Options.Run.CaptureForTestResults = &quot;OnError&quot;
    qtApp.Options.Run.RunMode = &quot;Fast&quot;
    qtApp.Options.Run.ViewResults = False

    qtApp.Open &quot;C:\QTP\LIUPerformance2&quot;,True


    Set qtTest = qtApp.Test
    qtTest.Settings.Run.IterationMode = &quot;rngAll&quot;
    qtTest.Settings.Run.OnError = &quot;NextStep&quot;

    Set qtResultsOpt = CreateObject(&quot;QuickTest.RunResultsOptions&quo t
    qtResultsOpt.ResultsLocation = &quot;C:\QTP\LIUPerformance&quot;

    qtTest.Run qtResultsOpt

    qtTest.Close

    Set qtResultsOpt = Nothing
    Set qtTest = Nothing
    Set qtApp = Nothing </pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">

    [ 02-23-2006, 11:23 AM: Message edited by: chillyhouse52556 ]
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

  5. #5
    Moderator
    Join Date
    Oct 2005
    Location
    UK
    Posts
    407
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Convert to Autoit Code

    Chilly,

    There is a utility VAConvert which I am almost sure I picked up from the AutoIt3 website which converts vbs to au3.

    OT - AutoIt3 is a very good tool for scripting with a gui [img]images/icons/smile.gif[/img]
    Ron
    *******
    If you had to identify, in one word, the reason
    why the human race has not achieved, and never
    will achieve, its full potential that word would be "meetings".

  6. #6
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Convert to Autoit Code

    rong
    I couldn't find VAConvert in http://www.autoitscript.com/autoit3/index.php
    AutoIt Full Installation. Includes :
    AutoIt program files, documentation and examples.
    Aut2Exe - Script to executable converter. Convert your scripts into standalone .exe files!
    AutoItX - DLL/COM control. Add AutoIt features to your favorite programming and scripting languages!

    could you please post the URL or email the tool to chillyhouse96@yahoo.com

    Thanks
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

  7. #7
    Moderator
    Join Date
    Oct 2005
    Location
    UK
    Posts
    407
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Convert to Autoit Code

    Ron
    *******
    If you had to identify, in one word, the reason
    why the human race has not achieved, and never
    will achieve, its full potential that word would be "meetings".

  8. #8
    Senior Member
    Join Date
    Oct 2003
    Location
    Kyiv, Ukraine
    Posts
    302
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Convert to Autoit Code

    sorry guys, could you, please, say me what you mean by "autoit"?

  9. #9
    Moderator
    Join Date
    Sep 2001
    Location
    Boston, MA
    Posts
    4,348
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Convert to Autoit Code

    Originally posted by latin:
    sorry guys, could you, please, say me what you mean by "autoit"?
    <font size="2" face="Verdana, Arial, Helvetica">http://www.google.com/search?q=autoit
    Corey Goldberg
    Homepage: goldb.org
    Twitter: twitter.com/cgoldberg
    Google+: gplus.to/cgoldberg

  10. #10
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Convert to Autoit Code

    Thanks rong
    however it doesn't work for a simple code
    I am trying to create exe for this code by converting it to au3 then to exe :-(
    Dim oShell
    Set oShell = CreateObject ("WScript.Shell")
    oShell.run "SHUTDOWN -r -f -t 30"
    Set oShell = Nothing
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

 

 
Page 1 of 2 12 LastLast

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 10.71%
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:25 PM.

Copyright BetaSoft Inc.