
Search found 86 matches
- Wed Oct 16, 2019 6:35 pm
- Forum: Coding Questions
- Topic: Why the Download fails from one PC but not from my other PC'
- Replies: 10
- Views: 2812
Re: Why the Download fails from one PC but not from my other
@NicTheQuick: On Windows 10 Pro. See the red lines those checkboxes on remove, the PureBasic Method works only. Please try to dig into it and share, what is the solution? so that it works without those default changes?


- Mon Oct 14, 2019 11:23 pm
- Forum: Coding Questions
- Topic: Why the Download fails from one PC but not from my other PC'
- Replies: 10
- Views: 2812
Re: Why the Download fails from one PC but not from my other
Dear PureBasic Experts,
Only this following settings allowed me to make my code work:
https://i.imgur.com/MoUjAMX.png
InitNetwork()
If ReceiveHTTPFile("https://myhttps.example.com/getjpeg?id=1","C:\exe\1212.jpg")
PrintN (" #### DOWNLOAD >>>> : " )
Else
PrintN (" #### FAIL FAIL FAIL ...
Only this following settings allowed me to make my code work:
https://i.imgur.com/MoUjAMX.png
InitNetwork()
If ReceiveHTTPFile("https://myhttps.example.com/getjpeg?id=1","C:\exe\1212.jpg")
PrintN (" #### DOWNLOAD >>>> : " )
Else
PrintN (" #### FAIL FAIL FAIL ...
- Mon Oct 14, 2019 3:49 am
- Forum: Coding Questions
- Topic: Why the Download fails from one PC but not from my other PC'
- Replies: 10
- Views: 2812
Why the Download fails from one PC but not from my other PC'
Why the Download fails from one PC but not from my other PC's?
InitNetwork()
If ReceiveHTTPFile("https://myhttps.example.com/getjpeg?id=1","C:\exe\1212.jpg")
PrintN (" #### DOWNLOAD >>>> : " )
Else
PrintN (" #### FAIL FAIL FAIL ---- DOWNLOAD " )
EndIf
The file is a simple JPG file, which ...
InitNetwork()
If ReceiveHTTPFile("https://myhttps.example.com/getjpeg?id=1","C:\exe\1212.jpg")
PrintN (" #### DOWNLOAD >>>> : " )
Else
PrintN (" #### FAIL FAIL FAIL ---- DOWNLOAD " )
EndIf
The file is a simple JPG file, which ...
- Tue Aug 20, 2019 4:14 pm
- Forum: Coding Questions
- Topic: How to submit the command with RunProgram?
- Replies: 15
- Views: 3941
Re: How to submit the command with RunProgram?
FAILED:

WORKED (method @firace 100% stable):


WORKED (method @firace 100% stable):

- Tue Aug 20, 2019 1:40 pm
- Forum: Coding Questions
- Topic: How to submit the command with RunProgram?
- Replies: 15
- Views: 3941
Re: How to submit the command with RunProgram?
Not working. Tried both.
Compiler = RunProgram("cmd", "/c ipconfig /all ...
or
Compiler = RunProgram("ipconfig.exe"," /all | findstr /IR " + #DQUOTE$ + "Physical" + #DQUOTE$,"", #PB_Program_Open | #PB_Program_Read)
Compiler = RunProgram("ipconfig.exe"," /all | findstr /IR ''Physical''","", #PB ...
Compiler = RunProgram("cmd", "/c ipconfig /all ...
or
Compiler = RunProgram("ipconfig.exe"," /all | findstr /IR " + #DQUOTE$ + "Physical" + #DQUOTE$,"", #PB_Program_Open | #PB_Program_Read)
Compiler = RunProgram("ipconfig.exe"," /all | findstr /IR ''Physical''","", #PB ...
- Tue Aug 20, 2019 1:20 pm
- Forum: Coding Questions
- Topic: How to submit the command with RunProgram?
- Replies: 15
- Views: 3941
How to submit the command with RunProgram?
How to submit the command: ipconfig /all | findstr /IR "ipv4 ethernet adapter" | findstr /IRV "description tunnel vpn dial bluetooth [2-9]:$" | findstr /LV "*"
Compiler = RunProgram("ipconfig /all | findstr /IR ''Physical''", "", "", #PB_Program_Open | #PB_Program_Read)
Output$ = ""
If Compiler ...
Compiler = RunProgram("ipconfig /all | findstr /IR ''Physical''", "", "", #PB_Program_Open | #PB_Program_Read)
Output$ = ""
If Compiler ...
- Mon Dec 03, 2018 10:59 am
- Forum: Coding Questions
- Topic: Barcode to print?
- Replies: 4
- Views: 1214
Barcode to print?
I tried to download the library but unavailable: viewtopic.php?f=14&t=20597&start=15
How do you print barcode for printing?
How do you print barcode for printing?
- Wed Oct 17, 2018 8:54 am
- Forum: Coding Questions
- Topic: Why the image is not showing on the GUI?
- Replies: 2
- Views: 919
Re: Why the image is not showing on the GUI?
Thank you. It worked.
- Wed Oct 17, 2018 8:53 am
- Forum: Coding Questions
- Topic: How to print logo (png, jpg)?
- Replies: 2
- Views: 1018
Re: How to print logo (png, jpg)?
Thanks. Following way it works, to print logo on sticker.
UsePNGImageDecoder()
UseJPEGImageDecoder()
UseGIFImageDecoder()
Procedure AlignText(X,YAlign,Text.s,Font,RGB=-1,BackRGB=-1)
; ;Without RGB Param or RGB=-1, keeps previous RGB. Default=#Black
; ;Without BackRGB Param or BackRGB=-1, keeps ...
UsePNGImageDecoder()
UseJPEGImageDecoder()
UseGIFImageDecoder()
Procedure AlignText(X,YAlign,Text.s,Font,RGB=-1,BackRGB=-1)
; ;Without RGB Param or RGB=-1, keeps previous RGB. Default=#Black
; ;Without BackRGB Param or BackRGB=-1, keeps ...
- Wed Oct 17, 2018 7:42 am
- Forum: Coding Questions
- Topic: Why the image is not showing on the GUI?
- Replies: 2
- Views: 919
Why the image is not showing on the GUI?
Why the image is not showing?
;UsePNGImageDecoder()
;UseJPEGImageDecoder()
If FileSize("fcom.jpg")= -1
InitNetwork()
ReceiveHTTPFile("http://www.idlearts.com/images/legion.jpg","fcom.jpg")
EndIf
If OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window ...
;UsePNGImageDecoder()
;UseJPEGImageDecoder()
If FileSize("fcom.jpg")= -1
InitNetwork()
ReceiveHTTPFile("http://www.idlearts.com/images/legion.jpg","fcom.jpg")
EndIf
If OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window ...
- Thu Oct 11, 2018 9:20 am
- Forum: Coding Questions
- Topic: How to print logo (png, jpg)?
- Replies: 2
- Views: 1018
How to print logo (png, jpg)?
How to print logo (png, jpg) ?
With following code i am only able to print text in the label printer, where i need to add logo on the sticker. Any idea how it is possible?
ElseIf FindString(commands$, "meeting:", 0)
main_command$ = ReplaceString(commands$, "meeting:", "")
If Not main_command ...
With following code i am only able to print text in the label printer, where i need to add logo on the sticker. Any idea how it is possible?
ElseIf FindString(commands$, "meeting:", 0)
main_command$ = ReplaceString(commands$, "meeting:", "")
If Not main_command ...
- Tue Jul 17, 2018 9:26 am
- Forum: Coding Questions
- Topic: How to code SAML 2.0 in PureBasic?
- Replies: 0
- Views: 940
How to code SAML 2.0 in PureBasic?
How to write this code in PureBasic? example: https://samlify.js.org/#/
const saml = require('samlify');
// configure a service provider
const sp = saml.ServiceProvider({
metadata: fs.readFileSync('./metadata_sp.xml')
});
// configure the corresponding identity provider
const idp = saml ...
const saml = require('samlify');
// configure a service provider
const sp = saml.ServiceProvider({
metadata: fs.readFileSync('./metadata_sp.xml')
});
// configure the corresponding identity provider
const idp = saml ...
- Tue Jun 05, 2018 1:01 pm
- Forum: Coding Questions
- Topic: Disable windows update using PureBasic?
- Replies: 4
- Views: 1252
Disable windows update using PureBasic?
How to do the same thing in PureBasic for Windows 10 home/pro?
strComputer = "." 'could be any computer, not just the local one '
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colServiceList = objWMIService.ExecQuery _
("Select * from Win32_Service where Name ...
strComputer = "." 'could be any computer, not just the local one '
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colServiceList = objWMIService.ExecQuery _
("Select * from Win32_Service where Name ...
- Fri May 25, 2018 11:32 am
- Forum: Coding Questions
- Topic: Barcode read?
- Replies: 9
- Views: 1812
Re: Barcode read?
it Works!


- Fri May 25, 2018 11:25 am
- Forum: Coding Questions
- Topic: Barcode read?
- Replies: 9
- Views: 1812
Re: Barcode read?
@mk-soft:
1. Applied changes
2. But still failing to connect at COM3


1. Applied changes
2. But still failing to connect at COM3

