3rd party Program focus - excel

thanks for your amazing support!
Now i have again a question. To get access to some raw datas (i'm working in a call center) we using a website to get an CSV/xls file from our SQL Database (the IT Department doesnt allow me to get direct access to the SQL database).
For an automatic update of my sheet i use an shell command to trigger chrome with the right parameters in the link (chrome starts the download).
Everything works fine but, when i trigger Chrome per shell, i have to minimize chrome again (otherwise you can't see the Excel screen). So i can't find an command to minimize external windows so i'm using shell to minimize all, after that i maximize excel again, works great, but after excel has done the updates, it should activate "VLC Media Player", i tried to use AppActivate for that, but its just blikink orange in the taskbar and dont get focus.
Can you help me?
I can share you the code but it's really just the AppActivate() line that interest you :)
Thanks again!
Br
Olvier

NirCmd from NirSoft is what you need.

Related

Is there a way to take control of an open Edge or Chrome browser window using Excel VBA?

I'm attempting to use VBA to transfer data from an Excel sheet to a number of input boxes on a webpage. Due to a couple of considerations specific to this site it would be much, much easier if I could simply log in to the webpage manually then use Selenium (or whatever) to take control of the browser window and execute the data entry tasks. My impression is that this was quite doable with Internet Explorer, but that's been phased out, and it looks like there's not a very robust method for doing this with Google Chrome. Is there a way to do this with Edge?
I managed to get half of the data entered using the AppActivate statement and a series of SendKeys commands - this was with Chrome - but that approach won't work for the rest of it, since AppActivate doesn't seem to really commandeer the browser window in a way that allows Selenium to click buttons etc.
Yes you can use control browser with selenium Basic. You can follow instruction on how to get it working with vba here. https://simpleexcelvba.com/google-chrome-automation-with-selenium-basic/#:~:text=Selenium%20Basic%20is%20a%20Selenium,by%20double%2Dclicking%20on%20it.

Excel power view is not working on my computer

When i try to create a power view report it just generates the following image:
Only after i close and re-open the excel i get the power View tab, but this image is still there and the data i want to visualize is not. Does anyone knows how to fix this issue?
i found only 1 related page on the net but this solution does not make a lot of sense, and anyway it only works with 2 computers:
https://answers.microsoft.com/en-us/msoffice/forum/msoffice_excel-mso_winother-mso_2013_release/excel-powerview-error-image/28564661-ebc1-426c-8f56-e6bb96d14d4a
Any help will be highly appreciated!!
Best regards,
Mihail
For anyone who might need this in the future.
You need to install Silverlight on your computer: https://www.microsoft.com/getsilverlight/Get-Started/Install/Default
If issue is till not fixed, install the enable controls from here: https://gallery.technet.microsoft.com/scriptcenter/Registry-keys-to-reenable-7cd9f723
Now it should work!
Best regards,
Mihail
The same happened to me in Excel from MS Office Professional Plus 2016.
I downloaded the EnableControls pack and executed EnableSilverLight.reg.
Then I was able to click the Power View button and create a "Power View1" tab, but instead of Power View panes I get only that same image.
But then I found, by this (https://answers.microsoft.com/en-us/msoffice/forum/all/powerview-image-error-in-office-365-online/81baa2c5-1c9c-4d36-b424-60ad59696005) answer in Microsoft Community, that I didn't had SilverLight installed.
After installing by Mihail's link (item 1) it worked fine!

How to submit a query with the keyboard in eXist-db?

While working with eXist, once I have written the query, I have to grab the mouse, point the Submit button and click it. I think this is a great lost of time if you have to do it thousands of times. Moreover I'm very used to do it with the keyboard in other programms I use.
Does anybody how to do it? Thanks
If you're using eXist-db's web-based code editor, eXide, you can submit queries using the CTRL+Enter shortcut (or Command+Enter on Mac). It works quite well.

Changes don't get saved in Crystal Reports report

I've started using Crystal Reports recently. Have been able to create a report and mostly done with it. But suddenly I started to lose any change made inside a textbox object. I edit a textbox, save the report and close it. And then I reopen it to see that the change hasn't remained. I restart the Visual Studio and even the machine but nothing helps. I use VS 2012. Has anyone experienced anything like this?
In the report preview see if the checkbox "Save data in the report" is checked. If so, try unckecking this checkbox. It is causing me some trouble to save the report crashing Visual Studio interface.
In fact I found the reason for the problem. This happens when I try to save the changes while the focus is on the edited object, in this case textbox. But if I click somewhere else (in order to lose focus on the edited textbox) before saving, then the problem gets solved. Happy to have found it.
Welcome to the club :)
Crystal Reports can behave very strangely in some cases. For instance, some times when i edit a report file in Windows XP, it crashes the interface and corrupts the file when i save it. The same problem doesn't appear in Windows 7. However other strange things happen in Windows 7 also.
I would recommend you to
Always apply the latest Service Pack available for the Crystal Reports Engine.
Always check if the asterisk sign disappears from the opened report file when you save it (some times it doesn't when you hit save and it does when you hit save all and vice versa).
Always backup your report files once in a while because to recover a corrupted file is a very hard task.
You can try the following to find out what causes the problem
Create a new blank Windows Forms project, add the same report file there and check if it behaves the same.
Create a new blank report file and check if a change in a field behaves the same way after saving it.
Try it on another OS.
Go to Database | Verify Database and make sure the database is up to date.
Also Go to Database | Show SQL Query and reset the query. Now enter in the Selection Formula again and save.
Updating the SQL will replace the Selection Formula.
Good luck,

Non-blocking Dialog box in Applescript

I have to write a small script to deploy a patch for our Application. The patch
will replace a couple of files in the application.I decided to depploy the patch using Applescript. The files to be copied are quite large and it takes some time for the files to be copied. I wanted to know if there is any way I can get a dialog box which doesn't block the execution of the script so that I can display some message like Updating.. etc while the patch is applied and then close the dialog box after wards.
Thanks
Shivaprasad
There's a scripting addition called Akua Sweets (oldy but goody) that has a display progress command. Get it at osaxen.com. it's in the 'most popular' section at the top of the page.
edit
Oh, bugger, that's only for OS9. It was really useful back in the day, I remember using it a lot (of course everything took a lot longer in those days so progress bars were more in demand).
another edit
You got me inspired, there's a couple of scripts I use that need progress bars, so I went looking and found this scripting addition at http://osaxen.com/files/extrasuites1.1.html
and again
here's a basic tutorial for how to do it in interface builder. I think that's probably the right way to do it.
I myself ran into the same problem. Unfortunately applescript doesn't provide an easy way of implementing a progress bar.
I ended up using the stop loop example found here to build an application. This guy has a bunch of applescript studio xcode projects to download and mess around with. It's some really great sample code if you aren't too familiar with applescript studio.

Resources