10 posts in this topic
Do you have a working imagesearch.au3 with working dll?
and how can i gethandle and send keyboard/mouse commands to hidden d3d window?
i have tried imagesearch2015 but im getting dll error every time and tried older imagesearchs too in forum what i found.
i have tried many things to send commands to hidden/background d3dwindow still nothing works.
Can you help me please?
Was testing ControlSend("My Window Name", "", "", "^c") vs the normal Send("^c") or _SendEx("^c") to copy selected text from a window...
In Windows, I have a setting that when I click the Ctrl key only, my mouse pointer is "highlighted" [that I could of course disable].
If I use Send("^c"), or do this manually, the mouse pointer is never highlighted, as I wish it to be.
With ControlSend it *does* highlight...
I thought that maybe the Ctrl key goes up a few ms too soon in that one and increased AutoItSetOption("SendKeyDownDelay", 5) to way higher, but it doesn't make a difference.
As it doesn't seem possible to do "^ down", could it be prevented in some way?
Beside the slight annoyance, it simply alerted me that these seem to work differently [and of course, they are different].
I also get the early impression that ControlSend [to copy] seems in no way quicker to get something on the clipboard, maybe even slower?
How would I go about writing a IF Then statement if the conrol send fails?
Run ("Notepad.exe") WinWaitActive ("Untitled - Notepad") ControlSend("Untitled - Notepad", "", "Edit1", ("Provider Practice Record")) I have been running into lag alot. So my script has been missing input. I would like to be able to have it retry to put in "Provider Practice Record" if it misses.
I am assuming a if then statement is what I need but I am not sure what ControlSend will return if it tries to send to Edit1 and it is not there.
Or do I need to just add a timeout?
Okay so I am not sure if I can do this or not with the code I currently have but, I would like to send lastname and the first name with a comma inbetween.
so it would look like "last name,first name"
right now I just have it sending the last name.
any help or sugestions are appreciated.
$r = 1 Local $aArray = _Excel_RangeRead($oExcel, Default, Default) For $i = 1 To UBound($aArray) - 1 ;$i =0 Start from row A $sR1 = $aArray[$i] ;status $sR2 = $aArray[$i] ;first name $sR3 = $aArray[$i] ;Last name $sR5 = $aArray[$i] ;Email Address WinWaitActive ("[CLASS:MGUIWin]") Sleep (100) ControlSend("[CLASS:MGUIWin]", "", "Edit2", $sR3, & @CR) $r = $r + 1 If $r > $sBox Then Exit Endif Next
I've been trying to automate a process to check in the GUI of a Java program for a certain condition. When I use the Autoit Window information tool I don't get anything under the control tab, which seems to be normal for a Java program. I've been able to automate what I need using ControlSend and checking for the condition using ImageSearch but the Java program will not accept ControlSend unless it is the active window. I'd like to run the script while the window is inactive so I can still use the PC but haven't been able to come up with a solution other than a virtual machine. I even tried sysinternals desktops to create a second virtual desktop but that just causes WinActivate to return a failure after you switch to another virtual desktop. Does anyone have any ideas for getting a window to think its active when its not or an alternative to ControlSend that may work?