Author |
Topic: Necessity to use mouse to activate program. (Read 873 times) |
|
ady
Junior Member
member is offline


Posts: 55
|
 |
Re: Necessity to use mouse to activate program.
« Reply #2 on: Jul 11th, 2015, 08:50am » |
|
Cycle with the tab button?
Alt-Esc?
|
|
Logged
|
|
|
|
rtr2
Guest
|
 |
Re: Necessity to use mouse to activate program.
« Reply #3 on: Jul 11th, 2015, 09:55am » |
|
on Jul 11th, 2015, 08:50am, ady wrote:| Cycle with the tab button? Alt-Esc? |
|
Certainly worth trying as a workaround, but obviously not a 'solution' as such since it requires operator action that should not be needed.
Some more things for Bob to try, as much as a diagnostic aid than a workaround (clearly they should not be necessary):
1. Code: SYS "SetForegroundWindow", @hwnd% 2. Code: SYS "BringWindowToTop", @hwnd% If neither of those work try these more complicated variants:
3. Code: SYS "GetWindowThreadProcessId", @hwnd%, 0 TO W%
SYS "GetCurrentThreadId" TO O%
SYS "AttachThreadInput", O%, W%, TRUE
SYS "SetForegroundWindow", @hwnd%
SYS "AttachThreadInput", O%, W%, FALSE 4. Code: SYS "GetWindowThreadProcessId", @hwnd%, 0 TO W%
SYS "GetCurrentThreadId" TO O%
SYS "AttachThreadInput", O%, W%, TRUE
SYS "BringWindowToTop", @hwnd%
SYS "AttachThreadInput", O%, W%, FALSE Richard.
|
|
Logged
|
|
|
|
TheFamousCash
New Member
member is offline


Posts: 16
|
 |
Re: Necessity to use mouse to activate program.
« Reply #4 on: Jul 11th, 2015, 12:49pm » |
|
Many thanks for the responses. I will try implementing the suggestions. The program is used from 7.45am to 2.30am seven days a week and it is difficult to gain access for experiments when the owner is more than happy as it stands and reluctant to permit interruption. I will advise of progress. Thanks, Bob.
|
|
Logged
|
|
|
|
rtr2
Guest
|
 |
Re: Necessity to use mouse to activate program.
« Reply #5 on: Jul 11th, 2015, 1:59pm » |
|
on Jul 11th, 2015, 12:49pm, TheFamousCash wrote:| The program is used from 7.45am to 2.30am seven days a week |
|
If it's as hot there as it is here (26.2 C at the moment and rising) you might appreciate some night shifts.... 
Richard.
|
|
Logged
|
|
|
|
TheFamousCash
New Member
member is offline


Posts: 16
|
 |
Re: Necessity to use mouse to activate program.
« Reply #6 on: Jul 11th, 2015, 2:12pm » |
|
Richard, since my days of running casino when I retired in 1981, I always go to bed around 5 or 6 am. . . No problem for me. I program using your fantastic BB4W from midnight each night. I never get bored experimenting. Done it for years since I used to program BBC Master Series. Regards, Bob.
|
|
Logged
|
|
|
|
|