Posted: Wed Aug 21, 2002 11:18 am
Restored from previous forum. Originally posted by cor.
PB,
concerning toolbox.
For learning I'am now busy with creating an Autocoder (looks like the
clipwizard of the notetab editor(http://www.notetab.com
How did you find the correct window of Purebasic?
ah, I see whenever a title exists which has PureBasic as active (foreground) you send info to it
I have the following windows open:
Purebasic - "" And a$"Program Manager" ; Ignore "fake" windows and the Desktop.
If IsWindowVisible_(r)=#TRUE And IsWindowEnabled_(r)=#TRUE; We found an open window!
nw=nw+1
wh(nw)=r
wt$(nw)=a$ ; Store its handle/title in variables.
; AddGadgetItem(3,-1,Left(a$,15))
If Left(a$,lentitle)= title ; get part of title to look for
prghandle=r
EndIf
; PrintN("["+Str(r)+"] "+a$) ; Show the handle/title in the console.
EndIf
EndIf
r=GetWindow_(r,#GW_HWNDNEXT) ; Find next window until no more are found.
Until r=0
ProcedureReturn prghandle
EndProcedure
[/code]
Using Windows 98 SE
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
PB,
concerning toolbox.
For learning I'am now busy with creating an Autocoder (looks like the
clipwizard of the notetab editor(http://www.notetab.com
How did you find the correct window of Purebasic?
ah, I see whenever a title exists which has PureBasic as active (foreground) you send info to it
I have the following windows open:
Purebasic - "" And a$"Program Manager" ; Ignore "fake" windows and the Desktop.
If IsWindowVisible_(r)=#TRUE And IsWindowEnabled_(r)=#TRUE; We found an open window!
nw=nw+1
wh(nw)=r
wt$(nw)=a$ ; Store its handle/title in variables.
; AddGadgetItem(3,-1,Left(a$,15))
If Left(a$,lentitle)= title ; get part of title to look for
prghandle=r
EndIf
; PrintN("["+Str(r)+"] "+a$) ; Show the handle/title in the console.
EndIf
EndIf
r=GetWindow_(r,#GW_HWNDNEXT) ; Find next window until no more are found.
Until r=0
ProcedureReturn prghandle
EndProcedure
[/code]
Using Windows 98 SE
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com