Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 15:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AutoIT Control Sends.

Discussion on AutoIT Control Sends. within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
remo7979's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 59
Received Thanks: 9
AutoIT Control Sends.

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 ^_^
remo7979 is offline  
Old 07/19/2013, 11:07   #2
 
c0w's Avatar
 
elite*gold: 3653
The Black Market: 378/0/0
Join Date: Aug 2008
Posts: 30,854
Received Thanks: 529
it would help a lot if you could show an example of your code, and what you get as error msg
c0w is offline  
Old 07/20/2013, 07:24   #3
 
remo7979's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 59
Received Thanks: 9
#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:
remo7979 is offline  
Old 07/20/2013, 09:08   #4
 
FacePalmMan's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 426
Received Thanks: 129
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
FacePalmMan is offline  
Old 07/21/2013, 14:56   #5
 
remo7979's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 59
Received Thanks: 9
So, how do I do that?
For all my scripts.

By the way, what did you say in german? o-o
remo7979 is offline  
Old 07/21/2013, 17:09   #6
 
FacePalmMan's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 426
Received Thanks: 129
Quote:
Originally Posted by remo7979 View Post
So, how do I do that?
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
FacePalmMan is offline  
Old 07/21/2013, 18:04   #7
 
remo7979's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 59
Received Thanks: 9
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
remo7979 is offline  
Old 07/21/2013, 19:33   #8
 
FacePalmMan's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 426
Received Thanks: 129
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 to send virtual keystrokes to s4 league.
FacePalmMan is offline  
Thanks
1 User
Old 07/22/2013, 12:01   #9
 
remo7979's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 59
Received Thanks: 9
Thank you for the time and reply!
remo7979 is offline  
Old 07/23/2013, 12:16   #10
 
remo7979's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 59
Received Thanks: 9
Quote:
Originally Posted by FacePalmMan View Post
use the 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 ^_^
remo7979 is offline  
Old 07/23/2013, 12:25   #11
 
FacePalmMan's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 426
Received Thanks: 129
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.
FacePalmMan is offline  
Old 07/24/2013, 12:26   #12
 
remo7979's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 59
Received Thanks: 9
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.
remo7979 is offline  
Old 07/24/2013, 12:39   #13
 
FacePalmMan's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 426
Received Thanks: 129
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.
FacePalmMan is offline  
Old 07/24/2013, 14:14   #14
 
remo7979's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 59
Received Thanks: 9
So, it doesn't work anymore?
remo7979 is offline  
Reply


Similar Threads Similar Threads
Autoit Tab Control , wie geht das ?
03/23/2013 - AutoIt - 1 Replies
ups sry man musste damit noch die tabs machen GUICtrlCreateTabItem
[REL] Simon (Sends you to lab)
07/15/2009 - CO2 Private Server - 17 Replies
Do it yourself too much whiners about the code -.- #REQUEST to close
Walker sends Whispers?
08/13/2007 - Lineage 2 - 2 Replies
I use the L2Walker 1.78 on a L2JServer Dunno why this happens, but sometimes other people get whispers with content like this: FOLLOWTELEPORT:268467171,1,npc_268467171_Buy 23 This was when somebody whispered to me and I was buying some alacrity potions after her message, then she got this strange whisper. I think it could be dangerous for Walker-Users, if this happens to often. In this case I simply said I have no clue what this message means. ^^' Does anybody have the same problem?
Gimme a link to a bot that sends me to bot jail
12/26/2005 - Conquer Online 2 - 8 Replies
people, can someone plz post me a link for a bot that will send me to bot jail?i tried to search and nothing came up, i would like to bail out my noob for christmas.



All times are GMT +2. The time now is 15:56.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.