Posts: 1,769
Threads: 410
Joined: Feb 2003
ok, ive got this vendor problem at home. my isp decides that i want to see their crappy excuse for a yahoo-front-page-knock-off "portal" however, i do not. so, what i need to do is this
trgger= when a certian window is maximized
min that window.
how can i do this?
thanks.
Posts: 12,140
Threads: 142
Joined: Dec 2002
Create new function and assign "created window" trigger. The function will run until the window is destroyed, and minimize it when maximized.
int h=TriggerWindow
rep
,if(!IsWindow(h)) ret
,if(max(h))
,,;wait until really maxed
,,RECT r; GetWindowRect h &r
,,if(r.right-r.left<ScreenWidth) 0.1; continue
,,;restore at first
,,res h
,,;then minimize
,,min h
,,1
,0.5
Posts: 1,769
Threads: 410
Joined: Feb 2003
works great!
the "restore then minimize" line was truely inspired!
great idea!
thanks!