knucklesCZ Posted June 15, 2015 Posted June 15, 2015 Hello to all autoit coders, I'm not a pro dev but I've recently made a few automatisation programs. I met a program SplashTop which allows user to control their PC from android phone and play games through it (e.g. Skyrim or any other game with first person camera). The program is perfect but it's totally missing one thing - mouse move. It only allows mouse click&drag as user moves their finger on the touch screen.I was thinking about using physical phone keyboard <>^(and down) to mouse move but not many ppl have got qwerty phones such motorola droid 4 or similar and I can transfer <>^ into mousemove. The question is if any of you know a way to disable mouse click&drag and convert it into mousemove. Thanks for responses, I'm sorry but I can't make paragraphs on mobile version
Scripthen Posted June 15, 2015 Posted June 15, 2015 This is game automation. Game automation isn't allow.
knucklesCZ Posted June 15, 2015 Author Posted June 15, 2015 This is not any game automation. It'd be a fulfiller of the perfection of the SplashTop program (something like Teamviewer) so I can play First person offline games on my PC through my phone. (I leave the PC on and I play through screen share). The tool is not going to automate anything. It should change the mouse input (mouse click&drag into mousemove).
Scripthen Posted June 15, 2015 Posted June 15, 2015 This is not any game automation. It'd be a fulfiller of the perfection of the SplashTop program (something like Teamviewer) so I can play First person offline games on my PC through my phone. (I leave the PC on and I play through screen share). The tool is not going to automate anything. It should change the mouse input (mouse click&drag into mousemove).
knucklesCZ Posted June 15, 2015 Author Posted June 15, 2015 This is not any game automation. It'd be a fulfiller of the perfection of the SplashTop program (something like Teamviewer) so I can play First person offline games on my PC through my phone. (I leave the PC on and I play through screen share). The tool is not going to automate anything. It should change the mouse input (mouse click&drag into mousemove).
knucklesCZ Posted June 15, 2015 Author Posted June 15, 2015 (edited) You know AutoIT is AUTOMATION, right?No it isn't. It's just like if you say that C++ is Windows hacking language. Automating is a part of AutoIt and this is not the case where I'm going to automate things. Btw the automation rule is here because of online-games automation which is unfair compared to people who play with their hands. I'm not going to automate a game and it's not even an online game. Edited June 15, 2015 by knucklesCZ
Scripthen Posted June 15, 2015 Posted June 15, 2015 I've never said C++ is Windows hacking language. I don't even use winblows so I wouldn't know.You can cheat in offline games too
knucklesCZ Posted June 15, 2015 Author Posted June 15, 2015 (edited) Please stay at the topic, don't make up your own rules (by editing the current ones). Edited June 15, 2015 by knucklesCZ
Scripthen Posted June 15, 2015 Posted June 15, 2015 I'm not making rules. I simply stated the rules, as everyone else does. Gonna give them sh*t? Nope. Thought not.
knucklesCZ Posted June 15, 2015 Author Posted June 15, 2015 (edited) Well it seems like you can't get over the thing that I'm playing games on my PC or idk. Let's simplify the question then:Hi guys, does anybody of you know how to change mouse click&drag into mousemove by a AutoIt script? Thanks. Edited June 15, 2015 by knucklesCZ
Scripthen Posted June 15, 2015 Posted June 15, 2015 Okay I'll answer now. I don't know how powerful AU3 is now, I don't know what screen-size your phone is using. When you click somehow make AutoIT release the hold and track from FROM x,y to the TO x,y and make AU point to the TO.Mind you, you'll probably get lag in any of the concepts if it's being tunnels over Teamviewer, will be better with VNC with a really good latency.
knucklesCZ Posted June 15, 2015 Author Posted June 15, 2015 (edited) Okay I'll answer now. I don't know how powerful AU3 is now, I don't know what screen-size your phone is using. When you click somehow make AutoIT release the hold and track from FROM x,y to the TO x,y and make AU point to the TO.Mind you, you'll probably get lag in any of the concepts if it's being tunnels over Teamviewer, will be better with VNC with a really good latency.Well, my phone is 960x540 and I'm streaming my PC screen in 1280x720 so it's not really 4K or anything.I haven't thought about your option yet (autoit release hold and follow the X,Y moves).My idea was that autoit completely disables the option to move mouse when it's clicked (when it's hold) because I think it's very simple to use. Do you have got any ideas for this option?Btw SplashTop is not laggy as I have experienced so far (Teamviewer is "laggier"), my phone is connected on wifi with max speed 10Mbps and it's just like 600ms ping but that doesn't really matter). Edited June 15, 2015 by knucklesCZ
Scripthen Posted June 15, 2015 Posted June 15, 2015 (edited) Well, my phone is 960x540 and I'm streaming my PC screen in 1280x720 so it's not really 4K or anything.I haven't thought about your option yet (autoit release hold and follow the X,Y moves).My idea was that autoit completely disables the option to move mouse when it's clicked (when it's hold) because I think it's very simple to use. Do you have got any ideas for this option?How do you mean to completely disable the mouse movement on drag? That's more System API level, I don't think Autoit can do such a thing tbh.Regardless, you must note it's all about latency timing, even a 5GHz spec N+ would have trouble delivering such a smooth experience.P.s. experiment with Tight VNC. What phone do you have? 10 mbps is rather slow, less then Wireless G spec. Edited June 15, 2015 by Scripthen
knucklesCZ Posted June 15, 2015 Author Posted June 15, 2015 (edited) How do you mean to completely disable the mouse movement on drag? That's more System API level, I don't think Autoit can do such a thing tbh.Regardless, you must note it's all about latency timing, even a 5GHz spec N+ would have trouble delivering such a smooth experience.P.s. experiment with Tight VNC. What phone do you have? 10 mbps is rather slow, less then Wireless G spec.10 Mbps is my home and the other I'm going to use are surely not faster. by 10 Mbps I mean max download speed 1,25MBps. So it's not so easy as I thought because it'd need some dll injecting, right?Well I maybe found the solution without autoit. I'll try to abuse mouse settings.See this image: autoit.bmp Edited June 15, 2015 by knucklesCZ
Scripthen Posted June 15, 2015 Posted June 15, 2015 So wait, are you playing this locally or playing from a remote location? (E.g. playing at home from m9's house)DLL injecting is using changing (system) resources which are not meant to be changed. I doubt you'll need this.
knucklesCZ Posted June 15, 2015 Author Posted June 15, 2015 So wait, are you playing this locally or playing from a remote location? (E.g. playing at home from m9's house)DLL injecting is using changing (system) resources which are not meant to be changed. I doubt you'll need this.I'll control the pc from my phone, from a remote location as you say, because even home wifi connects to the internet and then to my PC. I can do something like LAN using a USB cable but that's pretty useless.
Scripthen Posted June 15, 2015 Posted June 15, 2015 I'll control the pc from my phone, from a remote location as you say, because even home wifi connects to the internet and then to my PC. I can do something like LAN using a USB cable but that's pretty useless.But if you're signed to the wireless network at home and you're controlling the PC at home also, it's more WLAN (Wireless Local) so you'll get 54 - 300 mbps.
knucklesCZ Posted June 15, 2015 Author Posted June 15, 2015 (edited) But if you're signed to the wireless network at home and you're controlling the PC at home also, it's more WLAN (Wireless Local) so you'll get 54 - 300 mbps.Well I made this for the moment.I don't understand one thing, though. 26 - UP should be y+10 but it's not and 28 - DOWN should be y-10 but it's y+10. It is somehow reversed. LEFT & RIGHT are ok. They work as they are supposed to (left is x-10 and right is x+10).There isn't an error in the function Hex numbers declared because I found this on an other forum so 28 is really DOWNPostMessage(currChild, VK_DOWN, 0, 0);// VK_DOWN = 0x28; ---> so 28 is really DOWN #include <Misc.au3> #include <MsgBoxConstants.au3> $hDLL = DllOpen("user32.dll") ;25 LEFT ;26 UP ;27 RIGHT ;28 DOWN While 1 ;program on $aCoord = MouseGetPos() While _IsPressed(25, $hDLL) MouseMove($aCoord[0] - 10, $aCoord[1]) $aCoord = MouseGetPos() Sleep(20) WEnd While _IsPressed(26, $hDLL) MouseMove($aCoord[0], $aCoord[1] - 10) $aCoord = MouseGetPos() Sleep(20) WEnd While _IsPressed(27, $hDLL) MouseMove($aCoord[0] + 10, $aCoord[1]) $aCoord = MouseGetPos() Sleep(20) WEnd While _IsPressed(28, $hDLL) MouseMove($aCoord[0], $aCoord[1] + 10) $aCoord = MouseGetPos() Sleep(20) WEnd WEnd ;program on Edited June 15, 2015 by knucklesCZ
Moderators Melba23 Posted June 15, 2015 Moderators Posted June 15, 2015 (edited) knucklesCZ,This is game automation - thread locked.Scripthen,Have the courage of your convictions - do not let the BIG FONT bully you.M23Edit: And knucklesCZ, I see you reported the person telling you about the rules - I suggest you read them carefully before you post again. Edited June 15, 2015 by Melba23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts