Difference in control-g commands?

Running a macro-type script on a PC SUT Eggplant 1.5:

I notice that the app likes (recognizes it):

TypeText "\c"
TypeText "G"
TypeText "\C"

but does NOT like:

TypeText "\cG\C"

OR

TypeControl "g"

Is one of these commands better syntax or do you just need to do experiment to see which your command is recognized better in your application?

Thanks,


Brad

Comments

  • EggplantMattEggplantMatt ForumAdmin admin
    Teletubby wrote:
    TypeText "\c"
    TypeText "G"
    TypeText "\C"

    TypeText "\cG\C"

    Both of these should work fine. If the second one isn't working, try opening Eggplant > Preferences > Run Options > Keyboard and increasing the Next Key Delay setting; Eggplant may be typing this too quickly for your test system to respond to.
    Teletubby wrote:
    TypeControl "g"

    Unless you've written one, there is no TypeControl command. There is a TypeCommand command, which actually sends the Alt modifier to Windows SUTs.
  • Matt,

    My bad. :oops:

    Yep I did write a TypeControl command
    params key
    TypeText "\c" & key & "\C"
    

    but using it doesn't work either so hopefully the next key delay setting would fix that too?

    Thanks,

    Brad
  • EggplantMattEggplantMatt ForumAdmin admin
    Yeah, if it fixes one, it should fix the other. Let me know how it goes.
Sign In or Register to comment.