inloveofrapo Posted June 14, 2008 Share Posted June 14, 2008 (edited) Well, Here is my script : Opt("SendKeyDelay", 2)Opt("SendKeyDownDelay", 2)HotKeySet("+!r", "Sendone")HotKeySet("+!c", "Sendtwo")While(1) Sleep(100)WEndFunc Sendone() Send("Hi, this is my first script.")EndFuncFunc Sendtwo() Send("Hi, this is my second.") EndFuncWhats wrong? After it finished script, it keeps shift + alt down, can somebody correct this script ? Or what do i have to add so it dos'nt keep the buttons down ? Edited June 14, 2008 by inloveofrapo Link to comment Share on other sites More sharing options...
inloveofrapo Posted June 14, 2008 Author Share Posted June 14, 2008 Nobody knows? :/ Link to comment Share on other sites More sharing options...
Kiti Posted June 14, 2008 Share Posted June 14, 2008 See post #4 here. It's EXACTLY what you need Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
inloveofrapo Posted June 14, 2008 Author Share Posted June 14, 2008 I see, im trying, but cant rlly figure it out what i have to do >< but i try, if somebody is fastere than me, please post here how the script shud look Link to comment Share on other sites More sharing options...
inloveofrapo Posted June 14, 2008 Author Share Posted June 14, 2008 Could somebody please tell me how to do. I Cant figure it out, tried xx times now ><.. Im willing to pay FG for it ! Link to comment Share on other sites More sharing options...
Kiti Posted June 14, 2008 Share Posted June 14, 2008 Could somebody please tell me how to do.I Cant figure it out, tried xx times now ><..Im willing to pay FG for it !I'm working on it, just wait a second.What's FG? ) Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
ReaImDown Posted June 14, 2008 Share Posted June 14, 2008 I'm working on it, just wait a second.What's FG? )a fund from www.d2jsp.org used to trade for Diablo II items. [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
Kiti Posted June 14, 2008 Share Posted June 14, 2008 (edited) Here it is! #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep ( 250 ) If _IsPressed("A0", $dll) Then If _IsPressed("12", $dll) Then If _IsPressed("52", $dll) Then Send("Hi, this is my first script.") ExitLoop EndIf EndIf EndIf WEnd While 1 Sleep ( 250 ) If _IsPressed("A0", $dll) Then If _IsPressed("12", $dll) Then If _IsPressed("43", $dll) Then Send("Hi, this is my second.") ExitLoop EndIf EndIf EndIf WEnd DllClose($dll) What? Edited June 14, 2008 by Kiti Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
Developers Jos Posted June 14, 2008 Developers Share Posted June 14, 2008 ok... and you are trying to do....what ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
inloveofrapo Posted June 14, 2008 Author Share Posted June 14, 2008 And what do i have to press so it says that scripted thing ? - Where can i see the letter to press it on this script? Link to comment Share on other sites More sharing options...
ReaImDown Posted June 14, 2008 Share Posted June 14, 2008 (edited) Here it is! #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep ( 250 ) If _IsPressed("A0", $dll) Then If _IsPressed("12", $dll) Then If _IsPressed("52", $dll) Then Send("Hi, this is my first script.") ExitLoop EndIf EndIf EndIf WEnd While 1 Sleep ( 250 ) If _IsPressed("A0", $dll) Then If _IsPressed("12", $dll) Then If _IsPressed("43", $dll) Then Send("Hi, this is my second.") ExitLoop EndIf EndIf EndIf WEnd DllClose($dll) What? why dont you use if _ispressed() and _ispressed() and _ispressed() then.... Edited June 14, 2008 by ReaImDown [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
inloveofrapo Posted June 14, 2008 Author Share Posted June 14, 2008 reaimdown please post if you're trying to help, its not a discuss topic. Link to comment Share on other sites More sharing options...
Kiti Posted June 14, 2008 Share Posted June 14, 2008 why dont you use if _ispressed() and _ispressed() and _ispressed() then....Aha!!! Thanks. I didn't knew the magic word was "and". I was used to && from Java, and I've tried other several combinations, but I didn't thought of using "and". Thank you! Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
inloveofrapo Posted June 14, 2008 Author Share Posted June 14, 2008 So anybody is going to tell me what i have to press so it types the script down ?@ this one : #include <Misc.au3>$dll = DllOpen("user32.dll")While 1 Sleep ( 250 ) If _IsPressed("A0", $dll) Then If _IsPressed("12", $dll) Then If _IsPressed("52", $dll) Then Send("Hi, this is my first script.") ExitLoop EndIfEndIfEndIfWEndWhile 1 Sleep ( 250 ) If _IsPressed("A0", $dll) Then If _IsPressed("12", $dll) Then If _IsPressed("52", $dll) Then Send("Hi, this is my second.") ExitLoop EndIfEndIfEndIfWEndDllClose($dll) Link to comment Share on other sites More sharing options...
aslani Posted June 14, 2008 Share Posted June 14, 2008 You can click the link on my signature too if you want. [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version Link to comment Share on other sites More sharing options...
Kiti Posted June 14, 2008 Share Posted June 14, 2008 Aha!!! Thanks. I didn't knew the magic word was "and". I was used to && from Java, and I've tried other several combinations, but I didn't thought of using "and". Thank you! #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep ( 250 ) If _IsPressed("A0", $dll) and If _IsPressed("12", $dll) and If _IsPressed("52", $dll) Then Send("Hi, this is my first script.") ExitLoop EndIf WEnd While 1 Sleep ( 250 ) If _IsPressed("A0", $dll) and If _IsPressed("12", $dll) and If _IsPressed("43", $dll) Then Send("Hi, this is my second.") ExitLoop EndIf WEnd DllClose($dll) Don't PM me, I was replaying even if you didn't. But what's that hard to edit acording to what ReaImDown said? Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
ReaImDown Posted June 14, 2008 Share Posted June 14, 2008 (edited) #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep ( 250 ) If _IsPressed("A0", $dll) and If _IsPressed("12", $dll) and If _IsPressed("52", $dll) Then Send("Hi, this is my first script.") ExitLoop EndIf WEnd While 1 Sleep ( 250 ) If _IsPressed("A0", $dll) and If _IsPressed("12", $dll) and If _IsPressed("43", $dll) Then Send("Hi, this is my second.") ExitLoop EndIf WEnd DllClose($dll) Don't PM me, I was replaying even if you didn't. But what's that hard to edit acording to what ReaImDown said? you can take it further by using functions if you wanted, so you could jump back and forth between 'scripts' and come, on guys, arnt I helpful? even just alittle? #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep ( 250 ) If _IsPressed("A0", $dll) and If _IsPressed("12", $dll) and If _IsPressed("52", $dll) Then firstscript() EndIf If _IsPressed("A0", $dll) and If _IsPressed("12", $dll) and If _IsPressed("43", $dll) Then secondscript() EndIf WEnd DllClose($dll) func firstscript() Send("Hi, this is my first script.") endfunc func secondscript() Send("Hi, this is my second.") endfunc Edited June 14, 2008 by ReaImDown [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
Kiti Posted June 14, 2008 Share Posted June 14, 2008 ok... and you are trying to do....what ?who? And what do i have to press so it says that scripted thing ?- Where can i see the letter to press it on this script?The buttons are the from your first post. You have to press Alt+Shift+R for the first message, and Alt+Shift+C for the second. Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
inloveofrapo Posted June 14, 2008 Author Share Posted June 14, 2008 #include <Misc.au3>$dll = DllOpen("user32.dll")While 1 Sleep ( 250 ) If _IsPressed("A0", $dll) and If _IsPressed("12", $dll) and If _IsPressed("52", $dll) Then firstscript() EndIf If _IsPressed("A0", $dll) and If _IsPressed("12", $dll) and If _IsPressed("43", $dll) Then secondscript() EndIfWEndDllClose($dll)func firstscript() Send("Hi, this is my first script.")endfuncfunc secondscript() Send("Hi, this is my second.")endfuncI get error for line 20." If _IsPressed("A0", $dll) and If _IsPressed("12", $dll) and If _IsPressed("52", $dll) Then"error says -> " Error : IF statements must have a "Then" word " :S ? Link to comment Share on other sites More sharing options...
ReaImDown Posted June 14, 2008 Share Posted June 14, 2008 I get error for line 20." If _IsPressed("A0", $dll) and If _IsPressed("12", $dll) and If _IsPressed("52", $dll) Then"error says -> " Error : IF statements must have a "Then" word " :S ?see, I didnt read b4 I posted...change " If _IsPressed("A0", $dll) and If _IsPressed("12", $dll) and If _IsPressed("52", $dll) Then"to" If _IsPressed("A0", $dll) and _IsPressed("12", $dll) and _IsPressed("52", $dll) Then" [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
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