Gamepad Button Trainer

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Gamepad Button Trainer

Post by heartbone »

Rings wrote:Going in special, your 'exe'' did not run in a vmware
environment(XP) ,
Finally some feedback on the program.
Yay!

The trainer was developed and written to run in Windows XP,
and will function perfectly in Windows Vista when run in XP compatibility mode.
Users over at Footballidiot.com have sucessfully run it on Windows 7.
It has not been tested in any other OS.
If the trainer does not function then obviously your emulator does not quite work as well as it should.
Not my problem.
what should i expect from a ''new' user?

well , life is to short to live as a troll.
There you go again. As a troll you should live your short life to the fullest.

I wish that I had seen MachineCode's redacted feedback.
I am sure that it was very indicative of something.
Keep it BASIC.
User avatar
Lord
Addict
Addict
Posts: 907
Joined: Tue May 26, 2009 2:11 pm

Re: Gamepad Button Trainer

Post by Lord »

I'm still not convinced.
Image
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Gamepad Button Trainer

Post by MachineCode »

heartbone wrote:I wish that I had seen MachineCode's redacted feedback.
I am sure that it was very indicative of something.
I was just being a smart ass. I apologize for the reception I gave you here.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Gamepad Button Trainer

Post by luis »

MachineCode wrote: So, you *do* care if he goes away and calls us all paranoid? ;)
I don't see why he could, he talked only to some users. Extrapolate from a base so small would not be intelligent.

But to answer your question: no, I don't care (even if being loved is generally better than be hated) and that has nothing to do with my remark about the "we".
Simply, you can't rightfully use "we" while I'm still registered and active on this forum. It's not opinable. That's all!
Using "I" doesn't take anything from your idea/concept if it has merits enough to live on its own.
Peace :)

Anyway probably the thread will end up locked since this new user can't take some understandable cautiousness and work around it or simple accept it without silly escalations, even if I agree the initial barrage was excessively paranoid. There are better ways to say the same thing. As I said, truth is in the middle. Yes, this IS opinable I know :)

BTW: vmware is not an emulator, it's a virtual machine. Bochs is an emulator.

Uhm, but why write today a program which needs to be used in compatibility mode on vista (seven ?) and not simply writing it compatible with those too ? I know the answer could be "not my problem" as for the fact it doesn't run inside a vm but could be a good habit trying to not write software implicitly obsolete (?)
Also is a little strange to not have a mouse cursor in a windowed program, it's a little unexpected.

Seems to work on win7 (without compatibility mode needed, strange you need it for vista), nice.
It's good you can switch between different button layouts.
I guess the reason why it didn't work in vmware is because it's using a graphic mode and not a normal window ? Sometimes making a directx program work under vm requires some tweaking.
"Have you tried turning it off and on again ?"
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Gamepad Button Trainer

Post by heartbone »

Thanks luis for the feedback.
(I also commend you on the other off topic excellent responses to MachineCode.)
Regrettably I don't have a Windows 7 machine to test on, and designing obsolete software is never good.
I don't know why the program hangs when running in Windows Vista when its window loses focus,
I'm thinking that perhaps Microsoft fixed things in Windows 7 if the compatibility mode setting isn't needed there.
One of the main reasons for my posting it here was to determine if there is a solution to the Vista compatibility problem,
so you have definitely started down the desired path.

As far as the "BTW: vmware is not an emulator, it's a virtual machine. Bochs is an emulator.", thanks for the information.
The only thing that I know about that environment is that my program does not work in it.

And yes you are correct, the gamepad button trainer program does not support any mouse activity.
If you want to see the reason why....
http://www.footballidiot.com/forum/view ... 702#p38953
"As I thought, the 0.0.6 program's interaction with Windows was destroying it, and is the absolutely wrong approach for applications which require real time processing through low level interactions with the hardware devices.
However if you need to interact with other running processes and programs on the system, then the program structure of 0.0.6 allows total flexibility.

The nature of the button trainer, like most real time programming, requires that it not be halted while Windows gives a higher priority to browser processing or resolving some background FTP issue in the anti-virus. "

