Jump to content

karthik001

Members
  • Posts

    5
  • Joined

  • Last visited

Reputation Activity

  1. Like
    karthik001 reacted to bogQ in Need help - ControlSend   
    if win do allow you to send data when he dont have focus that its possible, some wins will not work others will alow you to do that

    so use WinGetHandle instead WinActivate and use ID of the controll your sending the command, in your case thats Edit1 so dont remove it unless you need to send data to some other controll
  2. Like
    karthik001 reacted to bogQ in Need help - ControlSend   
    Guess i gotta work some more on my english, sometimes i wanna write something and it turn out like something else that even i don't understand when i re read it tomorrow
    $handle = "0x00020616" is text so if your win title isnt 0x00020616 you do need to use something that will return handle like WinGetHandle('[CLASS:Notepad]') or some other command from help file
    so this shud work

    $handle = WinActivate('[Class:Notepad]') If $handle Then for $i =1 to 100 ControlSend($handle, "", "", "dummy text") Next EndIf
    When you store some handle to some file i do think that you will need to get all win handless compare thenm to handle that you need and use real handle instead text on that win.

    from help file

    It is important to note that a window handle is [b]not[/b] classed as a number or string - it is its own special type.
    Edit: will reddit upper post cos it sound plain stupid
×
×
  • Create New...