Jump to content

Recommended Posts

Posted

I read all topics that I found in search. Example of using controlsend with notepad is easy but when I try someting diferent nothing works. I think that the most important thing in what im trying is ControlID... I tryed use "Autoit Window Info" to know ID but it dont return to me ControlID. Datas are empty Oo. What I have to do ? What you all sugest ?

Posted (edited)

Look what return in Autoit Window Info

>>>> Window <<<<
Title:  MU
Class:  MU
Position:   0, 0
Size:   810, 636
Style:  0x14C80000
ExStyle:    0x00000308

>>>> Control <<<<
Class:  
Instance:   
ID: 
Text:   
Position:   
Size:   
ControlClick Coords:    
Style:  
ExStyle:    

>>>> Mouse <<<<
Position:   398, 238
Cursor ID:  2
Color:  0x000000

>>>> StatusBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<

Other things important .. im using version v3.2.4.9

Edited by stackover
Posted (edited)

If ControlSend() don't work then use Send()

How could I know if controlsend dont work ? Maybe it works. Just need to know how to do. Some genius ill give me the answer :)

About Send I already have all script running in Send but now need to run it with my window minimized or not in focus.

Edited by stackover
Posted

Where is your code? With a small sample, perhaps we can help... :)

...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
Posted

Where is your code? With a small sample, perhaps we can help... :)

Thanks Jef but I think it wont help too much but lets go... Assuming that I only need send a letter "V"... Script will be like this.

HotKeySet ("{F10}", "OnOff")

Func OnOff ()
ControlSend("MU", "", "Edit1", "v")
EndFunc

While 1
    
    Sleep(200)
WEnd

But the "Edit1" works fine for script using Notpad.exe in this case I think I need other CONTROLID.

Posted

You don't launch MU in your sample script. No way to test without knowing what MU is and actually launching it... :)

...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
Posted

What version of AutoIt you're using?

Last version (3.2.4.9) works (ControlSend works with an empty controlID if the application - MU - is active).

For earlier versions (3.2.2.0) it doesn't work.

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

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
×
×
  • Create New...