Sign in to follow this  
Followers 0
evilelf

Mouse Move

29 posts in this topic

#1 ·  Posted (edited)

MouseMove(random(738, 739), random(570, 571)) ---> As you can see i have MouseMove,

But I need it work as Control->MouseMove would.

Does Some one Know how to work

MouseMove to Work in a minimized window?

func _Store(); --- > Mine
  controlsend("Title", "", "", "TEXT")
  Sleep(random(2000,3000))
  MouseMove(random(738, 739), random(570, 571)) --->Need to work as ControlSend Would!
  Sleep(random(900,1000))
  $Store = PixelSearch( 493, 558, 515, 581, 0x2BB688 )
If Not @error Then
    ControlClick("Tilte","","","left",1,$coord[0] &,& $coord[1])
Sleep(Random(1000,1500))
EndIf
EndFunc
Edited by evilelf

Share this post


Link to post
Share on other sites



Random() implicitly returns floating point numbers.

You must use flag=1 to get integers.

My Random Works Fine.

Im asking about the,

MouseMove - How Would I Send this to a None active Window!

I know how to work the

ControlClick( "Title", "", "","left" , 1, 738,571)

I just cant Get the Mouse To Move in a None Active with out clicking.


Share this post


Link to post
Share on other sites

My Random Works Fine.

Im asking about the,

MouseMove - How Would I Send this to a None active Window!

I know how to work the

ControlClick( "Title", "", "","left" , 1, 738,571)

I just cant Get the Mouse To Move in a None Active with out clicking.

Bump...

I Still cant Figure this out...

i looked in to controlfocus That dont seem to work how i want this to..

I'm trying to just move the mouse with out clicking in a Unactive widow.

The same as Pixel Search,I can't seem to find help on this in the

Search(Forums)

Or

AutoIt Help File(), Please Help me if you can...


Share this post


Link to post
Share on other sites

Bump...

I Still cant Figure this out...

i looked in to controlfocus That dont seem to work how i want this to..

I'm trying to just move the mouse with out clicking in a Unactive widow.

The same as Pixel Search,I can't seem to find help on this in the

Search(Forums)

Or

AutoIt Help File(), Please Help me if you can...

Bump..., Ill Try back in 5 hours...

Share this post


Link to post
Share on other sites
ControlClick perhaps is what you're looking for?

Share this post


Link to post
Share on other sites

MouseMove(random(738, 739), random(570, 571)) ---> As you can see i have MouseMove,

But I need it work as Control->MouseMove would.

Does Some one Know how to work

MouseMove to Work in a minimized window?

Expanding FreeFry's idea.

MouseMove() operates on screen coordinates. And, ControlClick() operates on the x, y position within the control,

So, you want a hybrid function ControlMouseMove() that moves the mouse within a control and no clicks.

I'm guessing here:-

ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] ) from help file.

Can optional parameter clicks = 0 ?

Share this post


Link to post
Share on other sites

The whole idea with ControlClick is to simulate a click on a control, without moving the mouse, so I don't think that's gonna work Malkey, it mostly depends on what kind of window he's trying to automate, if it has controls that can be clicked on, or not. :)

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

The whole idea with ControlClick is to simulate a click on a control, without moving the mouse, so I don't think that's gonna work Malkey, it mostly depends on what kind of window he's trying to automate, if it has controls that can be clicked on, or not. :)

You are Right,

I need the "Mouse to move over something to let it hight light up",

If i could get this to work i should learn or know how to Do PixelSearch the Same Way...

Seeing how i have Looked over and over in the AutoItHelp...

>>>> Window <<<<
Title:  *********
Class:  ************
Position:   0, 0
Size:   1280, 1024
Style:  0x94080000
ExStyle:    0x00000008
Handle: 0x00630498

>>>> Control <<<<
Class:  
Instance:   
ClassnameNN:    
Advanced (Class):   
ID: 
Text:   
Position:   
Size:   
ControlClick Coords:    
Style:  
ExStyle:    
Handle: 0x008901C4

>>>> Mouse <<<<
Position:   461, 841
Cursor ID:  0
Color:  0xA68F80

>>>> StatusBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<
Edited by evilelf

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Bump!

I still Cant Seem to Learn/Find out how to do this...:P

I was on my way out to the mall for the rest of the day, Thought i would bump this...

Please Can Some one See this and Try to Help me... :)

Edited by evilelf

Share this post


Link to post
Share on other sites

Can you elaborate on what type of window/game(?), you're trying to automate?(perhaps a screenshot would be easier)

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

Well all the info i can really share would be, see below.

If I dont get a reply by tonight,.

Im going to just Break Down and Cry,&Then Maybe Read the whole

"AutoIt Help File"....

>>>> Window <<<<
Title:  *********
Class:  ************
Position:   0, 0
Size:   1280, 1024
Style:  0x94080000
ExStyle:    0x00000008
Handle: 0x00630498

>>>> Control <<<<
Class:  
Instance:   
ClassnameNN:    
Advanced (Class):   
ID: 
Text:   
Position:   
Size:   
ControlClick Coords:    
Style:  
ExStyle:    
Handle: 0x008901C4

>>>> Mouse <<<<
Position:   461, 841
Cursor ID:  0
Color:  0xA68F80

>>>> StatusBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<
Edited by evilelf

Share this post


Link to post
Share on other sites

Would ControlCommand work if you specified MoveMouse as a variable and then executed that variable as the "command"?

Just trying to give some input. I don't know exactly what you're trying to do.

I do believe the best bet for creating a bot that is undetectable and works while window is hidden would be JS though, I remember Diablo 2 LOD had a popular one called d2jsp thats been around for years.. but I'm guessing you just want some quick and simple. (if not i'd look into it, i'm pretty sure they still sell copies of it)