MachineCode wrote:
heartbone wrote:I wish that I had seen MachineCode's redacted feedback.
I am sure that it was very indicative of something.
I was just being a smart ass. I apologize for the reception I gave you here.
No problem.
Keep it BASIC.
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Gamepad Button Trainer

Post by luis »

heartbone wrote: One of the main reasons for my posting it here was to determine if there is a solution to the Vista compatibility problem,
Well, now we know your program is written using directx 9 (if you are using the latest PB and you are using openwindowedscreen() as I see in your code). Right ?
And the program freezes on vista when the window loose the focus. Right ?
Does it happen when windowed ? or full screen ?
Does your program goes really fullscreen (openscreen) or just stretch a normal window (openwindowedscreen) to full size ?

Maybe someone else can help from these symptoms alone, or you could try to create a small source code version of your sw without the main body of the program (just the main window processing its loop for example) and check if that one exhibit the same problem. If/when it does, post the code in "coding question" and we'll see if someone can come with a workaround for it.
I remember I saw some problems reported about "switching" when using a directx program, but I don't remember the threads. I don't use PB directx commands so maybe there isn't much I can suggest, having only minimal experience with them. Sorry.
"Have you tried turning it off and on again ?"
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Gamepad Button Trainer

Post by heartbone »

I compiled it using 4.51.
After the program was finished, I compiled it using 5.10 to see if the Vista hangs would disappear,
and they did not, so I released it using a 4.51 compile.
For a simple program such as the trainer I am more interested in backwards OS compatibility so I opt to use the older and more stable compiler.

As far as Vista is concerned, the program stops responding whenever the trainer window loses focus.
I am extremely happy to learn that you do not experience that problem in Windows 7.
I did not know that, and I had been assuming those users needed to run in the XP compatibility mode.
Thank you for that information.

As far as what happens in the full screen mode, I'd assume the same problem happens then, although I have not triggered it.

The screen initializations that are used:

Code: Select all

OpenWindow(0,0,0,800,600,"Button Trainer",#PB_Window_ScreenCentered|#PB_Window_BorderLess)
OpenWindowedScreen(WindowID(0),0,0,800,600,#True,0,0)
WX= WindowX(0) : WY= WindowY(0)
WW= WindowWidth(0) : WH= WindowHeight(0)
At this point in the problem analysis I'm thinking to ignore the full screen condition because the Vista hang happens in the default windowed mode.

However, the full screen mode is triggered by

Code: Select all

ResizeWindow(0,0,0,DesktopWidth(0),DesktopHeight(0))  
The regular windowed mode is restored by

Code: Select all

ResizeWindow(0,WX,WY,WW,WH)
If posting this does not elicit a probable cause for the process hanging from those reading this thread,
then I'll do as you say and create a smaller example and post it in the appropriate section of the forum
for Vista users to help with.

Thanks again luis for your kind assistance.
Keep it BASIC.
DoctorLove
User
User
Posts: 85
Joined: Sat Mar 06, 2010 2:55 pm

Re: Gamepad Button Trainer

Post by DoctorLove »

heartbone wrote:
Lord wrote:I'm also not convinced yet.
Convinced about what?
Not running an .exe?
No problem, that is your right.

Strange board here.
Instead of a welcome, I get trolled by a moderator.
And now a strange one sentence post about not being convinced about something.
Interesting closed mindset there guys.
I hope that you are not representative.
That same feeling... i had that too today. Anyway, your program works fine here under w7 64 Bits.
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Gamepad Button Trainer

Post by luis »

DoctorLove wrote: That same feeling... i had that too today.
Smooth operator...
"Have you tried turning it off and on again ?"
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Gamepad Button Trainer

Post by heartbone »

DoctorLove wrote:That same feeling... i had that too today. Anyway, your program works fine here under w7 64 Bits.
Guys, I have feelings too. :cry:



I







feel










that














VISTA SUCKS!

Thanks DoctorLove for the confirmation.

If the same executable, works fine under Win XP & Win 7,
then I'm not even going to expend any more energy in finding what the deal with Vista is.
The Vista fix is as stated before, use XP compat mode.
Appreciate you guys helping me out there.

BTW, I've known that Vista sucks ever since I got it.
It just sucks more as time goes on.
Keep it BASIC.
Post Reply