Jump to content

GG Script for LoL - Need Help Please - Error


Recommended Posts

Hi Guys,

The person who release this script has a working exe copy but for some reason I cannot make a exe from the code he released.

I am trying to change the key that is use to execute the script in game and also some of the wording in message. But some reason everytime I try to right click and compile to 32 bit I get this error.

Posted Image

and when I double click the same actual au3 file I get this error.

Posted Image

Here is the code:

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases_
#InstallKeybdHook
; SendMode, Play
#UseHook
;SetKeyDelay, 5, 5
SetKeyDelay, 0, 0, Play
SendMessage(message, sleepduration = 2, block = true)
{
if WinActive("ahk_class RiotWindowClass")
{
  ; Make sure that we dont accidentally send something in all chat.
  GetKeyState, state, Shift
  if state = D
  {
   KeyWait, Shift
  }
 
  GetKeyState, state, Control
  if state = D
  {
   KeyWait, Control
  }
 
  if (block == true)
  {
   BlockInput, On
  }
 
 
  SendPlay, {Enter}
  Sleep, %sleepduration%
  SendPlay, %message%
  Sleep, %sleepduration%
  SendPlay, {Enter} 
 
  if (block == true)
  {
   BlockInput, Off
  }
}
}
$F10::
SendMessage("/all       GGGGGGG", 1, false)
SendMessage("/all    GG         GG", 1, false)
SendMessage("/all   GG", 1, false)
SendMessage("/all GG", 1, false)
SendMessage("/all GG          GGGGG", 1, false)
SendMessage("/all   GG           GG", 1, false)
SendMessage("/all    GG        GG", 1, false)
SendMessage("/all       GGGGGGG", 1, false)
 
SendMessage("/all            GGGGGGG", 1, false)
SendMessage("/all         GG            GG", 1, false)
SendMessage("/all       GG", 1, false)
SendMessage("/all     GG", 1, false)
SendMessage("/all     GG          GGGGG", 1, false)
SendMessage("/all       GG           GG", 1, false)
SendMessage("/all         GG           GG", 1, false)
SendMessage("/all            GGGGGGG", 1, false)

return

Help is highly appreciated. Thank You.

Link to comment
Share on other sites

Try coding it in autoit3 syntax in stead of autohotkey will do wonders.

O.M.G. I did not even realise that it was written in Auto Hot Key and not in AutoIT. Sorry I am new to this stuff. Well I guess that sucks because I don't know AutoIT at all so converting this would be challenging.

Link to comment
Share on other sites

O.M.G. I did not even realise that it was written in Auto Hot Key and not in AutoIT. Sorry I am new to this stuff. Well I guess that sucks because I don't know AutoIT at all so converting this would be challenging.

This is going out on a limb... but have you tried the AutoHotkey forums? XD

Spoiler

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...