Jump to content

Minimised BOT Proof Of Concept


Recommended Posts

So, here is a "proof of concept" showing that it is possible to send keyboard input and mouse click through handles when a window is minimised.

HOW TO:

launch EVE,(make sure your username is already in)

launch the script

Press F1,(the window will minimised)

Press F2,(the password will fill in and then the bot will click on the login button)

wait 2 seconds,

Maximise your window and you will be at the character loggin screen.

Opt( "MouseCoordMode", 0) 
Opt("MustDeclareVars", 1)
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>


Func _MouseClickPlus($Window, $Button = "left", $X = "", $Y = "", $Clicks = 1) 
  Local $MK_LBUTTON       =  0x0001 
  Local $WM_LBUTTONDOWN   =  0x0201 
  Local $WM_LBUTTONUP     =  0x0202 
  
  Local $MK_RBUTTON       =  0x0002  
  Local $WM_RBUTTONDOWN   =  0x0204 
  Local $WM_RBUTTONUP     =  0x0205 

  Local $WM_MOUSEMOVE     =  0x0200 
  
  Local $i                = 0 

  Select 
  Case $Button = "left" 
     $Button     =  $MK_LBUTTON 
     $ButtonDown =  $WM_LBUTTONDOWN 
     $ButtonUp   =  $WM_LBUTTONUP 
  Case $Button = "right" 
     $Button     =  $MK_RBUTTON 
     $ButtonDown =  $WM_RBUTTONDOWN 
     $ButtonUp   =  $WM_RBUTTONUP 
  EndSelect 
  
  If $X = "" OR $Y = "" Then 
     $MouseCoord = MouseGetPos() 
     $X = $MouseCoord[0] 
     $Y = $MouseCoord[1] 
  EndIf 
  
  For $i = 1 to $Clicks 
     DllCall("user32.dll", "int", "SendMessage", _ 
        "hwnd",  WinGetHandle( $Window ), _ 
        "int",   $WM_MOUSEMOVE, _ 
        "int",   0, _ 
        "long",  _MakeLong($X, $Y)) 
        
     DllCall("user32.dll", "int", "SendMessage", _ 
        "hwnd",  WinGetHandle( $Window ), _ 
        "int",   $ButtonDown, _ 
        "int",   $Button, _ 
        "long",  _MakeLong($X, $Y)) 
        
     DllCall("user32.dll", "int", "SendMessage", _ 
        "hwnd",  WinGetHandle( $Window ), _ 
        "int",   $ButtonUp, _ 
        "int",   $Button, _ 
        "long",  _MakeLong($X, $Y)) 
  Next 
EndFunc 

Func _MakeLong($LoWord,$HiWord) 
  Return BitOR($HiWord * 0x10000, BitAND($LoWord, 0xFFFF)) 
EndFunc 

HotKeySet("{F1}", "Mover") 
HotKeySet("{F2}", "Click1") 
While 1 
   Sleep(100) 
WEnd 

Func Mover() 
WinMove("EVE", "", 0, 0) 
Sleep(250) 
WinSetState("EVE", "", @SW_MINIMIZE) 
EndFunc 

Func Click1() 
    ControlSend("EVE","","","PUT YOUR PASSWORD HERE")
    Sleep(1500)
_MouseClickPlus("EVE", "left", 515, 730, 1)
EndFunc
Link to comment
Share on other sites

And your question is?

Also, Is there something wrong with ControlClick?

