-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By SkysLastChance
I am trying to figure out why my mouse move does not end up in the same spot as the test version
I am on the struggle bus. (Both Examples below)
#include <IE.au3> Local $xWidth = 2 Local $xHeight = 2 Local $vOperator = '/' Local $oIE = _IE_Example("form") Local $oForm = _IEFormGetObjByName($oIE, "ExampleForm") Local $oTextArea = _IEGetObjByName($oForm, "imageExample") Local $iScreenX = _IEPropertyGet($oTextArea, "screenx") Local $iScreenY = _IEPropertyGet($oTextArea, "screeny") Local $iWidth = _IEPropertyGet($oTextArea, "width") Local $iHeight = _IEPropertyGet($oTextArea, "height") Local $iMousespeed = 20 MouseMove($iScreenX + $iWidth / 2, $iScreenY + $iHeight / 2, $iMousespeed) ;Test Example ;;MouseMove(Execute(($iScreenX + $iWidth) & $vOperator & $xWidth), Execute(($iScreenY + $iHeight) & $vOperator & $xHeight), 25) ;My Example
-
By junichironakashima
Im creating a code that will work in this sequence:
1. Copy the text (question) in one atea of the screen
2. Catch the 2 strings (number)
3. Multiply the 2 strings ( $1*$2)
4. Click the next area to put the answer
5. Paste the answer
This is my code
MouseClick($MOUSE_CLICK_LEFT, 479, 802, 3, 1) ;Clicking all of the text
Send("^c")
$x = StringRegExpReplace(ClipGet(), 'What is (\d*) x (\d*) \?$', "$1*$2")
MouseClick($MOUSE_CLICK_LEFT, 480, 844, 1, 1)
ClipPut($x)
Send("^v")
However the output is this
$1*$2
How can I make it solve itself? Because I tried this code:
MouseClick($MOUSE_CLICK_LEFT, 479, 802, 3, 1) ;Clicking all of the text
Send("^c")
MouseClick($MOUSE_CLICK_LEFT, 480, 844, 1, 1) $x = Execute(StringRegExpReplace(ClipGet(), 'What is (\d*) x (\d*) \?$', "$1*$2"))
ClipPut($x)
Send("^v")
Output is just blank text
-
By christian11
hello i'm here again i know im quite annoying because i ask nonsense questions >.<
i just wanted to improve my automated autoclicker yahoomail
I wanted to check if it is match pink and white color using AND operator && but i cant make it to work
im really newbie in programming ,i wanted to learn more, i hope you help me again
Func CheckIfMatch() $pink = PixelSearch(0, 0, @DesktopHeight, @DesktopWidth, 0x2f0326) && If PixelGetColor ( 1002 , 236 ) = 0xFFFFFF && If isArray($pink) then Send("{F5}") MouseClick("primary", $pink[0] , $pink[1], 0, 0) Else MouseClick("primary", $pink[0] , $pink[1], 0, 0) EndIf EndFunc
-
By twitchyliquid64
Hi all,
Im building a variant class that I want to make work, but Im running into compiler issues; issues that highlight that I have no idea what is going on under the hood for operators in C++.
My class looks something like:
class Variant { public: //Constructors Variant(void) : type(VAR_INTTYPE), int64value(0), databuffsize(0), databuff((char*)0) {} Variant(int); Variant(long long); Variant(double); Variant(const char* in); Variant(char* in); Variant(Variant & in);//Copy Constructor ~Variant();//Destructor //Operators Variant& operator= (Variant&); Variant& operator= (Variant); //Other irrelvant code... } And Im trying to do things like:
Variant test; int main() { test = Variant(20); //btw, I have no intention of implementing assignment ops for primitive types for various reasons Variant lol(7); lol = test; return 0; } In GCC (mingw) this is throwing errors like:
Any ideas what constructors or operators I am missing? I have looked around and cannot find any solution to my problem.
Thanks in advance.
-
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now