Jump to content

ControlSend


Recommended Posts

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 ?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...