Search found 86 matches

by stmdbe2019
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?

Image
by stmdbe2019
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 ...
by stmdbe2019
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 ...
by stmdbe2019
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:

Image

WORKED (method @firace 100% stable):

Image
by stmdbe2019
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 ...
by stmdbe2019
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 ...
by stmdbe2019
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?
by stmdbe2019
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.
by stmdbe2019
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 ...
by stmdbe2019
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 ...
by stmdbe2019
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 ...
by stmdbe2019
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 ...
by stmdbe2019
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 ...
by stmdbe2019
Fri May 25, 2018 11:32 am
Forum: Coding Questions
Topic: Barcode read?
Replies: 9
Views: 1812

Re: Barcode read?

it Works!

Image
by stmdbe2019
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

Image
Image