| View previous topic :: View next topic |
| Author |
Message |
harry Contributor


Joined: 01 May 2003 Posts: 61
|
Posted: Sun Sep 30, 2007 12:04 am Post subject: put info in a edit box w/vds4.5 |
|
|
hi guys,
i know these have asked befor
but i want to put some info in a edit box
in the "shoutcast source" window if you know the program
window spy comes up with the info
%65878 ## 32770 "shoutcast source"
and the spot to put info
%65996 #edit
what is the best way, window send or dde?
i tried dde but get 'invalid when no window' error
maybe a quick example?
tx |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Sep 30, 2007 12:27 am Post subject: |
|
|
Example::
dialog set,edit,@wintext(%shoutcast_window_handle) _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
harry Contributor


Joined: 01 May 2003 Posts: 61
|
Posted: Sun Sep 30, 2007 1:18 am Post subject: |
|
|
but... maybe i didn't explain to good
the info goes into a editbox in the shoutcast program
not a vds window
i thought "dialog set, edit " works only with vds?  |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Sep 30, 2007 5:27 am Post subject: |
|
|
You are correct. I misunderstood your question.
Example:
%%text = This is some text
window settext,%%shoutcast_edit,%%text _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
harry Contributor


Joined: 01 May 2003 Posts: 61
|
Posted: Mon Oct 01, 2007 12:26 am Post subject: |
|
|
there are no constant window_ids (except window title)
with 4 tabs with 4-6 edit boxes each id changes .
i tried window acuate & posititon and got the cordnates of the edit
but if a window( in this case it was the vds coding window)
is on top it would get the info .
this has to be bullit proof ,any suggestions? |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Mon Oct 01, 2007 12:40 am Post subject: |
|
|
Always check for the window ID for the ShoutCast window when you
need or want to set the contents of the editbox. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Mon Oct 01, 2007 1:25 am Post subject: |
|
|
I dont know if you could parse @TABs and then WindowSpy the ladder to find class names or Identifiers.
May help:
http://www.vdsworld.com/forum/viewtopic.php?t=4028&highlight=class
I seen a good winSPY program someone wrote here, but accidently clicked the X and cant find the page now  |
|
| Back to top |
|
 |
harry Contributor


Joined: 01 May 2003 Posts: 61
|
Posted: Mon Oct 01, 2007 11:34 pm Post subject: |
|
|
looks like i might get where i want to go with the bit of code
you posted
but there is not a lot of documation on @window()
CHILD|OWNER|FIRST|LAST|PREV|NEXT
i understand child & owner , what all does FIRST|LAST|PREV|NEXT
really do ?
and how do i know to step in one more layer and read all elements |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
|
| Back to top |
|
 |
harry Contributor


Joined: 01 May 2003 Posts: 61
|
Posted: Tue Oct 02, 2007 4:19 pm Post subject: |
|
|
Thanks Dave
i was using windowspy
to help me see what i was calling with @widow()
but your explanation sure helped
the 4.5 version of window spy is kind of
crummy it doesn't display the window ids in a nice order
it was a big help ot use vds 5's window spy |
|
| Back to top |
|
 |
|