AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Wait for app to load, insert text into ClassNN field

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
SimplifyLife



Joined: 10 Dec 2007
Posts: 10

PostPosted: Tue Aug 12, 2008 9:41 pm    Post subject: Wait for app to load, insert text into ClassNN field Reply with quote

Hello,

I want to be able to do the following in one click and will pay the person that can do it for $25 via paypal.

I use a kick butt desktop search called Copernic and I want to be able to highlight a word and hit my hotkey.

It will do this:

highlight and copy it to clipboard
open application
wait for it to load by checking for the presense of ClassNN: Edit1
then paste what's in the clipboard between two " " in the ClassNN: Edit1 field
Submit.

I have the first part of it, but I dont know how to make it focus in that ClassNN field and how to put it between the two " "

Can anyone help?



Code:


#IfWinActive   
^k::
Send, ^c
sleep 50
Run C:\Program Files\Copernic Desktop Search 2\DesktopSearch.exe
return


and I saw this piece that might help waiting for the ClassNN to show up:

Loop {
Controlget,var,hwnd,,ThunderRT6Frame1,***WINTITLE***
If not Errorlevel
Break
}

from here:  http://www.autohotkey.com/forum/topic31489.html
Back to top
View user's profile Send private message
DerRaphael



Joined: 23 Nov 2007
Posts: 604
Location: 127.0.0.1

PostPosted: Tue Aug 12, 2008 10:14 pm    Post subject: Reply with quote

Code:

#IfWinActive   
^k::
oCB := ClipboardAll
Send, ^c
ClipWait,1
Run %A_ProgramFiles%\Copernic Desktop Search 2\DesktopSearch.exe
oTM := A_TitleMatchMode
SetTitleMatchMode,2
WinWaitActive,Copernic Desktop Search 2
Control,EditPaste,%ClipBoard%,Edit1,Copernic Desktop Search 2
ControlClick,TCDLSpriteButton1,Copernic Desktop Search 2,,L,1
SetTitleMatchMode,%oTM%  ; origin SetTitleMatchMode
ClipBoard := oCB         ; origin Clipboard
return


tested w/ home edition of Copernic Desktop Search 2

greets
dR
Back to top
View user's profile Send private message
SimplifyLife



Joined: 10 Dec 2007
Posts: 10

PostPosted: Tue Aug 12, 2008 11:13 pm    Post subject: Reply with quote

Yea, thanks man! Very much appreciated. I'll send you the $25. What's your paypal?

you can IM me if you dont want to put your email in here.
Back to top
View user's profile Send private message
DerRaphael



Joined: 23 Nov 2007
Posts: 604
Location: 127.0.0.1

PostPosted: Tue Aug 12, 2008 11:19 pm    Post subject: Reply with quote

sent IM
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group