Here is my snap7 include:
;-TOP
; Kommentar : snap7 include
; Author :
; Second Author :
; Datei : snap7.pbi
; Version : 1.4.2
; Erstellt : 12.10.2013
; Geändert : 28.12.2016
; http://snap7.sourceforge.net ...
Search found 8 matches
- Mon Aug 20, 2018 9:45 pm
- Forum: Coding Questions
- Topic: Snap7 communication library for Siemens PLC
- Replies: 12
- Views: 5852
- Mon Oct 07, 2013 7:26 pm
- Forum: Coding Questions
- Topic: export RTF file > image problem
- Replies: 7
- Views: 3379
Re: export RTF file > image problem
If CreateFile(0, "image.rtf")
WriteStringN(0, "{\rtf1", #PB_UTF8)
WriteStringN(0, "\qc{\*\shppict{\pict{\*\picprop\jpegblip}", #PB_UTF8)
;Bin2Hex image here
For n = 0 To ?imageEnd - ?imageStart - 1
WriteString(0, RSet(Hex(PeekA(?imageStart + n)), 2, "0"), #PB_UTF8)
Next n ...
- Wed Sep 19, 2012 10:05 am
- Forum: Coding Questions
- Topic: Threaded Graphics
- Replies: 1
- Views: 470
Re: Threaded Graphics
you have to use ImageID(imageID0)
Procedure Decode1(null)
Repeat
WaitSemaphore(semaphore1)
; StartDrawing(WindowOutput(1))
; ;StartDrawing(ImageOutput(imageID0))
; Box(0,0,400,400, $0000ff)
; StopDrawing()
StartDrawing(WindowOutput(1))
DrawImage(ImageID(imageID0), 0, 0)
StopDrawing()
ForEver ...
Procedure Decode1(null)
Repeat
WaitSemaphore(semaphore1)
; StartDrawing(WindowOutput(1))
; ;StartDrawing(ImageOutput(imageID0))
; Box(0,0,400,400, $0000ff)
; StopDrawing()
StartDrawing(WindowOutput(1))
DrawImage(ImageID(imageID0), 0, 0)
StopDrawing()
ForEver ...
- Sun Jan 15, 2012 8:51 pm
- Forum: Coding Questions
- Topic: Send data image to WebGadget [Resolved]
- Replies: 21
- Views: 4287
Re: Send data image to WebGadget [Resolved]
hello
With full html:
one red dot
#DQ = Chr(34)
Enumeration
#Form0
#Web0
#Bouton0
EndEnumeration
OpenWindow(#Form0, 216, 0, 397, 340, "New window ( 0 )", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
WebGadget(#Web0, 12, 18, 372, 291, "about:blank")
ButtonGadget ...
With full html:
one red dot
#DQ = Chr(34)
Enumeration
#Form0
#Web0
#Bouton0
EndEnumeration
OpenWindow(#Form0, 216, 0, 397, 340, "New window ( 0 )", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
WebGadget(#Web0, 12, 18, 372, 291, "about:blank")
ButtonGadget ...
- Sun Jan 15, 2012 8:41 pm
- Forum: Coding Questions
- Topic: Send data image to WebGadget [Resolved]
- Replies: 21
- Views: 4287
Re: Send data image to WebGadget [Resolved]
hello
and without #PB_Web_Mozilla ?
and without #PB_Web_Mozilla ?
- Sun Jan 15, 2012 8:33 pm
- Forum: Coding Questions
- Topic: Send data image to WebGadget [Resolved]
- Replies: 21
- Views: 4287
Re: Send data image to WebGadget [Resolved]
Hello
two red dots:
#DQ = Chr(34)
Enumeration
#Form0
#Web0
#Bouton0
EndEnumeration
OpenWindow(#Form0, 216, 0, 397, 340, "New window ( 0 )", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
WebGadget(#Web0, 12, 18, 372, 291, "about:blank")
ButtonGadget(#Bouton0, 104, 315 ...
two red dots:
#DQ = Chr(34)
Enumeration
#Form0
#Web0
#Bouton0
EndEnumeration
OpenWindow(#Form0, 216, 0, 397, 340, "New window ( 0 )", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
WebGadget(#Web0, 12, 18, 372, 291, "about:blank")
ButtonGadget(#Bouton0, 104, 315 ...
- Sat Jan 14, 2012 10:53 am
- Forum: Coding Questions
- Topic: Read the structure of another EXE
- Replies: 8
- Views: 1434
Re: Read the structure of another EXE
The b.s is a pointer, but with a fixed string it works.
Structure Kcc
a.l
b.s{20}
EndStructure
Global Variable.Kcc
Variable\a = 123456
Variable\b = "Hello, I'm KCC"
OpenConsole()
PrintN(Trim(Str(@Variable)))
FlushFileBuffers_(GetStdHandle_(#STD_OUTPUT_HANDLE))
CloseConsole()
Delay(2000 ...
Structure Kcc
a.l
b.s{20}
EndStructure
Global Variable.Kcc
Variable\a = 123456
Variable\b = "Hello, I'm KCC"
OpenConsole()
PrintN(Trim(Str(@Variable)))
FlushFileBuffers_(GetStdHandle_(#STD_OUTPUT_HANDLE))
CloseConsole()
Delay(2000 ...
- Sun Jun 06, 2010 10:55 am
- Forum: Coding Questions
- Topic: Structure problem
- Replies: 4
- Views: 1339
Re: Structure problem
Structure test
name.s{10}
moreinfo.s{10}
id.w
EndStructure
tests.test\name = "Aurthor"
tests.test\moreinfo = "Dent"
tests.test\id = 42
test2.test
Debug SizeOf(test)
If CreateFile(0, "info.txt")
WriteData(0, @tests, SizeOf(test)) ; problem is determining the proper size of @tests ...