Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 04:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Converting au3 file to C++.

Discussion on Converting au3 file to C++. within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
jendriii's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 94
Received Thanks: 93
Converting au3 file to C++.

Hello my friends.
I've written nice script in autoit. But there is also problem. My game, after 2 minutes crashes beacause of hackshield.
Is it possible to convert this code:
HTML Code:
$state=False
 
HotKeySet("`", "function")
HotKeySet("!k", "kill")
 
 
Do
           if $state = True Then
          Send("{a down}")
          Sleep(10)
          Send("{1}")
          Sleep(10)
          Send("{a up}")
          Sleep(5)
 
          MouseClick("left")
          Sleep(5)
 
          Send("{d down}")
          Sleep(10)
          Send("{2}")
          Sleep(10)
          Send("{d up}")
          Sleep(5)
 
          MouseClick("left")
          Sleep(5)
 
          Send("{a down}")
          Sleep(10)
          Send("{3}")
          Sleep(10)
          Send("{a up}")
          Sleep(5)
 
          MouseClick("left")
          Sleep(5)
 
          Send("{d down}")
          Sleep(10)
          Send("{4}")
          Sleep(10)
          Send("{d up}")
          Sleep(5)
 
          MouseClick("left")
          Sleep(5)
 
          Send("{a down}")
          Sleep(10)
          Send("{5}")
          Sleep(10)
          Send("{a up}")
          Sleep(5)
 
          MouseClick("left")
          Sleep(5)
 
          Send("{d down}")
          Sleep(10)
          Send("{1}")
          Sleep(10)
          Send("{d up}")
          Sleep(5)
 
          MouseClick("left")
          Sleep(5)
 
   Endif
Until False
 
Func function()
   $state = NOT $state
   EndFunc
 
Func kill()
   Exit
   EndFunc
Into C++ language?
It works in this way:
" ` " - start/stop LOOP
alt + k or just k exit the program
Loop seems as you see.
Is any so good who could rewrite that using ms visual c++ ?
Thanks in advance.
Grezz.
jendriii is offline  
Old 03/15/2014, 12:46   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
What should change if it's written in C++? If the game crashes because of hackshield get a bypass and still use your AutoIt script.
alpines is offline  
Old 03/15/2014, 18:25   #3
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by jendriii View Post
Hello my friends.
I've written nice script in autoit. But there is also problem. My game, after 2 minutes crashes beacause of hackshield.
Is it possible to convert this code:
HTML Code:
$state=False
 
HotKeySet("`", "function")
HotKeySet("!k", "kill")
 
 
Do
           if $state = True Then
          Send("{a down}")
          Sleep(10)
          Send("{1}")
          Sleep(10)
          Send("{a up}")
          Sleep(5)
 
          MouseClick("left")
          Sleep(5)
 
          Send("{d down}")
          Sleep(10)
          Send("{2}")
          Sleep(10)
          Send("{d up}")
          Sleep(5)
 
          MouseClick("left")
          Sleep(5)
 
          Send("{a down}")
          Sleep(10)
          Send("{3}")
          Sleep(10)
          Send("{a up}")
          Sleep(5)
 
          MouseClick("left")
          Sleep(5)
 
          Send("{d down}")
          Sleep(10)
          Send("{4}")
          Sleep(10)
          Send("{d up}")
          Sleep(5)
 
          MouseClick("left")
          Sleep(5)
 
          Send("{a down}")
          Sleep(10)
          Send("{5}")
          Sleep(10)
          Send("{a up}")
          Sleep(5)
 
          MouseClick("left")
          Sleep(5)
 
          Send("{d down}")
          Sleep(10)
          Send("{1}")
          Sleep(10)
          Send("{d up}")
          Sleep(5)
 
          MouseClick("left")
          Sleep(5)
 
   Endif
Until False
 
Func function()
   $state = NOT $state
   EndFunc
 
Func kill()
   Exit
   EndFunc
Into C++ language?
It works in this way:
" ` " - start/stop LOOP
alt + k or just k exit the program
Loop seems as you see.
Is any so good who could rewrite that using ms visual c++ ?
Thanks in advance.
Grezz.
Try this:
Shadow992 is offline  
Reply


Similar Threads Similar Threads
Converting flat-file to MySQL (ini to MySQL) - How?
09/13/2011 - CO2 Programming - 3 Replies
The question says it all. Using LOTF is a real joy for me because I understand it real well. The only problem is I like to use my PHP skills and I don't know/think I can have it read data like it would from a MySQL database by using .ini databases. How would I go about re-writing the database to save/load by using MySQL? Is it as simple as copying another sources way of save/loading?
Converting
06/21/2011 - CO2 Private Server - 1 Replies
So I'm converting this Trade Partner to NCOS 5165, and having trouble with saving, deleting. On this other source, it's for sql. The source I use (NCOS), is not sql. So basically I need help converting. Here is what I need converted (I'm not asking to be spoon fed, just any help will be appreciated). public static void DelPartner(uint UID, uint IDYou) { MySqlCommand Cmd = new MySqlCommand(MySqlCommandType.DELETE); Cmd.Delete("TradePartner",...
[HELP] Converting INI To Sql
08/10/2010 - CO2 Private Server - 1 Replies
Hey guys I have run into a problem converting my INI Source to Sql. I am in the process of converting the NPCs from INI. I have converted the ini file thats the easy part but I am stuck on the spawning. I can get the NPCs to load but not to spawn.. **EDIT** Just figured it out. #Request Close
[Help]Converting...
02/02/2010 - CO2 Private Server - 4 Replies
How to convert the packet public static byte ItemLock(int ItemUID, int Type01, int Type02, int Series) { PacketBuilder Packet = new PacketBuilder(2048, 16); Packet.Long(ItemUID); Packet.Int(Type01); Packet.Int(Type02); Packet.Short(0);//where do u call ItemLock method Packet.Long(Series);
Converting to ini's
01/10/2009 - CO2 Private Server - 8 Replies
hey all i heard that if u convert ur accounts and char table to ini's the login freeze will be gone so this is what i have already done in database.cs ChangeOnlineStatus Remove from Friend SaveChar GetCharInfo CreateCharacter Authenticate



All times are GMT +2. The time now is 04:10.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.