-
Similar Content
-
By Garrik
Hi guys!
I need some help here, is there a way to use Random with While?
I need this script to run in between 1 and 4 times but I dont know how to do it, can you please help me?
dim $i=1
While $i<=4
Sleep(3000)
Send("{LWINDOWN}r{LWINUP}")
Sleep(3000)
Send("C:\Users\123\Catalogos\tags.txt{ENTER}")
Sleep(3000)
WinActivate("tags: Bloc de notas","")
Sleep(3000)
Send("{SHIFTDOWN}{END}{SHIFTUP}{CTRLDOWN}c{CTRLUP}{DEL}{DEL}")
Sleep(3000)
Send("{CTRLDOWN}g{CTRLUP}{ALTDOWN}{F4}{ALTUP}")
Sleep(3000)
Send("{CTRLDOWN}v{CTRLUP}{SPACE}")
$i=$i+1
WEnd
-
By basictheprogram
#include <Constants.au3> Func Install() ConsoleWrite("Install EasyLog" & @LF) Local $handle = WinWaitActive("EasyLog USB Device Driver Installer") ConsoleWrite("Install EasyLog2 " & $handle & @LF) Local $blah = ControlClick($handle, "", "[CLASS:Button; INSTANCE:1]", "Left", 1) ConsoleWrite("Install EasyLog3 " & $blah & @LF) WinClose($handle) EndFunc Install() ConsoleWrite("End of Install!" & @LF) Trying to get AutoIt to click "Install" on the EasyLogUSB Device Driver Installer window.
Console displays:
Install EasyLog
Install EasyLog2 0x001B041E
Install EasyLog3 1
End of Install!
Windows Info confirms the Handle is 0x001B041E
Window Info for the Control
For the life of me I cannot figure out why the script is not working.
Even $blah says the ControlClick succeeded.
I've tried Send("{ENTER}") and MouseClick() those didn't work either.
Any help would be appreciated.
Thanks.
-
By TheDcoder
Hello, it has been a long time since I have posted here
I am working on an AutoIt project where I need to enable to user to interactively choose any point or coordinate on the screen... something like a big overlay where the user can click anywhere on the screen to select that point. @UEZ's screenshot tool may have something similar to what I need:
I just checked the source code for the tool and I see that the Mark_Area function has a part in selecting the area to screenshot, I tried to figure out how it works but it is simply too complex and long...
So I was wondering if there were any examples of interactively selecting points on a screen? Maybe an UDF that I can just use in my script to make the whole thing a matter of adding few lines
Thank you for the replies in advance!
-
By AutoPM
#RequireAdmin AutoItSetOption('MouseCoordMode', 0) If WinExists("newtitle") Then ControlClick('newtitle', '', 'Button1') EndIf a Simple script to click Button on GUI with title "newtitle". this script is working fine on my laptop on [windows 10, windows 7]
but on a different laptop. script is not clicking this button, is there any alternative to control click then please tell. don't want to use mouseclick
Thank you
-
By Yirrlaar
#Include <WinAPI.au3> local $ClassName = _WinAPI_GetClassName(WinGetHandle(WinGetTitle("[ACTIVE]"))) ControlClick(WinGetTitle("[ACTIVE]"), "", "[CLASS:"&$ClassName&"; INSTANCE:1]", "primary") When I am running this script it just gives me a ConsoleWrite output of "0x001D04A8"
When using "AutoIT v3 Window Info" all the info I need for the ControlClick is there and displayed perfectly as if I typed it in normally.
Upon click the button it should be clicking it, I see the following inn the console window:
If I replace the $ClassName with the actual ClassName of "WindowsForms10.BUTTON.app.0.3296db7_r14_ad1" it works just fine, any ideas???
-