AutoIT Control Sends.

07/19/2013 10:13 remo7979#1
I'm trying to make a program that would just send some text to S4Client.exe but it doesn't do that. Is there a typical reason?

Thank you ^_^
07/19/2013 11:07 c0w#2
it would help a lot if you could show an example of your code, and what you get as error msg
07/20/2013 07:24 remo7979#3
#include <GUIConstantsEx.au3>

GUICreate("Spam Bot", 335, 100)

GUISetState(@SW_SHOW)

GUICtrlCreateLabel("Key", 8, 10)
$key1 = GUICtrlCreateInput("", 35, 8, 120)
GUICtrlCreateLabel("Time", 8, 44)
$time1 = GUICtrlCreateInput("", 35, 40, 120)

$startbutton = GUICtrlCreateButton("Start", 190, 8, 60)

While 1
$msg = GUIGetMsg()

Select

Case $msg = $startbutton

$send1 = GUICtrlRead($key1)
$sleep1 = GUICtrlRead($time1)

While 1
Send($send1)
Sleep($sleep1)
WEnd

Case $msg = $GUI_EVENT_CLOSE
GUIDelete()
ExitLoop

EndSelect

WEnd


Well, that's it, but when i run the script with S4, Xtrap shows up D:
07/20/2013 09:08 FacePalmMan#4
1. you need to remove the autoit signature of your script
2. xtrap blocks all incoming virtual keypresses (except of those from the GreenMacroV5 dll)
3. Hab deinen code ein wenig verbessert
Code:
#include <GUIConstantsEx.au3>

GUICreate("Spam Bot", 335, 100)

GUISetState(@SW_SHOW)

GUICtrlCreateLabel("Key", 8, 10)
$key1 = GUICtrlCreateInput("", 35, 8, 120)
GUICtrlCreateLabel("Time", 8, 44)
$time1 = GUICtrlCreateInput("", 35, 40, 120)

$startbutton = GUICtrlCreateButton("Start", 190, 8, 60)
$IsOn=False

While 1
If $IsOn=True Then
Send(GUICtrlRead($key1))
Sleep(GUICtrlRead($time1))
EndIf
Switch GUIGetMsg()

Case $msg = $startbutton
$IsOn = Not $IsOn

Case $msg = $GUI_EVENT_CLOSE
GUIDelete()
ExitLoop

EndSelect

WEnd
07/21/2013 14:56 remo7979#5
So, how do I do that? :o
For all my scripts.

By the way, what did you say in german? o-o
07/21/2013 17:09 FacePalmMan#6
Quote:
Originally Posted by remo7979 View Post
So, how do I do that? :o
For all my scripts.

By the way, what did you say in german? o-o
i said that i removed some errors/fails in your script
07/21/2013 18:04 remo7979#7
Well, thank you for your time, I'm just wondering if you can tell me how to remove these signatures or send virtual keystrokes to S4 by using auto it
07/21/2013 19:33 FacePalmMan#8
Quote:
Originally Posted by remo7979 View Post
Well, thank you for your time, I'm just wondering if you can tell me how to remove these signatures or send virtual keystrokes to S4 by using auto it
use the [Only registered and activated users can see links. Click Here To Register...] to send virtual keystrokes to s4 league.
07/22/2013 12:01 remo7979#9
Thank you for the time and reply! :D
07/23/2013 12:16 remo7979#10
Quote:
Originally Posted by FacePalmMan View Post
use the [Only registered and activated users can see links. Click Here To Register...] to send virtual keystrokes to s4 league.
Well, I really don't know how to post in this properly but as i was saying, I tried using the GreenMacroV5.dll, but it just doesn't seem to work, and the tutorials it has for auto IT aren't really functioning, like this one and the rest :
;;;;IMPORTANT: you may have to open and close DLL (using DllOpen, DllClose) often
;;;;within your code/loop to avoid the trap from xtrap/gameguard.
;;;;because the xtrap / gameguard will detect your actions (every 3-5 mins) and block it.
Run("calc.exe")
WinWaitActive("Calculator")
Sleep(1000);
Local $dll = DllOpen("GreenMacroDLL.dll")
if $dll <> -1 Then
$v_key=55; virtual key for key 7 : 55 (0x37)
$keydown=1;
$keyup=0;
$result1 = DllCall($dll, "int", "KeyboardInput", "int", $v_key, "int", $keydown);//key down;
Sleep(50);
$result2 = DllCall($dll, "int", "KeyboardInput", "int", $v_key, "int", $keyup);//key up
DllClose($dll)

;MsgBox(0,"keydown succeed?", $result1[0]);
;MsgBox(0,"keyup succeed?", $result2[0]);
endif

Help would be appreciated ^_^
07/23/2013 12:25 FacePalmMan#11
to be able to use that dll/udf you need to register yourself on that website you have that dll from ,open GreenMacro.exe ,type your login data in and press the "Login&Load Keyboard/Mouse" button.
07/24/2013 12:26 remo7979#12
Quote:
Originally Posted by FacePalmMan View Post
to be able to use that dll/udf you need to register yourself on that website you have that dll from ,open GreenMacro.exe ,type your login data in and press the "Login&Load Keyboard/Mouse" button.
I did all that, It still doesn't work, does it only work on windows XP? Because at the website, it said something like that.
07/24/2013 12:39 FacePalmMan#13
Quote:
Originally Posted by remo7979 View Post
I did all that, It still doesn't work, does it only work on windows XP? Because at the website, it said something like that.
i have windows XP and it doesn't work for me too.
07/24/2013 14:14 remo7979#14
So, it doesn't work anymore?