Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» ~=?{The future is here, TastyExploit officially open to the public}?=~
Tue Mar 02, 2010 11:00 pm by Dami

» My first aa script
Tue Mar 02, 2010 7:00 am by wafflemaster

» the real story behind Maverin
Tue Mar 02, 2010 1:33 am by SoundOfDeat

» Random spam
Mon Mar 01, 2010 11:52 pm by Danny1994

» [Request] EMS v56 Exe
Mon Mar 01, 2010 12:39 am by Dami

» [Blacklist] NX-Trading Blacklist.
Mon Mar 01, 2010 12:38 am by Danny1994

» I have a question regarding the meso farmer
Sat Feb 27, 2010 10:30 pm by Dami

» What are you listening to now?
Sat Feb 27, 2010 7:57 pm by Noname111111

» Video(s) Of The Day
Sat Feb 27, 2010 7:37 pm by Noname111111

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
free forum
 



Problem with AutoIt

View previous topic View next topic Go down

Problem with AutoIt

Post by Nysba on Sun Sep 27, 2009 12:54 am

So, I've made an UA that moves my character left and then right or viceversa.
The problem is, I tried to make it so that it would send the keystrokes to Maplestory, but I haven't succeeded.
I tried ControlSend, but it didn't work.
Should it work, and if it should, how do I do it? Like, ControlSend("Maplestory","","LEFT") or something.
Any help is appreciated.
E3: I forgot to mention, I even tried copying the ControlSend line from, I think Wallz' sawsil, but it still didn't work... maybe I'm doing something really obvious wrong.
And another question: does the ControlSend command support the {LEFT down} and {LEFT up} commands?

Btw, credits to the-only-one for helping me with the script. Idk if he registered on dafo or not.

E: And here is the script if anybody wants to see it. And maybe possibly give some advice on how to make it better.
Spoiler:

hotkeyset("{PGDN}","UA_START")
hotkeyset("{DELETE}","stop")
HotKeySet("{END}","Pause")
Global $HotKey=False ;Idk what this and the other Globals do, lol, the-only-one pretty much did the whole script(clown), I just modified it for my own needs.
Global $ua=False
Global $pause=False

while 1

sleep (5)


wend

func Pause()
$ua=False
EndFunc

func UA_START()
$ua=True
if $ua=True Then
Do
Send("{LEFT down}")
Sleep (300)
Send("{LEFT up}")
Send("{RIGHT down}")
Sleep (65)
Send("{RIGHT up}")
Sleep (15000)
until $ua=False
EndIf
EndFunc

func stop ()
exit
endfunc

And another question, could I make it like this:
Spoiler:

$counter=0

func UA_START
$counter+1
endfunc

If $counter=1 then
Do
Send("{LEFT down}")
Sleep (300)
Send("{LEFT up}")
Send("{RIGHT down}")
Sleep (65)
Send("{RIGHT up}")
Sleep (15000)
until $counter=0
endif

If $counter=2 then
$counter=0
endif

With this, I could take out the Pause function and it would help reduce the hotkey numbers.
I know this may be a bit nooby and stuff, but it is how it is.

E2: I will start with autoit, and maybe move to C# or something a bit harder. Then when I'm comfortable with that, I might move to C++ if I continue with Maple and coding in general.

Nysba
New member
New member

Posts : 99
Join date : 2009-08-13
Age : 22
Location : Finland

Back to top Go down

Re: Problem with AutoIt

Post by Wallz on Thu Oct 01, 2009 6:12 am

sorry about late reply, but try ControlSend("MapleStory", "", "", "{LEFT}") that should work fine ( haven't tested though, code in C# now)

Wallz
Bronze Member
Bronze Member

Posts : 104
Join date : 2009-08-15

Back to top Go down

Re: Problem with AutoIt

Post by Nysba on Thu Oct 01, 2009 12:30 pm

Ok, I think I have tried that, but I'll try it again, exactly as you said.
Copypasta.

Nysba
New member
New member

Posts : 99
Join date : 2009-08-13
Age : 22
Location : Finland

Back to top Go down

Re: Problem with AutoIt

Post by Wallz on Thu Oct 01, 2009 2:23 pm

did that work?

Wallz
Bronze Member
Bronze Member

Posts : 104
Join date : 2009-08-15

Back to top Go down

Re: Problem with AutoIt

Post by Nysba on Thu Oct 01, 2009 7:42 pm

I'm going to test it within an hour, just came home.

Nysba
New member
New member

Posts : 99
Join date : 2009-08-13
Age : 22
Location : Finland

Back to top Go down

Re: Problem with AutoIt

Post by Guest on Sat Oct 03, 2009 1:49 am

Listen, if u program C++, PostMessage or SendMessage wont work, as Nexon made them now respond to keySendings, but only to KeyPresses (Meaning a key goes |down -> up|

Which means for C++ u need to use keybd_event function (Will post a tutorial later)

Im not sure, wether u use Delphi (Never ever seen Delphi) or wether u use Visual Basic. gotta be one of them, so listen, what i just told was; it doesnt respond to controlSend which is just like a Key-Send, it has to be a key-press. so u need to find another code, or u can watch my tutorial, which i post later. if u wanna watch it, u better get c++ Very Happy

Guest
Guest


Back to top Go down

Re: Problem with AutoIt

Post by Wallz on Mon Oct 05, 2009 1:19 am

Postmessage works with C# and also Control send works with autoit :S I code in both languages/scripts and they work fine so I think you just need to stick with your C++

Wallz
Bronze Member
Bronze Member

Posts : 104
Join date : 2009-08-15

Back to top Go down

Re: Problem with AutoIt

Post by maartenvh1 on Sun Nov 01, 2009 9:42 pm

I have the same problem.
Can't fix it

maartenvh1
New member
New member

Posts : 30
Join date : 2009-11-01
Age : 22
Location : The Netherlands

Back to top Go down

Re: Problem with AutoIt

Post by Lapheoria on Mon Nov 02, 2009 12:08 am

There was a dll unblocks postmessage.(PostMessageX)
avatar
Lapheoria
New member

Posts : 23
Join date : 2009-08-25

Back to top Go down

Re: Problem with AutoIt

Post by maartenvh1 on Mon Nov 02, 2009 12:09 am

Ok. Thanks
i Going Search for it

maartenvh1
New member
New member

Posts : 30
Join date : 2009-11-01
Age : 22
Location : The Netherlands

Back to top Go down

Re: Problem with AutoIt

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum