Jump to content

Urgent: botting my computer before hospitalization


Recommended Posts

I'm going into surgery soon and I need to bot my computer.

I got an autoclicker with coordinates based clicking, so the hard-ish part is done.

What I'm going to do is set it to leftclick once every ten seconds, but at the same time have an au3 check for a certain window. If that window exists, kill it, and return to lurking.

"While (1==1) { lurk }"

Hopefully I come back alive, so I'd need to stop this thing at some point.

Please help understanding how to incorporate a "if f6 is pressed, die"! I got maybe a day and a half!

Link to comment
Share on other sites

  • Moderators

Compodulator, 

Welcome to the AutoIt forum - and good luck with the operation.

What exactly are you "auto-clicking" that needs doing so often while you are away? 

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

Are you going to do home working while you are in the hospital? :D

 

Maybe you can use variables as triggers:

Local $trigger1 = False

Adlibregister("_leftclick",10000)

While 1
    ;Here look for the windows
    ; if the window appears, unregister the function, put $trigger to True, close the window, register again the function and turn $trigger to False again
Wend


Func _leftclick()
    if $trigger1 = False Then
        ;click whenever you need
    endif
Endfunc

Quick and untested idea.

Greets from Barcelona

Link to comment
Share on other sites

I think OP would be unable to have any interaction with any computer while they are recovering in the hospital.

7 hours ago, Compodulator said:

Please help understanding how to incorporate a "if f6 is pressed, die"!

Use the HotKeySet function and Exit statement in your "callback" function.

7 hours ago, Compodulator said:

I got maybe a day and a half!

Best of luck with the surgery and hope you make it out healthy :)

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to comment
Share on other sites

13 hours ago, Melba23 said:

Compodulator, 

Welcome to the AutoIt forum - and good luck with the operation.

What exactly are you "auto-clicking" that needs doing so often while you are away? 

M23

It's not that it NEEDS to be clicked often. I'm using cryptobrowser, so the clicking REALLY needs to be once in 3 hours, HOWEVER, I may encounter an annoying window blocking my "mining". It blocks my mining because I signed up for a x10 premium on it. If I don't toggle cloud boost, I'm not using my paid premium, and if I don't use my paid premium, my money goes to waste.
I'll never have this option to mine literally 24/7 again.

13 hours ago, Qwerty212 said:

Are you going to do home working while you are in the hospital? :D

 

Maybe you can use variables as triggers:

Local $trigger1 = False

Adlibregister("_leftclick",10000)

While 1
    ;Here look for the windows
    ; if the window appears, unregister the function, put $trigger to True, close the window, register again the function and turn $trigger to False again
Wend


Func _leftclick()
    if $trigger1 = False Then
        ;click whenever you need
    endif
Endfunc

Quick and untested idea.

Greets from Barcelona

I've... tried to understand this... and failed...
I tried messing around with it, but I can't set it right, so I came up with my own solution - the autoclicker will do the clicking, and this monster will do the window killing:

#include <msgboxconstants.au3>
Func endrun ()
   MsgBox(0,"end","stopped running",5)
   Exit
EndFunc

Local $funcrun=1
HotKeySet ("{F2}", "endrun")

While ($funcrun=1)
   WinActivate("CryptoTab - CryptoTab Browser")
   WinWaitActive("Cloud.Boost")
   WinClose("Cloud.Boost")
   Sleep(5)
WEnd

For some reason it paints my syntax weird. It looks fine on my  side. Also, for some reason I can't actually USE F2 to close it. I'll have to reserve to being very fast and ctrl+break the script. It... it works...?
Very hamfistedly. I'll need to re-learn autoit. I used to be REALLY into it as a kid.

8 hours ago, mikell said:

What about the nice and free TeamViewer ?    :)

My problem with TeamViewer is that I'd need somebody to click the "Yes" button.

7 hours ago, TheDcoder said:

I think OP would be unable to have any interaction with any computer while they are recovering in the hospital.

Use the HotKeySet function and Exit statement in your "callback" function.

Best of luck with the surgery and hope you make it out healthy :)

That is correct - I will not have access to ANY electronics. I'll be hooked onto some very sensitive electrodes that go into my brain. The neurosurgeon showed they can be triggered by a phone ringing... in an adjacent room!

 

Also, for some reason I can't use WinActivate() to actually call for the cryptobrowser window. The window info capture thingy did capture the information of Cloud.Boost accurately, but doesn't work on CryptoBrowser for whatever reason. If anybody feels like messing around with it, be my guest.

Thank you all for your posts, I managed to hamfist together a thing!
If anybody can figure why I can't use F2, I'll be extra grateful! I really like my Fs.

Link to comment
Share on other sites

8 hours ago, TheDcoder said:

Best of luck with the surgery and hope you make it out healthy :)

I also wish you all the best for your surgery.

Due to these circumstances it is hard for me to point out, that cryptomining is probably not compatible with the rules of the forum .

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to comment
Share on other sites

15 hours ago, Musashi said:

that cryptomining is probably not compatible with the rules of the forum .

I don't think there is any rule against crypto-mining, and why would there one be anyway? The user is using their own computer to perform mathematical calculations, nothing wrong with that :)

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to comment
Share on other sites

1 hour ago, TheDcoder said:

I don't think there is any rule against crypto-mining ...

Thanks for the clarification (especially in this particular case).

@Compodulator : My apologies for suspecting a potential illegal Bitcoin mining operation behind your question ;).

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

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...