Posts: 3
Threads: 1
Joined: Aug 2014
Reputation:
0
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.
Posts: 8.030
Threads: 278
Joined: Feb 2009
Reputation:
346
Which window you want to be active\exist before executing your code...the main window,the console or the Game window?
Posts: 3
Threads: 1
Joined: Aug 2014
Reputation:
0
thank you for your reply , i want to know the game window's ClassName.
Posts: 432
Threads: 16
Joined: Aug 2013
Reputation:
45
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.
Posts: 3.526
Threads: 6
Joined: Dec 2013
sourcecode...
Quote:wc.lpszClassName = "GSWndDX";
???
Posts: 8.030
Threads: 278
Joined: Feb 2009
Reputation:
346
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
Posts: 3
Threads: 1
Joined: Aug 2014
Reputation:
0
thanks for all replies of yours , i will try it. thank you again.