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. Is there any program out there that can close messageboxes pressing enter automatically? (in windows XP)

Is there any program out there that can close messageboxes pressing enter automatically? (in windows XP)

Scheduled Pinned Locked Moved The Lounge
questioncsharpc++visual-studiocom
25 Posts 9 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.
  • J Joan M

    SOLVED ALREADY, I've done a small program in C++ that handles that for me. The problem was not doing the program itself (which is super easy to do) the problem was getting an executable file that would work in Windows XP. After a good tip from @Daniel_Pfeffer, I've learned how to configure newer versions of Visual Studio to link for Windows XP. THANK YOU ALL! :thumbsup: I've seen "Clickoff" and "windows closer by Murgee", but the first one seems not to be capable to click on the message box and press enter afterwards, and the second one can't simply run on windows XP. I've done a super simple small C++ program that would do that search for window handle, send return there. and that should be it. The problem is that what is output from my Visual Studio is not compatible anymore with windows xp... (that's why I'm searching for a free application that could do that). Each 2 or 3 years I get a request that implies opening 3 virtual machines and open a set of files... each time I try to open those files it takes between 30 minutes to several hours. And always appears some messageboxes that need to be confirmed for the process to continue. This leaves me in front of the computer waiting for them... Thank you all! :beer:

    www.robotecnik.com[^] - robots, CNC and PLC programming

    G Offline
    G Offline
    Gregori Harbs
    wrote on last edited by
    #21

    i would prefer to do a prorgram targeted approach... and wrap around the MessageBox* function so the messagebox would never appear at all, and all required would be a change from user32.dll to userMy.dll where userMy.dll i would forward all functions to user32.dll minus the MessageBox ones... altough its also possible to do by injecting a dll on the process and detouring... and even possible with a global hooking for dialog creation (using the MessageBox template), dont know programs for that as usually i do more targeted than generic approaches... but imo its very easy to do :)

    J 1 Reply Last reply
    0
    • M milo xml

      You can try this. I've used it in the past for some scripting. https://www.autoitscript.com/site/[^]

      J Offline
      J Offline
      Joan M
      wrote on last edited by
      #22

      thank you, I've done a small program after setting the linker to link for XP.

      www.robotecnik.com[^] - robots, CNC and PLC programming

      https://www.robotecnik.com freelance robots, PLC and CNC programmer.

      1 Reply Last reply
      0
      • M Member 9167057

        The output from Visual Studio is compatible with XP when you build with the XP-compatible toolchain.

        J Offline
        J Offline
        Joan M
        wrote on last edited by
        #23

        Didn't know that, already done, thanks.

        www.robotecnik.com[^] - robots, CNC and PLC programming

        https://www.robotecnik.com freelance robots, PLC and CNC programmer.

        1 Reply Last reply
        0
        • G Gregori Harbs

          i would prefer to do a prorgram targeted approach... and wrap around the MessageBox* function so the messagebox would never appear at all, and all required would be a change from user32.dll to userMy.dll where userMy.dll i would forward all functions to user32.dll minus the MessageBox ones... altough its also possible to do by injecting a dll on the process and detouring... and even possible with a global hooking for dialog creation (using the MessageBox template), dont know programs for that as usually i do more targeted than generic approaches... but imo its very easy to do :)

          J Offline
          J Offline
          Joan M
          wrote on last edited by
          #24

          Solved already. Thanks!

          www.robotecnik.com[^] - robots, CNC and PLC programming

          https://www.robotecnik.com freelance robots, PLC and CNC programmer.

          1 Reply Last reply
          0
          • J Joan M

            SOLVED ALREADY, I've done a small program in C++ that handles that for me. The problem was not doing the program itself (which is super easy to do) the problem was getting an executable file that would work in Windows XP. After a good tip from @Daniel_Pfeffer, I've learned how to configure newer versions of Visual Studio to link for Windows XP. THANK YOU ALL! :thumbsup: I've seen "Clickoff" and "windows closer by Murgee", but the first one seems not to be capable to click on the message box and press enter afterwards, and the second one can't simply run on windows XP. I've done a super simple small C++ program that would do that search for window handle, send return there. and that should be it. The problem is that what is output from my Visual Studio is not compatible anymore with windows xp... (that's why I'm searching for a free application that could do that). Each 2 or 3 years I get a request that implies opening 3 virtual machines and open a set of files... each time I try to open those files it takes between 30 minutes to several hours. And always appears some messageboxes that need to be confirmed for the process to continue. This leaves me in front of the computer waiting for them... Thank you all! :beer:

            www.robotecnik.com[^] - robots, CNC and PLC programming

            M Offline
            M Offline
            Member 9866755
            wrote on last edited by
            #25

            There is a registry entry in Windows XP that will automatically click on the default reply for a messagebox. See Enabling Default Reply

            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