w0_0t Posted June 7, 2005 Posted June 7, 2005 I am trying to send text to an MSN convorsation using controlsend. However, i cannot find the proper control ID. i want to send it to the place where you type in the text. Heres what the window info gives me: >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: M i K e - Conversation Class: IMWindowClass Size: X: 356 Y: 271 W: 634 H: 468 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 639 Y: 666 Cursor ID: 0 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xFFFFFF Dec: 16777215 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 0 Y: 0 W: 626 H: 414 Control ID: ClassNameNN: DirectUIHWND1 Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< Thanks for any help i get! ~Jamie
GaryFrost Posted June 8, 2005 Posted June 8, 2005 I suspect you were holding your mouse over the control to send the info to, if that's the case then use "DirectUIHWND1" as the controlID SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Valuater Posted June 8, 2005 Posted June 8, 2005 hope this helps Mouseclick("left",639, 666) ; >>>> ; to be sure of the location Send("your text here") good luck
w0_0t Posted June 8, 2005 Author Posted June 8, 2005 im gonna try using the first one, im actually trying to send it to their window with it minimized. im gonna test the script.
Valuater Posted June 8, 2005 Posted June 8, 2005 I suspect you were holding your mouse over the control to send the info to, if that's the case then use "DirectUIHWND1" as the controlID<{POST_SNAPBACK}>*IF*... you use AdAware 1.05+,. or have it available, i tried everything to auto-run the program. however none of the controls worked **NONE**. if you know of info on this program please let me knowthx
w0_0t Posted June 8, 2005 Author Posted June 8, 2005 expandcollapse popuphotkeyset ("{F1}", "Start") hotkeyset ("{F2}", "Stop") hotkeyset ("{F3}", "changevar") dim $var1 dim $var2 = 0 dim $var3 = 0 dim $var4 = 0 dim $var5 = 0 Opt("SendKeyDelay", 1) func changevar() While $var2 < 1 $var1 = inputbox ( "Spammer By Jamie", "The time is " & @HOUR & ":" & @MIN & ":" & @SEC, "Type in spam message") $var5 = inputbox ( "Spammer By Jamie", "The time is " & @HOUR & ":" & @MIN & ":" & @SEC, "Type in MSN window to spam") $var2 = $var2 + 1 $var4 = 0 WEnd Endfunc Func start() $var3 = 0 While $var3 = 0 $var2 = 0 ControlSend ($var5, "", "DirectUIHWND1", $var1) send ("{ENTER}") $var4 = $var4 + 1 WEnd Endfunc Func stop() $var = 0 $var3 = 1 send ("{ENTER}") send ("Spams - ") send ($var4) send ("{ENTER}") MsgBox(4096, "Number of spammZ", $var4) $var4 = 0 sleep(1000) Endfunc While 1 Sleep(1000) WEnd hm, not workin so well.. it wont send it. Any advice? I try to send it to the window n' everything, but it only works when i click on the msn thing, is there a way i can send it to them even when the window's minimized. I thought this would do it.
GaryFrost Posted June 8, 2005 Posted June 8, 2005 ControlSend from helpSends a string of characters to a control.ControlSend ( "title", "text", controlID, "string" [, flag]) Parameterstitle The title of the window to access. text The text of the window to access. controlID The control to interact with. See Controls. string String of characters to send to the control. flag [optional] Changes how "keys" is processed: flag = 0 (default), Text contains special characters like + to indicate SHIFT and {LEFT} to indicate left arrow. flag = 1, keys are sent raw.don't think $var5 will work for window title SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
w0_0t Posted June 8, 2005 Author Posted June 8, 2005 ok after a bit of testing it out, i dont think it matters if its $var5 or not. Im not sure why its not doing anything until i click on the window(make it active). Any suggestions?
GaryFrost Posted June 8, 2005 Posted June 8, 2005 try WinActivate SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
w0_0t Posted June 8, 2005 Author Posted June 8, 2005 that does the trick, but i want to be able to send them while the window is minimized. Here's what it looks like now. I annotated it. expandcollapse popuphotkeyset ("{F1}", "Start"); hotkeyset ("{F2}", "Stop"); Setting Hotkeys hotkeyset ("{F3}", "changevar"); dim $var1; dim $var2 = 0; dim $var3 = 0; dim $var4 = 0; Declaring Variables dim $var5 = 0; Opt("SendKeyDelay", 1) func changevar() While $var2 < 1 $var1 = inputbox ( "Spammer By Jamie", "The time is " & @HOUR & ":" & @MIN & ":" & @SEC, "Type in spam message"); $var5 = inputbox ( "Spammer By Jamie", "The time is " & @HOUR & ":" & @MIN & ":" & @SEC, "Type in MSN window to spam"); $var2 = $var2 + 1; $var4 = 0; Gathering Information for spam ClipPut ($var1); WEnd Endfunc Func start() $var3 = 0 While $var3 = 0 $var2 = 0; WinActivate ("M i K e - Conversation") ControlSend ("M i K e - Conversation", "", "DirectUIHWND1", "^v"); send ("{ENTER}"); Spam them $var4 = $var4 + 1; WEnd Endfunc Func stop() $var = 0; $var3 = 1; Set $var3 to 1 to stop spamming send ("{ENTER}"); Finish off any of the last spams send ("Spams - "); send ($var4); These 2 say how many spams send ("{ENTER}"); MsgBox(4096, "Number of spammZ", $var4); Msgbox with how many spams $var4 = 0; <--indicates that spam set has finished sleep(1000); Endfunc While 1 Sleep(1000); to keep program active WEnd
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now