Jump to content

kaiks

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by kaiks

  1. Uh... Thanks for that post gafrost, however that's not what I'd like, as I mentioned in my first post. I don't like it because I'd like my program to be running in background and ^a set as hotkey captures ctrl+a from other window... so that doesn't solve my problems And perhaps I could do that with something like "if the gui window is active, select all from focused control, else send ctrl^a", but still, I'd prefer it as it works in richedit... Well, I guess I'll wait for your richedit UDF Unless someone got other idea...
  2. Well... I've made an edit control. It works all good as I want except that I can't use CTRL+a hotkey to select all and it really annoys me sometimes. Is there any way to "enable" this hotkey? Like control style or whatever... not by hotkeyset of course... I know I could do this with richedit control but there's no such implemented yet
  3. If I got 5posts, it doesn't mean that I don't know anything about autoit, I know basics. I wouldn't ask for a help with events on buttons if I wouldn't be able to create simple GUI and events in autoit. My problem is that while loop in this functions doesn't let other loop look for button messages...
  4. With button, not hotkey Thanks for a try tho
  5. Uh, yes, I want to exit 'countdown' loop once the button is pressed, but I can't get it to work. I'm not interested in using 'Exit', using for example... Func dosomething() While $aaa=1 ;do anything WEnd EndFunc Func Buttonpressed() $aaa=2 EndFunc ...didn't work for me too. any ideas?
  6. yes...doesnt work;p
  7. Hi, I'm new to this forums I've problem with ControlSend function, here's the code #include <file.au3> $window="whatever" $path="c:\path\to\some\file.txt" AutoItSetOption("WinTitleMatchMode", 4) $handle = WinGetHandle($window, "") $line=_FileCountLines($path) $file=FileOpen($path,0) ;============================================================================== While 1 Sleep(100) While FileReadLine ($file,$line) = "" Sleep(100) WEnd Sleep(100) ControlSend($handle,"","",FileReadLine($file,$line),0) ;MsgBox(0,"bla",FileReadLine($file,$line)) <-- to test if problem was in fileread, it worked fine tho Sleep(300) ControlSend($handle,"","","{Enter}") Sleep(100) $line=$line+1 WEnd That program is supposed to find a new line in some file and 'paste' it to other window... When the line is for example 'blablablablabla' it works good... But when the line is 'blaBLAbla!!!!bla' it sends 'blablabla1111bla' Using Send function works good too, but that's not what I want Any help?
×
×
  • Create New...