
Mouse
Active Members-
Posts
28 -
Joined
-
Last visited
Everything posted by Mouse
-
Can you block certain http request? Like block a website... kind of like you can do with Charles/Fiddler's Black List option? I want to block some websites, not in a IE browser but just for the whole computer and all programs that will try to go to that website. No particular reason really, just wanted to know how I would even begin to start this project.
-
This may be late, but whatever. What do you mean by pixels on the GUI? Do you mean the little black dots that you see separated from each other in the GUI editor? They are there for guide lines I believe... they disappear after you run the GUI. Can you be a little bit more specific so I can get back at you?
-
Hey, I did some searchs and stuff but I can't find out how to solve this horrible issue... My dad won't let me install autoit on his computer anymore and its the only one I have to script on. I've tried to convince him that It didn't ruin his computer but he doesn't believe me, I've presented facts after facts and FAQ's but he still wont budge. I was wondering if there was a program that has been made and compiled that will allow me to script and execute scripts without actually installing autoit? thanks.
-
Hey guys, I know there is a file in my FTP server that is called "test.txt" but I am having trouble reading it and then displaying it in a msgbox, It returns 0 . Please help me ;server information $server = 'CENSORED.bugs3.com' $username = 'CENSORED' $pass = 'CENSORED' ;UPLOAD WHAT YOU SAID! $Open = _FTPOpen('MyFTP Control') $Conn = _FTPConnect($Open, $server, $username, $pass) $Ftpp = _FTPReadFile($Conn,"test.txt") $Ftpc = _FTPClose($Open) msgbox(1,"lol",$Ftpp)
-
Thanks alot for your help. :-)
-
Hey um, i don't really know how to explain this without confusing you guys so i'll give it my best shot... i hope that someone knows a solution to this; as again this is just me testing my ability with autoit. I have a form that i made and the value goes down randomly (for the sake of testing) and when it goes down to whatever value randomly, it will shoot back up to 100% eventually and repeat the process at a random intervel. (I guess you could think of it like a health bar? Not sure if thats the perfect description.) I have a "while" loop going on where it constantly checks that value and make sure it is 100%. If it is 100% it will just set a label or something to "Full" and if it is not 100%, it will go and say "Lowered" on that label. It will say "Lowered" until it is 100%, obviously. but thats not what i want; i want it to say decreased for a temporary amount of time like 1 second, or 2 seconds and then just wait for the value to go down again... but i have absolutetly NO idea how i would go about doing this , and i'm dang determinded to do this somehow. If anyone knows how i would go about doing this please help. While 1 Detect() Wend Func Detect() $read = GuiCtrlRead($Label1) If $read = 100 Then GuiCtrlSetData($Label2,"Full") Else GuiCtrlSetData($Label2,"Decreased!") EndIf Endfunc For the sake of this i didn't bother adding the includes and stuff since i know that's well. I'm hoping someone has the intelligence to help me with this
-
Help with my Mouseclick to Controlclick?
Mouse replied to Mouse's topic in AutoIt General Help and Support
Nope, i did not read the help file but thanks! Love how i get help so fast on this forum -
Help with my Mouseclick to Controlclick?
Mouse replied to Mouse's topic in AutoIt General Help and Support
This script did work, like a hour ago when i did it and now it wont work. It's suppose to display the tooltip where the mouse coords are but it doesnt go to the mouse, it goes to one of the sides of my screen, what the heck? did i do something wrong? #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Include <Constants.au3> #include <WinAPI.au3> #include <Misc.au3> #include <File.au3> #include <Misc.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Roblox Draw", 203, 61, 192, 124) $Input1 = GUICtrlCreateInput("Input1", 0, 0, 201, 21) $Input2 = GUICtrlCreateInput("Input2", 0, 32, 201, 21) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### ;;;;;;;;;;;;;;;;;;;;;;;;; Local $hDLL = DllOpen("user32.dll") Global $Paused HotKeySet("{F4}", "getdat") While 1 WEnd func getdat() $pos = MouseGetPos() tooltip("lol",1, $pos[0] & "," & $pos[1]) endfunc -
Help with my Mouseclick to Controlclick?
Mouse replied to Mouse's topic in AutoIt General Help and Support
I will look into that, thanks man. -
Hey guys, i'm sorry i'm not very active here... but i've been coding with autoit for a couple years but i cant get this to work. I have tried all kinds of things but to no luck. Its a script that doesn't really serve any purpose but for a test on my self but i have failed it. Its suppose to work like this, you open up Paint (Mspaint) and then you resize the drawing area to fit the box completetly (recommended) then you can place something like Notepad overtop of the Mspaint window, overtop of the drawing area and then wherever you click on the notepad screen (thats in the drawing area overtop of ms paint) it will grab the coords of your mouse when you click, and then use those coords for a ControlClick on the mspaint window. Basically allowing me to click on the window from anywhere, even if notepads not ontop (obviously) like my desktop. It sends the controlclick to mspaint, but its y axis is always in the middle of the drawing part but the x axis works fine. Please help me, i really want to see whats going on here. #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Include <Constants.au3> #include <WinAPI.au3> #include <Misc.au3> #include <File.au3> #include <Misc.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("MsPaint Draw", 203, 61, 192, 124) $Input1 = GUICtrlCreateInput("Input1", 0, 0, 201, 21) $Input2 = GUICtrlCreateInput("Input2", 0, 32, 201, 21) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### ;;;;;;;;;;;;;;;;;;;;;;;;; Local $hDLL = DllOpen("user32.dll") While 1 If _IsPressed("01", $hDLL) Then getdat() ; Now wait until the key is released While _IsPressed("01", $hDLL) Sleep(1) WEnd EndIf Sleep(1) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; While 1 WEnd func getdat() $pos = MouseGetPos() $Handle = WinGetHandle("Untitled - Paint") sleep(100) Controlclick($Handle,"","Afx:d0000:81","left",1, $pos[0] & "," & $pos[1]) endfunc
-
Thank you so much! Genius!
-
Works with Hotkey but not Ispressed?
Mouse replied to Mouse's topic in AutoIt General Help and Support
Oh, it was just a example - I'm actually using it to remap all the keys to a custom. -
-edit- Oops, i didnt mean to set the title to something that wasnt informing! #include <IE.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Local $oIE = _IECreateEmbedded() HotKeySet("{ENTER}", "GrabTranslateEnter") #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 117, 27, 1112, 126, -1, BitOR($WS_EX_TOPMOST,$WS_EX_WINDOWEDGE)) GUICtrlCreateObj($oIE, 32, 8, 33, 9) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### _IENavigate($oIE, "http://www.albinoblacksheep.com/text/aoler") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd func GrabTranslateEnter() $Test = WinGetHandle("Untitled - Notepad","") $hDLL = DllOpen("user32.dll") $GetText = ControlGetText($Test,"","Edit1") ;;;;;;;;;;;;;;;;;;;;;;; Local $oQuery = _IEGetObjById($oIE, "translatethis") _IEFormElementSetValue($oQuery, $GetText) sleep(100) $colTags = _IETagNameGetCollection($oIE, "input") For $oTag In $colTags ; Might also work this way: ; If $oTag.value = "Release" Then If _IEPropertyGet($oTag, "innertext") = "Translate!" Then _IEAction($oTag, "click") EndIf Next $Noob = _IEFormElementGetValue($oQuery) sleep(100) ControlHide($Test,"","Afx:00400000:2b") ControlSetText($Test,"","Edit1",$Noob) Sleep(100) ControlShow($Test,"","Afx:00400000:2b") endfunc That right there, Theres a form that has a little webbrowser embedded into it. That webrowser goes to a translator website. Its suppose to grab the current text that inside of notepad, paste it into the first translate box on that webbrowser, press the Translate button, copy the results from the results box, and replace the text. But its not working D: i have no idea why... can someone help me fix this?
-
Works with Hotkey but not Ispressed?
Mouse replied to Mouse's topic in AutoIt General Help and Support
Thanks :C -
Okay, so i got this... ;Script that works using hotkeys HotKeySet("b", "replace") While 1 Sleep(100) WEnd Func replace() Send("c") EndFunc That piece of script (^) makes it so when you press "b" it doesnt do "b", but it does "c". Now, i tried this with Ispressed but im not having no luck, whatsoever. All it does is send "B" then it sends "C"... i want it to send only C. and it work exactly like it does in the script that is working. But i'm having absolutetly no luck with this... i've been trying for about 2 hours now along with something else. ;Script that doesnt work using Ispressed #Include <Constants.au3> #include <WinAPI.au3> #include <Misc.au3> If _IsPressed("42", $hDLL) Then replace() ; Now wait until the key is released While _IsPressed("42", $hDLL) Sleep(10) ; WEnd endif WEnd Func replace() Send("c") endfunc
-
Okay, guys i know this sounds a little confusing by the title... but i got a question and i cant figure out anyway i can do this. You know, the ispressed feature? I have ispressed set to T; and the function that happens when i press T will do send("z") And i want to type inside of any writing program, or textbox and it put down "Z" before "T" is registered. Or just disable the Key T from sending T anyway and just do the function. Which would be send("Z") sleep(100) send("T") but i can not figure out how to do either of those methods. Please help I hope someone here can do this - im notz skilled enough for itz. i sound like such a newb... sorry guys
-
Guys, i fixed it - Thanks for all the help Everytime i ever got stuck on something i couldnt figure out - you guys got to it in a snap... and again thanks everyone.
-
Oh yeah, that was a mistake... the $ClientName and the $Foldername I forgot to edit the other one in this post... anyway, it still dont work
-
Hi, i've been trying to create a script so that you type in the name of a folder in a input and then you press a button to go into the folder that you put the name of in input and then copy a specific file in there and then paste it inside of another folder. But i'm having a problem - I type in the exact name of a folder and it doesnt work, here it is $FolderName = GuiCtrlRead($Input1) FileCopy("C:UsersAustin LayneAppDataRoamingNoobNoobSo"&$ClientName&"example.jar" But if i do it like this without the input... it works $ClientName = GuiCtrlRead($Input1) FileCopy("C:UsersAustin FroobAppDataRoamingNoobNoobSoexample.jar" -Also i didnt add where i was going to paste the file at because it wasnt nessassary
-
Tryin' something different I have been using Autoit for about 2 years now, and i have always been using Mousemove... so i want to see if i can approach this a different way by using this method and actually setting the mouse position; thats all.
-
Can someone help me with this? I'm trying to (set) the mouse position with $Haha = DllCall("user32.dll "," bool "," SetCursorPos "," int ",997," int ", 435) and when i run that, there is no errors... but it doesn't set my mouse to that position Here is my script... when i press the middle mouse button it is suppose to run $Haha but again - it doesnt
-
Thank you guys sooooo much! Just wow, i've been having this problem for so long, and you just fixed it so fast! Merry Christmas!