Code: Select all
Debug FindWindowEx_(FindWindowEx_(0, 0, 0, "PureBasic 5.30 (x64)"), 0, "Scintilla", 0)
; Result: 0
Code: Select all
Debug FindWindowEx_(FindWindowEx_(0, 0, 0, "PureBasic 5.22 LTS (x64)"), 0, "Scintilla", 0)
; Result: 1510896
Code: Select all
Debug FindWindowEx_(FindWindowEx_(0, 0, 0, "PureBasic 5.30 (x64)"), 0, "Scintilla", 0)
; Result: 0
Code: Select all
Debug FindWindowEx_(FindWindowEx_(0, 0, 0, "PureBasic 5.22 LTS (x64)"), 0, "Scintilla", 0)
; Result: 1510896
Code: Select all
i = FindWindowEx_(0, 0, 0, "PureBasic 5.30 (x64)")
Debug Hex(i)
i = FindWindowEx_(i, 0, "PureSplitter", 0)
Debug Hex(i)
i = FindWindowEx_(i, 0, "PureContainer", 0)
Debug Hex(i)
i = FindWindowEx_(i, 0, "Scintilla", 0)
Debug Hex(i)
It seems the scintilla window was a direct child before, and now for some reason it isn't.STARGÅTE wrote: What was changed with PB 5.30 ?
Code: Select all
i = FindWindowEx_(0, 0, 0, "PureBasic 5.30 (x64)")
Debug Hex(i)
i = FindWindowEx_(i, 0, "PureSplitter", 0)
Debug Hex(i)
i = FindWindowEx_(i, 0, "PureSplitter", 0)
Debug Hex(i)
i = FindWindowEx_(i, 0, "PureContainer", 0)
Debug Hex(i)
i = FindWindowEx_(i, 0, "Scintilla", 0)
Debug Hex(i)
Code: Select all
SetClipboardText(Message)
HandleIDESci=Val(GetEnvironmentVariable("PB_TOOL_Scintilla"))
SendMessage_(HandleIDESci, #WM_PASTE,0,0)
It destroys the user's clipboard. The clipboard is controlled by the user, just keep that in mind.Bisonte wrote:if you want only paste text... this one from falsam is nice (simple and effective) :
Code: Select all
SetClipboardText(Message) HandleIDESci=Val(GetEnvironmentVariable("PB_TOOL_Scintilla")) SendMessage_(HandleIDESci, #WM_PASTE,0,0)
sssssssssssssst.Danilo wrote:It destroys the user's clipboard. The clipboard is controlled by the user, just keep that in mind.
Code: Select all
OldMessage.s = GetClipBoardText()
SetClipboardText(Message)
HandleIDESci=Val(GetEnvironmentVariable("PB_TOOL_Scintilla"))
SendMessage_(HandleIDESci, #WM_PASTE,0,0)
SetClipBoardText(OldMessage)
I just wanted to remind you that the user controls the clipboard, and applications onlyBisonte wrote:sssssssssssssst.
Code: Select all
OldMessage.s = GetClipBoardText() SetClipboardText(Message) HandleIDESci=Val(GetEnvironmentVariable("PB_TOOL_Scintilla")) SendMessage_(HandleIDESci, #WM_PASTE,0,0) SetClipBoardText(OldMessage)