Using AutoIT to access windows security dialog - vb.net

I have been using below code for a while to click on all non-web application based popups. ex windows security login popup in case my web app tries to upload a file. All worked fine so far all of sudden the same code stops working and hangs at the popup screen but works if i have break point in my visual studio code.
WinWaitActive("Windows Security",,7)
ControlClick("Windows Security",,"Button2")
I have crossed checked the OK button name nothing has change but the above code refuse to work any more. Using Visual studio 2010 vb.net.

Have you tried using the ImageSearchDLL? It allows you to take a screenshot of a button (or image, link, etc.) and use it as a reference for where to click. For more usage info and to download sample code look here: http://www.autoitscript.com/forum/topic/65748-image-search-library/page-4

Related

Visual Studio 2022 .NET 5+ API stops debugging on image upload

Whenever I start my .NET 5 API in debug mode and I try to upload an image with my browser, not associated in any way with the .NET project, VS 2022 stops the debug process.
For instance if I use https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_accept and upload an image with the input field , the debug process stops.
It also stops whenever I:
Try to log in using FB/Google login button anywhere
Using Brave (browser) have two separate browser profiles open and close one of them
Any ideas on what it might be? Or a way to search out a cause
Okay, I found the solution
In Visual Studio 2022 you need to uncheck: Tools -> Options -> Project and Solutions -> Web Projects: "Stop debugger when browser window is closed".
Apparently Visual studio treated every image upload or every browser that is closed as closing the debug browser window and stopping the process. Weird.

Bixby Developer Studio keeps asking me to login

When I first launched Bixby Developer Studio, it greeted me with a startup screen with a Login button. I clicked on it and it opened a login page in my browser. I logged in that page using my Samsung developer account. The login was successful and a pop-up appeared asking me if I will allow the page to launch Developer Studio (which was already open at that point). I allowed it, but nothing happened; Developer Studio was still showing the startup screen.
I restarted the application but it again showed me that startup screen with the login button. If I click on the login button, it will just take me again to the login page in the browser. And then nothing would happen if I login again.
I'd suggest verifying if your browser is configured to accept cookies. If that information is verified and the problem still exists, there might be additional information in the ide.log file that can provide more insight
To get that information, follow these steps:
Note the time when you begin the next steps.
Go through the login process until you hit the point of failure.
From the IDE menu, click on Help -> Create Diagnostics Report. This
will popup a dialog that will point you to the location of the
diagnostics report, by default this location is
C:\Users\'User'\bixby-workspace\
Unzip the diagnostics report and look at the ide.log file for any
errors at the time of login.
Feel free to post the errors here or if you prefer, you can open a ticket with Bixby Support too.
There are a couple of points you could work on here -
In this case, I suggest you to keep the browser open in the background while clicking on the login button. I was facing the same issue and somehow it worked for me like this. This has been an issue on a Windows machine. On a Mac this problem is not faced till now.
You could restart the Bixby studio itself for logging in again.
Also, I suggest removing the browser cookies as told by shahnawaz above.
Do let us know if this still persists !
Thank you all for your suggestions. For some reason, it just started working right after I received dozens of Windows updates (it's been a few days since I logged in to my Windows account as I have been using Linux; I rarely use my Windows account now and I wish Bixby Studio was available in Linux too). So, I actually haven't tried any of your suggestions yet. Thanks again, anyways!

I Have A Tabbed Web Browser In VB And I Want To Allow New Tabs To Open In My Browser Instead of IE

I am designing the 8th update to my tabbed vb web browser (found at swordfish.savershot.net)in VB Express 08 and I'm having trouble with something. Whenever a webpage wants to open a link in a new tab (aka: Google Drive New Document), Internet Explorer turns on and runs the tab through them. I understand how it happens, because VB.NET by default uses IE as their Web Browsing core. However, I do not like it and I would love to be able to set those links to either open in a new tab in my browser or a new window in my browser. I have found a way to cancel the operation altogether but that's not very user friendly and I'd love to get my browser to a level where I can actually use it comfortably without annoying issues occurring. Thanks for the help.

Dim NewBarcode As New Barcode()

In a class that I have in my web site I'm Importing
Imports IDAutomation.Windows.Forms.LinearBarCode
Imports IDAutomation.Windows.Forms
Also in the code I'm using
Dim NewBarcode As New Barcode()
That Line works fine when I'm running the site in debug mode in my PC localhost:3552
Finaly I'm uploading the code (the all site code) in my ISP Server, when program comes to this line
Dim NewBarcode As New Barcode()
It throws me an error with the following text.
Showing a modal dialogbox or form when the application is not
running in UserInterface mode is not valid. Specify The
ServiceNotification or DefaultDeskTopOnly style to Display a
notification from a service application.
I searcher the Internet about that; but the issue I found was mention only for a messagebox. A control which I don't have it; and I'm not using it.
I suspect that the issue is coming from the
IDAutomation.Windows.Forms
But I don't have any solution for this...
Is there anybody to know how to solve this issue?
The BarCode component you are using is made for winforms, rather than webforms, and will try to show the barcode dialog on the web server, not in the user's browser. It works while testing on your computer because the web server and the web browser are the same machine. When you try to move that code to a real web server, especially one using Windows Server Core (which has no gui), this is the result.

How can i manage download and print in visual basic 10 webkit browser?

I created a webkit webbrowser in visual studio 10(visual basic) for running a specific web app . The issues started when am trying to print a webpage by clicking a link in the website. when clicking on the link i want show the default printer dialoge or printer preview dialoge of that document. And the second problem is i want to add a download manager for my browser.
please help me to overcome this problem. can anyone send the source code for this or a demo projct in visual basic 10.
thanks in advance