dkl
Full Member
Posts: 234
|
Post by dkl on Feb 6, 2021 19:54:29 GMT -5
Within LB code, is there a way to auto maximise and minimise a running programme. (or perhaps what I mean is close to taskbar/ open to desktop)
What I means is - I run it and then after 2 mins it minimises itself and then 10 minutes later it maximises itself etc. It would act like an auto reminder!
I see that there are commands to do Maximise/Minimise under the run Command, but that's for external programming.
|
|
|
Post by tsh73 on Feb 7, 2021 3:28:46 GMT -5
nomainwin 'BOOL ShowWindow( ' HWND hWnd, ' int nCmdShow '); 'SW_MINIMIZE 6 'SW_RESTORE 9
button #main.btn "click to minimize", [min], UL, 50,50
open "test minimize/restore window" for window as #main #main "trapclose [quit]" hwnd=hwnd(#main) wait
[min] notice "This window will get minimised, restore in 10 sec" timer 10000, [restore] func=6 calldll #user32 ,"ShowWindow", hwnd as long, func as long, ret as long wait
[restore] timer 0 func=9 calldll #user32 ,"ShowWindow", hwnd as long, func as long, ret as long notice "Window restored" wait
[quit] timer 0 close #main end
|
|
dkl
Full Member
Posts: 234
|
Post by dkl on Feb 8, 2021 6:02:48 GMT -5
tsh73 - thank you so much for that. It's a great help. I don't really understand the calldll command, but that will help get me started. I've got to get the hang of them some Day
|
|