|
OriginalGriff wrote: I know why they do it, but it's still a waste of 19 connectors Because people will still buy them. They should try packages of 25 in the future
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Sell them individually on flea bay for $2 each. Or 2 for $5 ( make sure you state that as a limited time offer)!
I, for one, like Roman Numerals.
|
|
|
|
|
it's almost December:
hang them up, spray paint them gold, buy a [cheap $2 fake gold] necklace / bracelet chain.
... here you go Auntie Dorris, Merry Christmas.
Message Signature
(Click to edit ->)
|
|
|
|
|
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
OriginalGriff wrote: ( I didn't understand a word of what you just said.
CS1026: ) expected
|
|
|
|
|
It was an invisible close bracket - only those without OCD could see it. I swapped it for a regular one ...
Executive summary "I need a widget to fix my thing, they sell 'em in packs of 20. B*st*rds!"
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Look at it this way: A full parts box is your friend when your parents take your computer away. Be sure to always have a CPU and some SRAMs in it, then they will find out that resistance is far from futile.
Speaking of resistance, some 47k resistors as pullups, 0.1µF capacitors, a 7805 voltage regulator (plus two 100µF capacitors), some glue logic and perhaps a crystal or oscillator would also be nice. You know how the stockpile grows when you know which is the hot end of a soldering gun.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
|
OriginalGriff wrote: you only do once... At least twice. The first and (hopefully) the last time. Didn't you see that she is wearing the correct safety gear, like those cool glasses? Maybe she should also put on a helmet, but then nothing can possibly go wrong anymore.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Nah ... her Hi Vis vest is missing as well.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
How about full body armor, just in case? Or a Darth Vader memorial breathing mask?
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
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!
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!
modified 19-Nov-19 12:38pm.
|
|
|
|
|
Quote: search for window handle
Handle of the MessageBox or handle of the OK Button?
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
It should be the same as the button is the default button on that messagebox...
Do you know any application that would do this?
Thank you.
|
|
|
|
|
No, I don't know such an application. As far as I understand you tried to do it by yourslef. I also just tried it and for me it works fine (ok, I did it with c++ builder). The main difference to your approach seems to be you send a VK_RETURN while I'm doing SendMessage(xWnd, WM_CLOSE, 0, 0);
I hope it helps
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
The application itself is super easy to do...
I don't want to close the messagebox, I want to accept it, that's why the VK_RETURN.
It works in my computer without much hassle...
The problem is that my version of visual studio doesn't have the right builder options for Windows XP. That's why I'm searching for an app like that...
|
|
|
|
|
Put your sourcecode in my profile blog. I will try then to make a native W32 for you
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Have not seen how to post it in your blog...
Hope you don't mind I post it here:
#include "pch.h"
#include <iostream>
#include <stdio.h>
#include <cstdlib>
#include <windows.h>
#include <winuser.h>
#include <conio.h>
int main(int argc, char *argv[])
{
LPCTSTR windowName = "Pregunta";
int ims = 10000;
if (argc > 1) windowName = argv[1];
if (argc > 2) ims = atoi(argv[2]);
while (true)
{
HWND hHandle = ::FindWindow(NULL, windowName);
std::cout << hHandle;
std::cout << "\r\n";
if (hHandle != NULL)
{
::PostMessage(hHandle, WM_KEYDOWN, VK_RETURN, 0x001C0001);
::PostMessage(hHandle, WM_KEYDOWN, VK_DOWN, 0x00500001);
}
Sleep(ims);
}
} Thank you for taking time to do this!
PS: the compiler must not be set to unicode to accept this as valid.
modified 16-Nov-19 9:17am.
|
|
|
|
|
Hi again
Finally this does the job in my environement
HWND xWnd= FindWindow(NULL, "DlgWnd");
if (xWnd)
{
int xWatchDogCount= 0;
while(xWatchDogCount++ < 10)
{
HWND xOkBtnWnd = FindWindowEx(xWnd, NULL, NULL, "OK");
if (xOkBtnWnd)
{
PostMessage(xOkBtnWnd, WM_KEYDOWN, VK_SPACE, 0);
PostMessage(xOkBtnWnd, WM_KEYUP, VK_SPACE, 0);
}
}
}
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
@Daniel_Pfeiffer posted how to get modern visual studios to be able to link for windows XP...
I'll follow that advice.
Thanks!
|
|
|
|
|
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Have a look at AutoHotKey, there may be a suitable script.
|
|
|
|
|
|
That's almost the same code I've done...
Mine works perfectly (like yours) but I was not able to put the executable in windows XP...
I've got a suggestion explaining how to get Visual Studio to be able to link for XP.
I'll do that.
THANKS for answering!
|
|
|
|
|
Joan M wrote: The problem is that what is output from my Visual Studio is not compatible anymore with windows xp...
For Visual Studio 2017 or 2019:
- Open the Visual Studio Installer
- Click "Modify"
- Select the "Individual Components" tab
- Scroll down, and select the "Windows XP support for C++" option
This should enable you to target Windows XP (it will appear as a separate option in the list of toolsets)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|