Search found 13 matches

by Christophe_fr
Wed May 08, 2019 4:57 pm
Forum: Tricks 'n' Tips
Topic: OpenWindowedScreen resizable
Replies: 5
Views: 1900

Re: OpenWindowedScreen resizable

can be a screen refresh problem
the same but with a thread
#MainWin = 0
#ScreenWin = 1
Global ScreenW = 2048
Global ScreenH = 2048
Global Thread
Global ThreadSemaphore = CreateSemaphore()

InitSprite()

Procedure UpdateScreen()
WaitSemaphore(ThreadSemaphore)
ResizeGadget(0, #PB_Ignore, #PB_Ignore ...
by Christophe_fr
Wed May 08, 2019 11:59 am
Forum: Tricks 'n' Tips
Topic: OpenWindowedScreen resizable
Replies: 5
Views: 1900

Re: OpenWindowedScreen resizable

Without blocking the animation when resizing or moving
#MainWin = 0
#ScreenWin = 1
Global ScreenW = 2048
Global ScreenH = 2048

InitSprite()

Procedure UpdateScreen()
ResizeGadget(0, #PB_Ignore, #PB_Ignore, WindowWidth(#MainWin), WindowHeight(#MainWin))
EndProcedure

Procedure Scrolling()
Static ...
by Christophe_fr
Wed May 08, 2019 9:20 am
Forum: Tricks 'n' Tips
Topic: OpenWindowedScreen resizable
Replies: 5
Views: 1900

OpenWindowedScreen resizable

thanks to Ollivier from the French forum for the help
OpenWindowedScreen( GadgetID(0) , 0, 0, ScreenW, ScreenH)
you can open a screen on a gadget
#MainWin = 0
#ScreenWin = 1
ScreenW = 2048
ScreenH = 2048
InitSprite()

If OpenWindow(#MainWin, 0, 0, 400, 300, Str(ScreenW) + " x " + Str(ScreenH ...
by Christophe_fr
Thu Mar 14, 2019 12:42 pm
Forum: Coding Questions
Topic: Blacklist|Whitelist URL with Windivert
Replies: 2
Views: 1669

Re: Blacklist|Whitelist URL with Windivert

if you can use it....
small utility for blacklisting url
to be compiled in administrator mode

https://i.postimg.cc/DZ4VNZKy/Capture2.png

https://i.postimg.cc/FzrpwWMF/Capture.png
OpenWindow(0,0,0,600,800,"BlackList", #PB_Window_SystemMenu | #PB_Window_SystemMenu)
ListIconGadget(0,10,10,580 ...
by Christophe_fr
Wed Feb 20, 2019 12:31 pm
Forum: Coding Questions
Topic: [Solved] how to retrieve the HTML code from IE
Replies: 10
Views: 2514

Re: how to retrieve the HTML code from IE

That's exactly what I wanted ! mk-soft you are the best :D
by Christophe_fr
Wed Feb 20, 2019 11:04 am
Forum: Coding Questions
Topic: [Solved] how to retrieve the HTML code from IE
Replies: 10
Views: 2514

Re: how to retrieve the HTML code from IE

hello mk-soft,
it worked once but without giving me the code and since I have this error
ActiveScriptSite - OnScriptError
Line: 8 Column: 3

ActiveScriptSite - AddRef() : Refcount 1 > 2
ActiveScriptSite - QueryInterface() : IActiveScriptSiteInterruptPoll -> No Interface
ActiveScriptSite - AddRef ...
by Christophe_fr
Tue Feb 19, 2019 7:12 pm
Forum: Coding Questions
Topic: [Solved] how to retrieve the HTML code from IE
Replies: 10
Views: 2514

Re: how to retrieve the HTML code from IE

Thank you mk-soft, but what I want is to have the html code when Internet Explorer is already launched. What I want is to retrieve information on a web page for my job (name, delivery date ...)

sorry for my english, I'm french
by Christophe_fr
Tue Feb 19, 2019 4:08 pm
Forum: Coding Questions
Topic: [Solved] how to retrieve the HTML code from IE
Replies: 10
Views: 2514

Re: how to retrieve the HTML code from IE

FindWindow_ is an API that search for an opened window, so if you remove it, your program will never search for window :wink:
if I commented the two lines is to show that my program works when it opens itself Internet Explorer.
But when I search the window with FindWindow_ it does not work
by Christophe_fr
Tue Feb 19, 2019 12:40 pm
Forum: Coding Questions
Topic: [Solved] how to retrieve the HTML code from IE
Replies: 10
Views: 2514

Re: how to retrieve the HTML code from IE

the two commented lines, it's my approach to use Internet Explorer already launched

link to COMatePlus
https://www.rsbasic.de/backupprogramme/COMatePLUS.zip
by Christophe_fr
Tue Feb 19, 2019 11:38 am
Forum: Coding Questions
Topic: [Solved] how to retrieve the HTML code from IE
Replies: 10
Views: 2514

[Solved] how to retrieve the HTML code from IE

Hello, I can get the html code of Internet Explorer when it is opened by the program. but how to do it when Internet Explorer is already open?
thank you


;***COMate*** COM automation through iDispatch.
;*===========
;*
;*Web gadget demo. (Advanced users!) Based upon code by hm.
;*
;*This demo not ...
by Christophe_fr
Tue Feb 05, 2019 7:57 pm
Forum: Coding Questions
Topic: Square round the StringGadget
Replies: 2
Views: 955

Re: Square round the StringGadget

can be like that


;Purebasic: 5.11
;OS: Windows 10, x64

EnableExplicit

Enumeration
#Main
#Main_S1:#Main_S2
#Main_B1:#Main_B2:#Main_B3
EndEnumeration

Global.i Event

Global.i Backcolor = 16711680
Global.i Fontcolor = 16777215

Global FontID0 = LoadFont(0, "Verdana", 8, #PB_Font_Bold | #PB ...
by Christophe_fr
Fri Dec 14, 2018 11:43 am
Forum: Coding Questions
Topic: Sequential file problem
Replies: 15
Views: 3500

Re: Sequential file problem

Hi C87, I'm sorry that it does not work for you. I redid the test, for me it works :?

img 1: https://ibb.co/fdgcNhY
img 2: https://ibb.co/RHRPzpL

Excuse for my english. Translated from French into English by Google Translation
by Christophe_fr
Thu Dec 13, 2018 10:10 pm
Forum: Coding Questions
Topic: Sequential file problem
Replies: 15
Views: 3500

Re: Sequential file problem

It's normal that you only read the first 2 lines, since you are only 2 readstring. Try this

; *****************************************************************************
;*** Attempt to locate specific records in what I think is a sequential file
;*** but doesn't appear to be ...