I contribute computing power to GIMPS, the prime number calculator. I was trying to write a script that launches it, but AHK isn't accepting the class number as valid. Here's the code:
Code: Select all
^x::ExitApp
DetectHiddenWindows On
#o:: if not WinExist("ahk_class Afx:00007FF7AD9C0000:8:0000000000010003:0000000000000000:000000000024064B")
{
run,"C:\Program Files\GIMPS\prime95.exe"
}
I got that class from another simple program:Error: Invalid single-line hotkey/hotstring.
Specifically: #o::if not WinExist("ahk_class Afx:00007FF7AD9C0000:8:0000000000010003:0000000000000000:000000000024064B...
Line#
001: Return
001: ExitApp
001: Return
003: DetectHiddenWindows,On
---> 005: if WinExist("ahk_class Afx:00007FF7AD9C0000:8:0000000000010003:0000000000000000:000000000024064B")
Code: Select all
^o::
WinGetClass, class, A
MsgBox, class "%class%"