..:: PCSX2 Forums ::..

Full Version: can someone help(PCSX2's ClassName)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
when i ues the tools software which name is spy++ to get the ClassName of PCSX2 , then return value is "wxWindowClassNR" , but how can i sure it is the right one ,because all of the window of PCSX2 seem have a same ClassName ,that is called "wxWindowClassNR" , can anybody help me ?
sorry for my poor english and thanks.
Which window you want to be active\exist before executing your code...the main window,the console or the Game window?
thank you for your reply , i want to know the game window's ClassName.
You mean like this? If so, try the following steps.

[attachment=52157]

1. Find all parent window handles having the "wxWindowClassNR" class name.
2. In this case, you can find three window handles: 0015065A, 0002077A and 000A0764.
3. Compare the leftmost window text of them with a string "GSdx".
4. It's what you want. In this case, the window handle is 0015065A.
sourcecode...

Quote:wc.lpszClassName = "GSWndDX";

???
It depends on which language you are using.
For AutoHotkey,you can use for example

#IfWinActive,GSdx |
~F3::
Keywait,F3
Msgbox,Loading Save state
Return
thanks for all replies of yours , i will try it. thank you again.