Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21251

How to stop a VB6 Timer from a compiled App

$
0
0
Hi, well, i no longer have the source code, but the only modification I want, is to stop a timer so...

Did some research, write some code and WORKED on my test PC (XP), BUT, when i wanted in real life PCs (Windows 7 and 8) Didnt work :(


The "correct" Way:

Code:


 Ret = FindWindowEx(0, 0, "ThunderRT6FormDC","The App caption")
 Timer1Hwnd = FindWindowEx(Ret, 0, "ThunderRT6Timer", nil)
 Call KillTimer(Timer1Hwnd, Timer1Hwnd)


Not so shure about this:

Code:


 Ret = FindWindowEx(0, 0, "ThunderRT6FormDC","The App caption")
 Timer1Hwnd = FindWindowEx(Ret, 0, "ThunderRT6Timer", nil)
 call SendMessage(Timer1Hwnd,WM_DESTROY,0,0)


Both worked on XP, but not on Windows 7 and 8. App executed as admin, and also executed with UAC dissabled :/




Any suggestions?

Thanks

Viewing all articles
Browse latest Browse all 21251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>