Jump to content
Sign in to follow this  
Calden

Simple script sending keys in background...

Recommended Posts

Calden

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 !

 

Share this post


Link to post
Share on other sites
TheSaint

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

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

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

Share this post


Link to post
Share on other sites
Calden

Hello, I did miss it as I looked at the pinned topics and saw no forum rules in them, I realize now that it was ABOVE the forum body... For this I must present my apologies.

Edited by Calden
  • Like 2

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×