yes sorry forgot, my question is that when i try using controlclick on a minimised window it dosen`t work is there a work around?

this is the only way it works atm..

2nd, is it possible to visualize pixel while window is minimised?

Link to comment
Share on other sites

You may first want to review this announcement.

And then take a look at #21 and #23 here.

EVE Online TERMS OF SERVICE

As an Eve Online subscriber, you must observe and abide by the rules of conduct and policies outlined below, as well as the End User License Agreement. Failure to comply with these regulations can result in the immediate termination of your account and you will forfeit all unused access time to the game. No refunds will be given.

1 You may not abuse, harass or threaten another player or authorized representative of CCP, including customer service personnel and volunteers. This includes, but is not limited to: petitioning with false information in an attempt to gain from it or have someone else suffer from it; sending excessive e-mails, EVE-mails or petitions; obstructing CCP Employees from doing their jobs; refusal to follow the instructions of a CCP Employee; or implying favoritism by a CCP Employee.

2 You may not use any abusive, defamatory, ethnically or racially offensive, harassing, harmful, hateful, obscene, offensive, sexually explicit, threatening or vulgar language. (Alternate spelling or partial masking of such words will be reprimanded in the same manner as the actual use of such words.)

3 You may not organize nor be a member of any corporation or group within EVE Online that is based on or advocates any anti-ethnic, anti-gay, anti-religious, racist, sexist or other hate-mongering philosophies

4 You may not use “role-playing” as an excuse to violate these rules. While EVE Online is a persistent world, fantasy role-playing game, the claim of role-playing is not an acceptable defense for anti-social behavior. Role-playing is encouraged, but not at the expense of other player. You may not create or participate in a corporation or group that habitually violates this policy.

5 You will report out-of-game issues regarding harassment, such as threatening phone calls or correspondence, to your local law enforcement officials or Internet provider. CCP will not reveal personal information about its subscribers to unauthorized individuals. We are not responsible for actions taken by our subscribers that occur outside the jurisdiction of our game servers or web site.

6 You will follow the instructions of authorized personnel while in the EVE Online game world or using the EVE Online web site.

7 You may not violate any local, state, national or international laws or regulations.

8 You may not impersonate or present yourself to be a representative of CCP or an EVE Online volunteer.

9 You may not advertise, employ, market, or promote any form of solicitation – including pyramid schemes and chain letters – in the EVE Online game world or on the website.

10 You may not market, sell, advertise, promote, solicit or otherwise arrange for the exchange or transfer of items in the game or other game services unless it is for in-game sales of in-game services or items.

11 The advertisement or sale of out of game goods and services not directly related to EVE online is prohibited. The only out of game goods and services which can be advertised or sold are the following: EVE forum signature creation, website and third party voice communication server hosting or EVE Time Codes.

12 You may not arrange for the exchange or transfer of any illegal or pirated software or other contraband while you are using the EVE Online client, servers or website.

13 You may not transmit or upload through the EVE Online client, server or website any copyrighted material that you do not own all rights to without the express written permission of the author or copyright holder.

14 You may not create, provide or use any server emulator or other site where EVE Online may be played. You may not post or distribute emulators, software tools or utilities related to EVE Online without the express written permission of CCP.

15 You may not attempt to play EVE Online on any server that is not controlled or authorized by CCP.

16 You may not do anything that interferes with the ability of other EVE Online subscribers to enjoy the game or web site in accordance with its rules. This includes, but is not limited to, making inappropriate use of any public channels within the game and/or intentionally creating excessive latency (lag) by dumping cargo containers, corpses or other items in the game world.

17 You may not engage in any activity that increases the difficulty and/or expense of CCP in maintaining the EVE Online client, server, web site or other services for the benefit and enjoyment of all its users.

18 You may not publish private communications from CCP, their agents or representatives or EVE Online volunteers without authorization.

19 You may not communicate, post or publicize any subscriber’s personal information within the EVE Online game world or website.

20 You may not give false information or intentionally hide or withhold any information, including billing and contact information, when registering your EVE Online account subscription. You are responsible for keeping this information accurate and current.

21 You will not attempt to decipher, hack into or interfere with any transmissions to or from the EVE Online servers, nor will you try to create or use any third party add-ons, extras or tools for the game.

22 You may not share your account password with anyone. Infraction of this rule is done at your own risk. Further information on account transfers can be found in the EULA.

23 You may not exploit any bug in EVE Online to gain an unfair advantage over other players. You may not communicate the existence of any exploitable bug to others directly or through a public forum. Bugs should be reported through the bug reporting tool on our website.

24 You will use the CCP bug reporting tools in accordance with their policy and will not intentionally submit misinformation or hide information required by the bug report forms.

25 CCP reserves the right to close, temporarily or permanently, any user’s account without advance notice as we deem necessary. Furthermore, we reserve the right to delete all user accounts or inventory of characters as warranted.

26 We reserve the right to ban any user from the game without refund or compensation.

27 If you are between 13 and 18 years of age, you must have the permission of your parent or guardian to before providing the personal information required to create an EVE Online game or website account.

28 In compliance with The Children’s Online Privacy Act of April, 2000, we cannot provide subscriptions to individuals under the age of 13. If you are under the age of 13, you may not create an EVE Online account and you are not eligible to enter contests or promotions.

29 You will not encourage others to break these rules or any rules set forth in relation to EVE Online’s game service or web site.

CCP MAY FIND IT NECESSARY ON OCCASION TO MAKE CHANGES TO OR RESET CERTAIN PARAMETERS OF THE PERSISTENT GAME WORLD MECHANICS, INTERFACE OR FEATURES OF EVE ONLINE IN ORDER TO MAINTAIN GAME BALANCE AND ENHANCE PLAYABILITY OR PERFORMANCE FOR ITS SUBSCRIBERS. THESE CHANGES MAY AFFECT OR CAUSE SETBACKS FOR THE CHARACTERS YOU’VE CREATED.

THESE RULES MAY BE REVISED AT ANY TIME. IT IS YOUR RESPONSIBILITY TO REVIEW THEM OCCASIONALLY TO ENSURE THAT YOU ARE IN COMPLIANCE WITH THE RULES, POLICIES AND AGREEMENTS DESIGNATED BY CCP.

BY SUBSCRIBING TO EVE ONLINE, YOU ACKNOWLEDGE THAT YOU ARE AT LEAST 18 YEARS OF AGE.

YOU ACKNOWLEDGE THAT YOU AGREE TO THESE RULES AND WILL ABIDE BY THEM.

YOU ACKNOWLEDGE THAT TERMINATION OF YOUR ACCOUNT BY CCP OR ONE OF ITS AUTHORIZED REPRESENTATIVES MAY RESULT FROM FAILURE TO ABIDE BY THESE RULES. SUCH TERMINATION WILL NOT ENTITLE YOU TO A REFUND OF ANY FEES PAID BY YOU FOR THE USE OF THE EVE ONLINE CLIENT, SERVERS OR WEB SITE. YOU WILL FORFEIT ANY UNUSED GAME TIME REMAINING AT THE TIME OF TERMINATION.

YOU AGREE THAT THESE RULES WILL APPLY TO ANYONE THAT YOU GRANT PERMISSION TO ACCESS YOUR EVE ONLINE ACCOUNT OR USER INFORMATION. YOU AGREE THAT YOU WILL BE HELD PERSONALLY RESPONSIBLE FOR THE CONSEQUENCES (WHICH CAN INCLUDE ACCOUNT TERMINATION) THAT MAY RESULT IF ANY SUCH PERSON BREAKS THE RULES DESCRIBED HEREIN.

IN ADDITION TO THE FOREGOING, YOU ALSO ACKNOWLEDGE THAT YOU WILL COMPLY WITH THE END USER LICENSE. YOU ACKNOWLEDGE THAT FAILURE TO COMPLY WITH THE TERMS SET FORTH CAN RESULT IN THE IMMEDIATE TERMINATION OF YOUR EVE ONLINE SUBSCRIPTION AND THE BENEFITS THEREOF WITH NO REFUNDS.

Finally finishing up with #2 and #3 here

CONDUCT

A. Specifically Restricted Conduct

Your continued access to the System and license to play the Game is subject to proper conduct. Without limiting CCP's rights to control the Game environment, and the conduct of the players within that environment, CCP prohibits the following practices that CCP has determined detract from the overall user experience of the users playing the Game:

1 You may not take any action that imposes an unreasonable or disproportionately large load on the System.

2 You may not use your own or third-party software to modify any content appearing within the Game environment or change how the Game is played.

3You may not use macros or other stored rapid keystrokes or other patterns of play that facilitate acquisition of items, currency, objects, character attributes, rank or status at an accelerated rate when compared with ordinary Game play. You may not rewrite or modify the user interface or otherwise manipulate data in any way to acquire items, currency, objects, character attributes or beneficial actions not actually acquired or achieved in the Game.

4 You may not use the Software, or any information accessible through the System, to bypass the System login architecture or create or provide any other means through which the System may be accessed and/or the Game may be played by others, as, for example, through server emulators.

5 You may not engage in any conduct that results in an Account containing items, objects, currency, character attributes, rank, or status that are inappropriate for the level or rank of the character contained in the Account, including without limitation arranging, making or accepting transfers of items to a character without adequate consideration, thereby augmenting or aggregating items in an Account and increasing its value for an Account sale.

Edit: had to put the list numbers back in.

Edited by GEOSoft

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...