How can I use AutoHotkay to click "next page" and take a screenshot and repeat until I terminate the process? - loops

I want AHK to do the following:
1. Click in a specific location on the screen
2. Take a snippet of a pre-selected area
3. Save the snippet
4. Repeat the process until I press the "S" key (stop)?

You can use the MouseMove command to move it then send a click. After that you would just make it press the hotkeys for the screenshot and use the MouseClickDrag to form the rectangle. Then you make the script do ctrl+s to save it, and loop that. That's what I would've done. If you want, I could try to make a script for template.

Related

VSC auto completion starts at wrong position

I somehow changed a setting and not sure how to revert it.
usuall when i use emmet abbreviation i type
"back" and it suggests background-color , i click enter and it will auto complete the text and i can start writing the color.
but now every time i click enter my cursor position is in the middle of background-color. e.g
example of wrong cursor position
so i will need click 3 times right and than i can write what i want.
anyone knows what settings this could be?

How to handle mouse over click on chart area in selenium java

If you go mouse over on above area then 3m,6m,1y and all are visible. If you go mouse down then it disable. How to handle this type of case in selenium.
As per my understanding you will have to use Action classes's mouse hover to get the pop up for months.
....Use developer tool to highlight the chart on which you need to hover the mouse, now hover the mouse to get those month's pop ups. and see in developer tools for changes in dom so that you can get their xpaths. Make sure you use "driver.click" to click on months. you can try xpath= //*[.='3m']. Just try to find out exact value of * using developer tool.
Thanks for quick response.
I have tried with your solution but the xpath is not working and give the nosuchelementexception. Because in the HTML Dom there are 2 iframe. Inside child frame we goto mouse over then it's visible . We mouse down then it is disapper. So my question is how to pause the mouse over section at certain time period so that all text are like 3m,6m,YTD,1y,All are visible and click one by one
In the DOm first div tag then the sequence order like
,, then 3m is displayed .
Could you please provide me the alternative solution?

Is this a bug? Using a touch input (With mouse input on) on a button but nothing is done

I am using a button to transit to another layer. But I can't transit to that layer. I am using construct 3.
When I click on that button
onTouched an object (the object is that button) -> Go to layer (Layer02)
But nothing happens. I am using Touch but I have set the mouse input on. I used other object to try such as text field, and it works. Everything works except when I used button.
Is it a bug? Or I am not doing it right. The variables you see in the picture are for debugging purposes.
These are my events:
I think you refer to "transit to another layout" (not layer) 😉
On your screenshot I see all your events are OK. If you add Touch doesn't need add Mouse (you can use the mouse to simulate touch on browser).
I create a new project with the same events and works correctly, I attach a .c3p so you can try it. 😌
https://www.dropbox.com/s/7x1r27rs5a6k5d0/button_layout.c3p?dl=0

Powershell: How to open a file from a separate window

I'm using PowerShell for about a week now. I am able to open a specific URL and fill in my username and password automatically. I can also navigate to a certain page where multiple files can be found to download.
I use the following command to select a certain file to download:
$ie.navigate2('http://www.example.com/resource.aspx?ResourceID=GetDocStoreFile&EntryID=1234')
What happens next is that a second window will open, named "file download". There are three buttons: open, save and close.
I don't want to press the "open" button manually, but would like the script to do that for me and then goes back to the original window to select another file. Any suggestions?
If you use a download URL, I don't think you can interact directly with IE using the COM object, because there's no document. Once the dialog box opens, all of the object's properties become null. You can use the method I posted here: How to perform keystroke inside powershell? AppActivate will work to activate a dialog box by title.
The % represents the the ALT key, so if the underlined letter of the button you want to click is O, you'd invoke SendKeys like this:
$wshell.SendKeys('%O')

autohotkey: finish loop only when all keys are sent

here's my ahk file, spam F5 + click (while hold):
$*F5::
Loop {
if not GetKeyState("F5", "P")
break
Send, {f5}
Click
}
how to make sure the loop only stops when CLICK is sent (after f5)? sometimes the loop is ending in the F5 and the click is not sent
thank you
Using click sends a click to the current mouse location, which might be away from the location you want. Make sure that the current mouse position is at the desired location.
Try to add the following in your code to display current mouse position and active window.
CoordMode,Mouse,Screen
MouseGetPos,mpx,mpy
tooltip, mouseposition = %mpx%.%mpy%, 1,1
sleep 5000
WinGetTitle, windowTitle, A
tooltip, Active Window = %windowTitle%, 1,1
sleep 5000
try the following instead of Click
Send Click
does it work?

Resources