Jump to content
Sign in to follow this  
Influx

send to a control with no ID

Recommended Posts

Influx

ok the send() function is giving me issues by locking down keys, and so far i have tried many methods to fix this. none have worked.

So now i want to use controlsendtext() but i have no idea how to get the ID of the control the user has selected.

Share this post


Link to post
Share on other sites
darzanmihai

ok the send() function is giving me issues by locking down keys, and so far i have tried many methods to fix this. none have worked.

So now i want to use controlsendtext() but i have no idea how to get the ID of the control the user has selected.

use the Au3Info.exe to get details about the id/class/instance of the control you want to send text to:

Start->Run->Au3Info.exe

it will be something like this:

ControlSetText("Window title were the control is", "", "[CLASS:TNavigableTntComboBox.UnicodeClass; INSTANCE:1]", "Some text you want to send")


I do not like stupid and idiot people that write idiot things...If you are one, do not write.

Share this post


Link to post
Share on other sites
Influx

No....

I wont know the id of the control.

I need to know how to get the active control on the active windows with autoit.

and before someone suggests the following code or anything like it

Func _waitRelease()
$dll = DllOpen("user32.dll")
While 1
    Sleep (100)
    If _IsPressed("10", $dll) OR _IsPressed("11", $dll) OR _IsPressed("12", $dll) Then
        Else
            ExitLoop
    EndIf
WEnd
DllClose($dll)
EndFunc

this is not ideal because lets say someone wants to spell LOL or LMAO but uses the shift key and hold it down (would be in sane and sound like doing morse code to tap/release shift key every capital letter) if they hold down shift one letter bypasses and appears anyways then when shift is released all other keys are send, leaving the word a scrambled mess.

Also this still causes the shift key to lock because a keystroke gets through.

Share this post


Link to post
Share on other sites
Influx

ok never mind... for now. i have found i can use control send with no id and it will autpp select the active control. although if you have any suggestions i would like to hear them.

Share this post


Link to post
Share on other sites
Influx

how do i know if caps lock is on or off?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×