children may smile; the wise ponder- Dr. Holmes of Hardvard Medical School on an Ether BingeLove Makes The World Go Round?So does five shots of tequila. What's your point?[quote name='Valik' date='Jun 5 2008, 05:13 PM']wraithdu, 24 hours. Said I have a bad attitude, just driving the point home with a ban.[/quote]This is classic. :)

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

Well all the info i can really share would be, see below.

If I dont get a reply by tonight,.

Im going to just Break Down and Cry,&Then Maybe Read the whole

"AutoIt Help File"....

>>>> Window <<<<
[b]Title:   *********
Class:  ************[/b]
Position:   0, 0
Size:   1280, 1024
Style:  0x94080000
ExStyle:    0x00000008
Handle: 0x00630498

>>>> Control <<<<
Class:  
Instance:   
ClassnameNN:    
Advanced (Class):   
ID: 
Text:   
Position:   
Size:   
ControlClick Coords:    
Style:  
ExStyle:    
Handle: 0x008901C4

>>>> Mouse <<<<
Position:   461, 841
Cursor ID:  0
Color:  0xA68F80

>>>> StatusBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<
Why did you censor the Title, and Class part?

Would ControlCommand work if you specified MoveMouse as a variable and then executed that variable as the "command"?

Just trying to give some input. I don't know exactly what you're trying to do.

I do believe the best bet for creating a bot that is undetectable and works while window is hidden would be JS though, I remember Diablo 2 LOD had a popular one called d2jsp thats been around for years.. but I'm guessing you just want some quick and simple. (if not i'd look into it, i'm pretty sure they still sell copies of it)

Can you elaborate on how you're thinking? As I see no feature to "specify MoveMouse as a variable" in ControlCommand? :) Edited by FreeFry

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

Here is just a little of my code,

Theres alot more code. Im working on storing the items now.

I would like to move some of the Controlsends out and add

pixelchecks and Mouse Moves, I'm trying to work on a very good trainner, Bot...

Its for Learning,...

My Codes are Fine its just,

I need to learn/know how to do Control MouseMoves and Control PixelSearch.

Why i need pixelSearch.

A Example is i need it to PixelSearch If not True, Then It would Re-Run

Func **** What ever. Im trying to Change some things out to make this Trainner/Bot SmartLike...

func _EnterMission(); Starts Mission!
    ToolTip("GoodLuck",0,0,"Starting Mission")
    Sleep( Random(5000,10000))
    controlsend"", "", "left", 1, random(1143, 1144), random(215, 216)); 1139,1140,215,216
    Sleep( Random(1500,2000))
        controlsend("***8", "", "", "{enter}")
EndFunc
func _CastBuffs(); Castes Buffs, Starts First Fight.
    ToolTip('Getting Ready For Battle',0,0,'Casting Buffs')
    controlsend("****", "", "", "f")
    controlsend("****", "", "", "8")
    Sleep( Random(3000,3050))
    controlsend("****", "", "", "7")
    Sleep( Random(3000,3050))
    controlsend("****", "", "", "6")
    Sleep( Random(4000,5000))
    controlsend("****", "", "", "5")
    Sleep(Random(12000,13000))
    controlsend("****", "", "", "5")
    Sleep(Random(3000,3050))
    controlsend("****", "", "", "v")
    Sleep(Random(75,100))
    controlsend("****", "", "", "{Space}")
    Sleep(Random(10000,12000))
    controlsend("****", "", "", "{NUMPAD0}")
    ControlClick("****","","","left",1, random(638,643), random(860,866))
    Sleep(Random(900,1500))
    controlsend("****", "", "", "{Space}")
    Sleep(Random(6000,7000))
    ControlClick("****","","","left",1, random(638,643), random(860,866))
    Sleep(random(100,300))
    controlsend("****", "", "", "2")
    Sleep(random(500,650))
    controlsend("****", "", "", "3")
    Sleep(random(1100,1110))
    controlsend("****", "", "", "{W Down}")
    Sleep(Random(7000,7050))
    controlsend("****", "", "", "{W Up}")
Edited by evilelf

Share this post


Link to post
Share on other sites

Well if it's a 3D game, the chance to use Control related functions to move the mouse is very low, you're probably going to have to rely on MouseMove and PixelSearch.

Why won't you tell me/us what game the bot is for?

Share this post


Link to post
Share on other sites

It's Best as a secret...

Yes, Its a 3D Game.

The Control Functions Work on this game, I just cant Seem to find the MouseMove Control Function.

I Know there is a Way, i just have to Find out..

Back To looking day(4)


Share this post


Link to post
Share on other sites

Right...

Well, I don't really understand why you would want to move the mouse inside a control. :S

As far as I know, there's no way to make the mouse pointer move inside a window, which is not active...

I'm afraid I can't really give much more help if you can't tell me what game it is you're working with. :)

Share this post


Link to post
Share on other sites

#19 ·  Posted (edited)

Right...

Well, I don't really understand why you would want to move the mouse inside a control. :S

As far as I know, there's no way to make the mouse pointer move inside a window, which is not active...

I'm afraid I can't really give much more help if you can't tell me what game it is you're working with. :)

Do you know if you can " PixelSearch inside a None active Window " or do i need to start learning C++? Edited by evilelf

Share this post


Link to post
Share on other sites

You can "pixelsearch" in a non-active window, I've posted some examples on how you can get a pixel color from a non-active window, but you'll have to code the pixel-searching function yourself I'm afraid.

Share this post


Link to post
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
Sign in to follow this  
Followers 0