Search found 149 matches

by rullbandspelare
Tue Sep 18, 2018 10:34 am
Forum: Technical / Scripting
Topic: Digest authentication
Replies: 5
Views: 4443

Digest authentication

Can I do Digest authentication with HTTPRequest> ?
I know Basic authentication is just http://user:pass@host.
But how to do Digest authentication?


Thanks!
by rullbandspelare
Sat Sep 23, 2017 3:39 am
Forum: Technical / Scripting
Topic: Detect if run as Administrator?
Replies: 4
Views: 6061

Re: Detect if run as Administrator?

Thanks.

I was thinking that You could read the RP_ADMIN variable or something like that for that info.

This appears to work

Code: Select all

Let>WLN_NOCRLF=1
WriteLn>c:\windows\system32\drivers\etc\hosts,x,
If>x=0
MessageModal>Administrator
else
MessageModal>User
endif
by rullbandspelare
Fri Sep 22, 2017 7:20 pm
Forum: Technical / Scripting
Topic: Detect if run as Administrator?
Replies: 4
Views: 6061

Detect if run as Administrator?

Hi!

Can I detect if the user has started the compiled .exe as "Run as Administrator"?

If The user does this then some things are different and I must fix that. Like Mapped drive letters and certificates.

Thanks!
by rullbandspelare
Fri May 19, 2017 8:28 am
Forum: General Discussion
Topic: Error including .ico
Replies: 4
Views: 5370

Re: Error including .ico

Hi!
Yes, I am in Dropbox folder.
I tried to compile outside Dropbox. Then there is no error.

So Dropbox makes this error !!?? Strange.

Thanks for the tip!
by rullbandspelare
Fri May 19, 2017 8:21 am
Forum: Technical / Scripting
Topic: Detecting OS language
Replies: 7
Views: 8363

Re: Detecting OS language

Here is my findings:

Use this to get the OS language

RegistryReadKey>HKEY_LOCAL_MACHINE,\system\controlset001\control\nls\language,Installlanguage,TheLanguage
by rullbandspelare
Thu May 18, 2017 7:55 pm
Forum: Technical / Scripting
Topic: Getting handle from windows with same name
Replies: 2
Views: 2818

Getting handle from windows with same name

I have two windows that have exactly the same name when the application starts. But only one of them have the info that I need. This is how I do now to get the two handles for the different windows. Is there a better way to get the handles for the twoTopScan windows running code bellow give me thees...
by rullbandspelare
Wed Apr 26, 2017 8:50 am
Forum: Technical / Scripting
Topic: Detecting OS language
Replies: 7
Views: 8363

Re: Detecting OS language

Hi!
I have V14.2.03
And the result is not as expected:

LibFunc>Kernel32,GetSystemDefaultLangID,nSysLanguage,
Gives
0: NSYSLANGUAGE=16385053 <array>

How can I interpret the OS language from this?
by rullbandspelare
Wed Apr 05, 2017 10:26 am
Forum: General Discussion
Topic: Error including .ico
Replies: 4
Views: 5370

Error including .ico

Hi! When I point the compilation to a .ico file to include I get this error "EndUpdateResource failed" The exe is created but it has standard icon. The .ico file is valid and I have tried the original wish is used by another program. And also saved it with IrfanView and used that with same result. I...
by rullbandspelare
Mon Feb 06, 2017 4:12 pm
Forum: Beginners
Topic: Default value in Dialog Dropdown?
Replies: 3
Views: 4608

Default value in Dialog Dropdown?

Hi! How can i populate and show a default value in a Dialog dropdown? I can set the items in the dropdown. But I like to have one of them preselected so that the user can just press OK if they like to use the default selection ... Let>DropVal=One%CRLF%Two%CRLF%Three SetDialogProperty>Dialog1,MSCombo...
by rullbandspelare
Mon Feb 06, 2017 10:07 am
Forum: Technical / Scripting
Topic: Change text variable to UTF-8
Replies: 3
Views: 3890

Re: Change text variable to UTF-8

Hi again! This works very well. Telnet itself does not understand the encoding. It only sends the 8bit characters. But the recieving system gets confused if it is not UTF-8 encoded characters. So the solution was to replace the ANSI 'å' character with its UTF-8 counterpart = 'ä' like this: StringRe...
by rullbandspelare
Sat Feb 04, 2017 4:29 pm
Forum: Technical / Scripting
Topic: Change text variable to UTF-8
Replies: 3
Views: 3890

Re: Change text variable to UTF-8

Thanks, I have a feeling this can be fixed.. I think that it is possible to exchange the åäö characters in the variable with its utf-8 multi byte equivalent. As explained in this good answer, (Is the MS telnet client binary 8bit?): http://stackoverflow.com/questions/25627795/nettelnet-puts-or-print-...
by rullbandspelare
Fri Feb 03, 2017 11:06 pm
Forum: Technical / Scripting
Topic: Change text variable to UTF-8
Replies: 3
Views: 3890

Change text variable to UTF-8

Hi I need to telnet into a host and send a text string. But it has to be a UTF-8 encoded string. How can this be done ? I do not whant to write to a file first. Is VBscript the way to do it? Like this: Let>M=åäöÅÄÖ%CR% UTF8encode>M,text // command that I like to have TelnetConnect>IP,Port,hTN -wait>...
by rullbandspelare
Fri Dec 11, 2015 9:52 pm
Forum: Technical / Scripting
Topic: Smart card detection
Replies: 0
Views: 5383

Smart card detection

Need help on how to detect when a smart card is inserted to trigger execution of events.

I found this, but I dont know if it will help:
https://msdn.microsoft.com/en-us/librar ... s.85).aspx

Thanks!
by rullbandspelare
Sun Nov 15, 2015 4:58 pm
Forum: General Discussion
Topic: image in dialog
Replies: 4
Views: 7877

Re: image in dialog

It is not clear how i add a image at design time. when i add a image element in the dialog designer there is a field thet say bitmap . it is unclear what to put there. Quote from old post: When adding the image at design time it is stored permanently (the data of the image, not the filename) into th...
by rullbandspelare
Fri Nov 13, 2015 4:31 pm
Forum: General Discussion
Topic: image in dialog
Replies: 4
Views: 7877

image in dialog

Hi
how can I show a image in a dialog.

I am used to the old way
Image=BITMAP_DATA,0,0,897,665

In the "new" Dialog designer it is not clear how to add the image.

Thanks!
Sign up to our newsletter for free automation tips, tricks & discounts