Sign in to follow this  
Followers 0
NightCrawler86

Not a keylogger, but a waypoint logger

8 posts in this topic

So its hard tryign to figure out where exactly you want the mouse to click. Is there a way to make a program, and log where exactly you clicked, so that you can get the cords for "YYY" and "ZZZ"

MouseClick("left", YYY, ZZZ, 2)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

try this,

open up note pad and click away

works for left and right clikcks and types out the code for you in notepad

#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.6.1
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
 
; open note pad then this then start clicking and it will write it all down for you.
#Include <Misc.au3>
#include <GUIConstantsEx.au3>
#include <SliderConstants.au3>
#include <Array.au3>
#include <File.au3>
$f = chr(0x22)
$string = "left"
$string8 = "right"
do
 
if _ispressed(01) Then
$array = mousegetpos()
$color = hex(pixelgetcolor($array[0],$array[1]))
$string1 = "Mouseclick("&$f& "x" &$f& ","& $array[0] & "," & $array[1] & ",1,0)"
$string2 = stringreplace($string1,"x",$string)
;msgbox(1,"test",$string2)
ControlSend("[CLASS:Notepad]", "", "Edit1", $string2 & "{ENTER}")
ControlSend("[CLASS:Notepad]", "", "Edit1", "Pixelsearch(" &$array[0]-1&","&$array[1]-1&","&$array[0]+1&","&$array[1]+1&",0x"&$color&",10)"& "{ENTER}")
endif
 
if _ispressed(02) Then
$array1 = mousegetpos()
$color1 = hex(pixelgetcolor($array1[0],$array1[1]))
$string3 = "Mouseclick("&$f& "x" &$f& ","& $array1[0] & "," & $array1[1] & ",1,0)"
$string4 = stringreplace($string3,"x",$string8)
;msgbox(1,"test",$string2)
ControlSend("[CLASS:Notepad]", "", "Edit1", $string4 & "{ENTER}")
ControlSend("[CLASS:Notepad]", "", "Edit1", "Pixelsearch(" &$array1[0]-1&","&$array1[1]-1&","&$array1[0]+1&","&$array1[1]+1&","&$color1&",10)"& "{ENTER}")
endif
 
 
 
until 1=2
 
 
 
 
$array = mousegetpos()
$color = hex(pixelgetcolor($array[0],$array[1]))
msgbox(1,"color is", $color)

on a side note i belive there are better ways to do this, this is just something i wrote a while ago, also i i think the pixels search bit is wrong but it wouldnt take much to change

sebs

Edited by sebgg

GC - Program to rapidly manipulate DNA SequencesRotaMol - Program to measure Protein Size

Share this post


Link to post
Share on other sites

You could use AU3Recorder (part of SciTE) to record the Mousclicks.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Im gonna try out the code above, but i just also read while searching about the AU3 Recorder. Looks like this should work great also.

Thanks to both of you.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

The problem with using coordinates in the manner you described, is that the coordinates change when screen resolution changes. Especially if you intend to your program in a window.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Im gonna try out the code above, but i just also read while searching about the AU3 Recorder Keystrokes. Looks like this should work great also.

Thanks to both of you.

I know that keylogger can record all keystrokes typed into your computer.

Edited by quickercarter

Share this post


Link to post
Share on other sites

Welcome to AutoIt and the forum!

I hope you've read the forum rules. Keyloggers aren't allowed here. The link to the rules is in the lower right corner of every page.

And please don't necro a thread that is 2 years old.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

quickercarter,

Please do not post merely to tell us that you know about keyloggers. I have deleted the others - do it again and you go away. :naughty:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0