Share your advanced knowledge/code with the community.
User avatar
Peter
 
Posts: 657
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080

Quick-Tipp: Determine the window number of the debug window

by Peter Sun Nov 10, 2019 4:02 pm

Hello,

with this little code snippet you are able to determine the window number of the debug window:

Code: Select all
Define SpiderDebugWindow
! v_spiderdebugwindow = spider.debug.window;

With this windows number, you can control the debug window with the native window commands:

Code: Select all
; change the window-title
SetWindowTitle(SpiderDebugWindow, "Debug-Output")

; change the position of the debug-window (bottom/right instead of top/right):
ResizeWindow(SpiderDebugWindow, #PB_Ignore, DesktopHeight(0) - WindowHeight(SpiderDebugWindow, #PB_Window_FrameCoordinate), #PB_Ignore, #PB_Ignore)

; etc...


Greetings ... Peter
hoerbie
 
Posts: 32
Joined: Sun Mar 17, 2019 5:51 pm

Re: Quick-Tipp: Determine the window number of the debug win

by hoerbie Sun Nov 10, 2019 6:00 pm

Exactly the right tip at the right time, THANKS!
Charlie
 
Posts: 15
Joined: Thu Jan 10, 2019 1:54 am
Location: New Brunswick, Canada

Re: Quick-Tipp: Determine the window number of the debug win

by Charlie Tue Nov 12, 2019 12:15 am

Awesome tip! Thanks !
Return to Tricks 'n' Tips

Who is online

Users browsing this forum: No registered users and 0 guests