Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. My turn for a dumb question

My turn for a dumb question

Scheduled Pinned Locked Moved The Lounge
questioncomtestingbeta-testing
24 Posts 16 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Marc Clifton

    Gads, I am getting tired of mouse clicking over the same menu, dialog, entering a test value, hitting OK, etc. Does anyone know of a scriptable mouse/keystroke inserter so I can automate some GUI testing? Unfortunately, this is pretty much GUI testing and so it isn't easy to write unit tests against. I would cobble something together unit-test wise, but I think that would take longer, and I'm trying to be efficiently lazy. :) Marc My website
    Latest Articles: Object Comparer String Helpers

    M Offline
    M Offline
    Mitch F
    wrote on last edited by
    #4

    Hello, Look into the SendKeys.Send() of VB .Net. You could tell it to press tab 5 times, and then enter, etc. to select your keys. I know that you could do it in C++, but VB .Net has direct access to it is a lot simpler. Now I run to the Arctics before the Anti-VB crew attacks me. :~ Put code like this into a button on a form in VB...

        SendKeys.Send("{TAB}")   'Tab
        SendKeys.Send("{ENTER}") 'Enter
        SendKeys.Send("VALUE")   'Text Value
    

    Look for the "SendKeys.Send method" in help for a full listing... Running, running, running, running, not close to the North Pole yet, must keep going... :rolleyes: Mitch My sig: "And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright Get Perpendicular! (Hitachi Storage) My CodeProject Blog Most recent blog post: April 11

    M 1 Reply Last reply
    0
    • P Pravarakhya

      Marc Clifton wrote: Does anyone know of a scriptable mouse/keystroke inserter I know one inserter, but he is a guy and u need to pay him. why dont you outsource your task and give it to a guy who needs job!;P Pravar My Image Processing Article! Rate it!!

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #5

      Pravarakhya wrote: I know one inserter, but he is a guy and u need to pay him. why dont you outsource your task and give it to a guy who needs job! haha. I'm looking for something a bit more automated, more easily configurable, and with better response time. ;P Marc My website
      Latest Articles: Object Comparer String Helpers

      1 Reply Last reply
      0
      • M Marc Clifton

        Gads, I am getting tired of mouse clicking over the same menu, dialog, entering a test value, hitting OK, etc. Does anyone know of a scriptable mouse/keystroke inserter so I can automate some GUI testing? Unfortunately, this is pretty much GUI testing and so it isn't easy to write unit tests against. I would cobble something together unit-test wise, but I think that would take longer, and I'm trying to be efficiently lazy. :) Marc My website
        Latest Articles: Object Comparer String Helpers

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #6

        Marc Clifton wrote: efficiently lazy there is a nice word for that, economizing :) xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots

        1 Reply Last reply
        0
        • M Mitch F

          Hello, Look into the SendKeys.Send() of VB .Net. You could tell it to press tab 5 times, and then enter, etc. to select your keys. I know that you could do it in C++, but VB .Net has direct access to it is a lot simpler. Now I run to the Arctics before the Anti-VB crew attacks me. :~ Put code like this into a button on a form in VB...

              SendKeys.Send("{TAB}")   'Tab
              SendKeys.Send("{ENTER}") 'Enter
              SendKeys.Send("VALUE")   'Text Value
          

          Look for the "SendKeys.Send method" in help for a full listing... Running, running, running, running, not close to the North Pole yet, must keep going... :rolleyes: Mitch My sig: "And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright Get Perpendicular! (Hitachi Storage) My CodeProject Blog Most recent blog post: April 11

          M Offline
          M Offline
          Marc Clifton
          wrote on last edited by
          #7

          Yeah, I was reading about SendInput API, and I've perused a few articles here on CP, but they're not what I'm looking for, from the looks of it. I'm looking for something that is separate from my app. Thanks! Marc My website
          Latest Articles: Object Comparer String Helpers

          M J 2 Replies Last reply
          0
          • M Marc Clifton

            Gads, I am getting tired of mouse clicking over the same menu, dialog, entering a test value, hitting OK, etc. Does anyone know of a scriptable mouse/keystroke inserter so I can automate some GUI testing? Unfortunately, this is pretty much GUI testing and so it isn't easy to write unit tests against. I would cobble something together unit-test wise, but I think that would take longer, and I'm trying to be efficiently lazy. :) Marc My website
            Latest Articles: Object Comparer String Helpers

            A Offline
            A Offline
            Andy Brummer
            wrote on last edited by
            #8

            Marc, I only played around with this a little when the article came out, but this might be useful. http://msdn.microsoft.com/msdnmag/issues/02/03/Bugslayer/[^]


            I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

            L 1 Reply Last reply
            0
            • M Marc Clifton

              Gads, I am getting tired of mouse clicking over the same menu, dialog, entering a test value, hitting OK, etc. Does anyone know of a scriptable mouse/keystroke inserter so I can automate some GUI testing? Unfortunately, this is pretty much GUI testing and so it isn't easy to write unit tests against. I would cobble something together unit-test wise, but I think that would take longer, and I'm trying to be efficiently lazy. :) Marc My website
              Latest Articles: Object Comparer String Helpers

              D Offline
              D Offline
              Daniel Turini
              wrote on last edited by
              #9

              I've used NUnitForms[^] in the past and it works great, and it can produce unit tests. If you only need powerful automation and can afford such a tool, Automate[^] is the best tool you can find! I see dead pixels Yes, even I am blogging now!

              1 Reply Last reply
              0
              • M Marc Clifton

                Yeah, I was reading about SendInput API, and I've perused a few articles here on CP, but they're not what I'm looking for, from the looks of it. I'm looking for something that is separate from my app. Thanks! Marc My website
                Latest Articles: Object Comparer String Helpers

                M Offline
                M Offline
                Mitch F
                wrote on last edited by
                #10

                Hello, It can work separate from your current application. The only limitation is that while the keys are being sent your application must be active or else a different application will start recieving and performing the key combinations. A solution would be to have a Timer that waits 2 seconds from the time you press a "send key" button so that you have been given enough time to get your application active. Hope this helps, Mitch My sig: "And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright Get Perpendicular! (Hitachi Storage) My CodeProject Blog Most recent blog post: April 11

                1 Reply Last reply
                0
                • M Marc Clifton

                  Gads, I am getting tired of mouse clicking over the same menu, dialog, entering a test value, hitting OK, etc. Does anyone know of a scriptable mouse/keystroke inserter so I can automate some GUI testing? Unfortunately, this is pretty much GUI testing and so it isn't easy to write unit tests against. I would cobble something together unit-test wise, but I think that would take longer, and I'm trying to be efficiently lazy. :) Marc My website
                  Latest Articles: Object Comparer String Helpers

                  M Offline
                  M Offline
                  Michael P Butler
                  wrote on last edited by
                  #11

                  See if you can dig up an old copy of the Windows 3.11 Macro recorder ;-) Michael CP Blog [^] Development Blog [^]

                  D 1 Reply Last reply
                  0
                  • A Andy Brummer

                    Marc, I only played around with this a little when the article came out, but this might be useful. http://msdn.microsoft.com/msdnmag/issues/02/03/Bugslayer/[^]


                    I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #12

                    For some reason I like this product... :laugh: The tigress is here :-D

                    A 1 Reply Last reply
                    0
                    • M Marc Clifton

                      Gads, I am getting tired of mouse clicking over the same menu, dialog, entering a test value, hitting OK, etc. Does anyone know of a scriptable mouse/keystroke inserter so I can automate some GUI testing? Unfortunately, this is pretty much GUI testing and so it isn't easy to write unit tests against. I would cobble something together unit-test wise, but I think that would take longer, and I'm trying to be efficiently lazy. :) Marc My website
                      Latest Articles: Object Comparer String Helpers

                      D Offline
                      D Offline
                      David Stone
                      wrote on last edited by
                      #13

                      I have a co-worker who's using Perfect Keyboard[^] to do some automation work with a really crappy title/escrow application. If it'll work with this app, it'll work with anything. :) [UPDATE]He's also looked at Macro Express[^]. But I think he said he preferred Perfect Keyboard.

                      1 Reply Last reply
                      0
                      • L Lost User

                        For some reason I like this product... :laugh: The tigress is here :-D

                        A Offline
                        A Offline
                        Andy Brummer
                        wrote on last edited by
                        #14

                        :laugh:


                        I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

                        1 Reply Last reply
                        0
                        • M Marc Clifton

                          Yeah, I was reading about SendInput API, and I've perused a few articles here on CP, but they're not what I'm looking for, from the looks of it. I'm looking for something that is separate from my app. Thanks! Marc My website
                          Latest Articles: Object Comparer String Helpers

                          J Offline
                          J Offline
                          J Dunlap
                          wrote on last edited by
                          #15

                          Actually, it doesn't have to be within your app - you can activate the window from another app (made just for the purpose), and then send the keys to it.

                          1 Reply Last reply
                          0
                          • M Michael P Butler

                            See if you can dig up an old copy of the Windows 3.11 Macro recorder ;-) Michael CP Blog [^] Development Blog [^]

                            D Offline
                            D Offline
                            Duncan Edwards Jones
                            wrote on last edited by
                            #16

                            Or the windows hook that was used by that application : WH_JOURNALPLAYBACK. '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

                            1 Reply Last reply
                            0
                            • M Marc Clifton

                              Gads, I am getting tired of mouse clicking over the same menu, dialog, entering a test value, hitting OK, etc. Does anyone know of a scriptable mouse/keystroke inserter so I can automate some GUI testing? Unfortunately, this is pretty much GUI testing and so it isn't easy to write unit tests against. I would cobble something together unit-test wise, but I think that would take longer, and I'm trying to be efficiently lazy. :) Marc My website
                              Latest Articles: Object Comparer String Helpers

                              D Offline
                              D Offline
                              DJ_Graham
                              wrote on last edited by
                              #17

                              Marc, I have had some success doing automation like this using autoit[^]. It's a scripting language you use to send keystrokes and mouse clicks to a applications. You can run it as a script or compile it into an exe - oh, and it's free. Regards, Derek.

                              M 2 Replies Last reply
                              0
                              • M Marc Clifton

                                Gads, I am getting tired of mouse clicking over the same menu, dialog, entering a test value, hitting OK, etc. Does anyone know of a scriptable mouse/keystroke inserter so I can automate some GUI testing? Unfortunately, this is pretty much GUI testing and so it isn't easy to write unit tests against. I would cobble something together unit-test wise, but I think that would take longer, and I'm trying to be efficiently lazy. :) Marc My website
                                Latest Articles: Object Comparer String Helpers

                                T Offline
                                T Offline
                                TheGreatAndPowerfulOz
                                wrote on last edited by
                                #18

                                We use WinBatch with great success. http://www.winbatch.com/[^] To Tom Archer: this is not an ad.

                                1 Reply Last reply
                                0
                                • D DJ_Graham

                                  Marc, I have had some success doing automation like this using autoit[^]. It's a scripting language you use to send keystrokes and mouse clicks to a applications. You can run it as a script or compile it into an exe - oh, and it's free. Regards, Derek.

                                  M Offline
                                  M Offline
                                  Marc Clifton
                                  wrote on last edited by
                                  #19

                                  DJ_Graham wrote: I have had some success doing automation like this using autoit[^]. Wow, that looks quite impressive. Thanks! Marc My website
                                  Latest Articles: Object Comparer String Helpers

                                  1 Reply Last reply
                                  0
                                  • M Marc Clifton

                                    Gads, I am getting tired of mouse clicking over the same menu, dialog, entering a test value, hitting OK, etc. Does anyone know of a scriptable mouse/keystroke inserter so I can automate some GUI testing? Unfortunately, this is pretty much GUI testing and so it isn't easy to write unit tests against. I would cobble something together unit-test wise, but I think that would take longer, and I'm trying to be efficiently lazy. :) Marc My website
                                    Latest Articles: Object Comparer String Helpers

                                    R Offline
                                    R Offline
                                    Ravi Bhavnani
                                    wrote on last edited by
                                    #20

                                    WinMacro[^] :cool:   Written by our very own S. Senthil Kumar[^] /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

                                    M 1 Reply Last reply
                                    0
                                    • R Ravi Bhavnani

                                      WinMacro[^] :cool:   Written by our very own S. Senthil Kumar[^] /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

                                      M Offline
                                      M Offline
                                      Marc Clifton
                                      wrote on last edited by
                                      #21

                                      Very cool! Thank you Ravi. Between WinMacro and AutoIt, I think I've got it covered now. :jig: Marc My website
                                      Latest Articles: Object Comparer String Helpers

                                      1 Reply Last reply
                                      0
                                      • M Marc Clifton

                                        Gads, I am getting tired of mouse clicking over the same menu, dialog, entering a test value, hitting OK, etc. Does anyone know of a scriptable mouse/keystroke inserter so I can automate some GUI testing? Unfortunately, this is pretty much GUI testing and so it isn't easy to write unit tests against. I would cobble something together unit-test wise, but I think that would take longer, and I'm trying to be efficiently lazy. :) Marc My website
                                        Latest Articles: Object Comparer String Helpers

                                        R Offline
                                        R Offline
                                        Roger Wright
                                        wrote on last edited by
                                        #22

                                        There are no dumb questions, only stupid people asking what seem to them smart questions.;) "...putting all your eggs in one basket along with your bowling ball and gym clothes only gets you scrambled eggs and an extra laundry day... " - Jeffry J. Brickley

                                        1 Reply Last reply
                                        0
                                        • D DJ_Graham

                                          Marc, I have had some success doing automation like this using autoit[^]. It's a scripting language you use to send keystrokes and mouse clicks to a applications. You can run it as a script or compile it into an exe - oh, and it's free. Regards, Derek.

                                          M Offline
                                          M Offline
                                          Marc Clifton
                                          wrote on last edited by
                                          #23

                                          DJ_Graham wrote: using autoit[^]. I just gave this a test drive. Fantastic! Thanks again for the link. Marc My website
                                          Latest Articles: Object Comparer String Helpers

                                          D 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups