| View previous topic :: View next topic |
| Author |
Message |
Knowbodynow
Joined: 26 Jun 2007 Posts: 35
|
Posted: Fri Jul 20, 2007 1:07 am Post subject: Reactivating Cerious Thumbsplus |
|
|
Hello, I'm having trouble with ifwinexist and ThumbsPlus. Here's my code:
| Code: |
#t::
IfWinExist ThumbsPlus
WinActivate
else
Run F:\Thumbsplus Databases\wisenew.td4
return
|
Everytime I pressed the Windows Key and t a new instance of ThumbsPlus is created. I also tried using Window Spy to get the ahk_class:
| Code: |
#t::
IfWinExist ("ahk_class cswThumbsPlusMain") |
But this didn't work either. The exact title of the Thumbsplus window seems a little unusual:
wisehat.new.td4 in ThumbsPlus Pro - [directory Thumbsplus is point to]
Does anyone have any suggestions for how to make my code work and reactivate ThumbsPlus rather than launching it again?
Thanks,
CaH |
|
| Back to top |
|
 |
ManaUser
Joined: 24 May 2007 Posts: 901
|
Posted: Fri Jul 20, 2007 5:33 am Post subject: |
|
|
I think you're mixing up IfWinExist and WinExist on that last one Try | Code: | | IfWinExist ahk_class cswThumbsPlusMain |
or | Code: | | If WinExist("ahk_class cswThumbsPlusMain") |
|
|
| Back to top |
|
 |
Knowbodynow
Joined: 26 Jun 2007 Posts: 35
|
Posted: Fri Jul 20, 2007 1:13 pm Post subject: |
|
|
Brilliant, I didn't even know there were two alternatives! The first one works nicely.
Thanks,
CaH |
|
| Back to top |
|
 |
|