How can I grey out/disable a button on an Access form until something has been clicked? - vba

I'm still new to VBA and was wondering how I could grey out a command until another command has run? I'll include a picture below, but basically I want to have step 2 disabled until step 1 is complete (and step 3 disabled until step 2 is complete, etc.). I have steps 1-4 written on the side, but I want to diminish as much confusion and possible slip-ups as possible.
Any help would be much appreciated. Thanks!
Here's the screenshot of my form.

Related

Skip Dialog Boxes using Photoshop script?

I am trying to disable the pop up warning message for one particular action . Basically that action is subtracting the transparency channel of all the layer from one base layer .I have to click enter to move on to the next step even after I automate the batch action . I have no knowledge on coding . Any ideas where I can study/ get help to avoid these pop ups using scripting. Thank you in advance
I tried googling where I can get atleast the code alone to attack to the action .I know without knowing scripting knowledge this would be a mess but I need to atleast get this as I have to do this on daily basis for atleast 100 images .
At the bottom of the Actions Palette there's a tick and icon that looks like a rectangle with a line at the top. Click that off and it'll affect the whole action and switch off any annoying dialogue boxes.
Or have
// Switch off any dialog boxes
displayDialogs = DialogModes.NO; // OFF
at the start of your script.

Combining 3 indicators in pine editor on trading view for conidtional alerts

Some coding experience but really novice. I have 3 different indicators on 1 graph in trading view. I want to set an alert when conditions are met together in all 3 panels. As I understand, to do this I need to first combine all indicators in 1 script and then code alert with conditions in the script. Is this true or is there another way?
If there is easier way: please tell me how :)
If not easier way: How can I separate the indicators in different panels but still keep the code in 1 script?
Maybe there is some way for coding alerts with information from different panels?
I appreciat all help I can get!
Thank you

Google Colab. How to hide the python code for readers

I would like to hide the code of a cell for the readers.
I know that you can use ##title to hide code in a cell.
However, if the reader doble click on the title or right mouse and select show code, he/she will be able to see the code again.
What I need is that nobody will be able to see the code behind. I want that they only were able to run the code and interact with it using the widgets.
Is there any way to do that?
Thank you very much.
Appreciated any insight on this question.

How can i automate my computer?

On windows 10.
I need to automate the repeated process of these steps.
1. Open up an image in GIMP. Scale it to 110%.
2. Export as somefile name(for example input001.jpg).
3. Go to http://deepdreamgenerator.com/ in a browser. click on button, browse to the exported file.
4. Wait for it to generate result, save image as result file (for example dream001.jpg).
then repeat from step 1 with the result file from step 4...but keep increasing the filename number so export it as input002.jpg...
What software would allow me to do this?
the only software i know of that * MIGHT * be able to automate that process is AutoHotKey
You would need to keep the windows which you're automating static (ie. make sure they don't move) and then write keyboard and mouse macros in autohotkey to press the buttons and do the things you want.
I tried AutoHotKey but didn't feel like learning a whole new scripting language so I found something simpler called GhostMouse.
It just has record,play,stop buttons.
after recording and closing out of program it asks if i want to save script. clicked yes gave it a name, and then edited the script file..and copied and pasted as many times as i wanted the script to run (before copying and pasting i deleted the last 3 lines which has to do with clicking the stop button which i didn't want the script to do).
You can also try Sikuli for same. It's an image comparator
http://www.sikuli.org/
Reference :-
http://doc.sikuli.org/tutorials/

why VS2012 Coded UI Test records mouse clicks as points

i was trying to create simple Coded UI Test in VS2012 for a MVC Web App. I recorded my actions and when i say a generated code i saw my mouse clicks were recorded as points (x,y) where i clicked. I was expecting it should pick the clicked element as html element and simulate click on it. something i saw in selenium. Cant we do this king of a thing without selenium ?
i am looking to write a codedUITest with following steps.
Step 1 : Open a Web Browser.
Step 2 : Navigate to something.Com/something/some/2 what ever
Step 3: Find element e.g. Anchor Tag by name and click it.
Step 4: Wait for page to complete the load and verify a certain verbiage appears on the page by looking the inner text of some Span or something.
I was expecting the the Code of Step 1 to 3 should already be there and then I added the Assert statement for Step 4.
AM I MISSING SOMETHING ? Or this kind of stuff is only possible in Selenium.
Coded UI records coordinates within a control, normally the smallest control containing the point clicked. Hence the recorded coordinates are small numbers. The recorder generates code such as
Mouse.Click(uISearchButton, new Point(15, 12));
This can often be replaced with a call of
Mouse.Click(uISearchButton);
The basic reason is that some controls do different things depending on where they are clicked. For example buttons that have little triangles that open menus.
Microsoft have a blog giving more details about these mouse clicks.