Jump to content

Simple script sending keys in background...


Calden
 Share

Recommended Posts

Hello everybody,

I am trying to make a script to attempt to log in in a game when the servers are full... Basically, all it needs to do is send Ctrl+L to the game. I was able to do it without any problem, however I am now trying to make it work while allowing me to use my computer.

Here's my code:

Dim $Paused = False
Dim $Active = True
HotKeySet("{PAUSE}", "togglepause")
HotKeySet("{DELETE}", "QuitApp")


Func QuitApp()
 $Active = False
      Exit
EndFunc


Func togglepause()
   $Paused = NOT $Paused
   While $Paused
 ControlSend("[CLASS:FFXIVGAME; TITLE:FINAL FANTASY XIV: A Realm Reborn]", "", "", "^l")
   WEnd
EndFunc


While $Active
   
Wend

The code seems to work, however it keeps giving me trouble outside the game... For example, I type an URL and it starts opening in new tab, I scroll down and stuff size down... Kindof like as if I was pressing the Ctrl+L EVERYWHERE.

If someone could help, I would be very grateful !

Thanks !

 

Link to comment
Share on other sites

Welcome to the Forum.

You obviously missed a very important section of the rules when you started here, I suggest you read them now, especially the section about Game Automation. That is not allowed here in ANY form, and a MOD will shortly lock this topic.

Hope to see you soon, with a legitimate topic.

Edited by TheSaint

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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