Jump to content

omiden

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by omiden

  1. I can't really get it working, im just doing a simple txt file made a filesplit. I just need one variable to be the width and another to be the height.
  2. Well any of those would work a .ini, format could be anyway like I think theres a readline1 readline2 thing. Or I could just put it all in one line and use "," "|" as a filesplit. EXAMPLE : 1920,1200 But do you know how i would do the .ini file?
  3. I'm trying to get 2 values from a text file and then use that data in the txt files for the program. Heres a example. The text file will hold the users requested resolution he wants to use, so two lines height & width. I want to take that data and implement it into my program where it holds the height & width, can anyone tell me where at in the help file I can read up on how to do this? Or if you have the code already share it?
  4. wow nice job, im gonna learn a lot from this
  5. Wow pretty stupid of me to do that, thanks
  6. Can someone tell me why this code doesn't work? When I hit "-" that is suppose to turn that code on. When I hit "=" its suppose to be off and not do anything. #include <Misc.au3> $dll = DllOpen("user32.dll") $ExitKey = '75'; ESC HotKeySet ( "BD" , "On" ) HotKeySet ( "BB" , "Off" ) Func On() While 1 Sleep(10) If _IsPressed("01", $dll) Then MouseMove(640, 518, 100) If _IsPressed($ExitKey, $dll) Then ExitLoop WEnd DllClose($dll) EndFunc Func Off() While 1 Sleep(10) If _IsPressed("01", $dll) Then MouseMove(0, 0, 0) If _IsPressed($ExitKey, $dll) Then ExitLoop WEnd DllClose($dll) EndFunc
  7. Ok I read up on it and this is what I got but I get a error. #include <Misc.au3> $dll = DllOpen("user32.dll") $ExitKey = '75'; ESC HotKeySet ( "BD" [, "On"] ) HotKeySet ( "BB" [, "Off"] ) Func On() While 1 Sleep(10) If _IsPressed("01", $dll) Then MouseMove(640, 518, 100) If _IsPressed($ExitKey, $dll) Then ExitLoop WEnd DllClose($dll) EndFunc Func Off() While 1 Sleep(10) If _IsPressed("01", $dll) Then MouseMove(0, 0, 0) If _IsPressed($ExitKey, $dll) Then ExitLoop WEnd DllClose($dll) EndFunc Errors >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\***\Desktop\recoil.au3" C:\Users\***\Desktop\recoil.au3 (5) : ==> Error parsing function call.: HotKeySet ( "BD" [, "On"] ) HotKeySet ( "BD" ^ ERROR >Exit code: 1 Time: 0.212
  8. Please read my last post below! How would I add a toggle on/off key to this code, so when u hit like f3 its on then f4 off? Also is there a keynumber for scrollwheel? #include <Misc.au3> $dll = DllOpen("user32.dll") $ExitKey = '1B'; ESC While 1 Sleep(10) If _IsPressed("01", $dll) Then MouseMove(215, 485, 50) If _IsPressed($ExitKey, $dll) Then ExitLoop WEnd DllClose($dll)
  9. Yes something like that, but I have figured it out already. Just now I want to be able to have a toggle key for this function so the program can stay running in the background and when I need this done I can toggle it on/off. But no luck with a toggle key yet
  10. Is there a specific mouse move function that can just tell it to move down on the y axis at a certain speed? I'm not talking about pixel search or anything, I'm trying to get it to move down on the y axis at a slow speed from a keypress.
  11. I just started Autoit and think its a great language, but I have come across something I can't figure out. I try to make the code check if the spacebar is pressed and if it is then send a key after, but then stay running without exiting the program. Heres the code #include <Misc.au3> $dll = DllOpen("user32.dll") If _IsPressed("20", $dll) Then Send("{SPACE 20}") EndIf
×
×
  • Create New...