Jump to content

Recommended Posts

Posted (edited)

I have a problem running my script on Win8.1 but its run smoothly on win7. Can anybody help me and tell me what the problem I've been facing ?

Here the script :

Global $g_bPaused = False


HotKeySet("{HOME}", "ToggleStart")
HotKeySet("{ESC}", "Terminate")
HotKeySet("{END}", "TogglePause")

While 1
    Sleep(100)
WEnd

Func ToggleStart()
    $g_bPaused = Not $g_bPaused
    While $g_bPaused
        Sleep(100)
        ToolTip('Script is "Started"', 0, 0)
        While 2
sleep (2000)
MouseClick("left",502,535,1)
Send ("wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww")
Send ("ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss")
Send ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
Send ("dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd")
sleep (2000)
Send ("{ENTER}")
sleep (2000)
Send ("{ENTER}")
sleep (2000)
Send ("wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww")
Send ("ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss")
Send ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
Send ("dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd")
send ("{SPACE}")
sleep (1000)
send ("V")
sleep (1000)
Wend
    WEnd
    ToolTip("")
EndFunc

Func TogglePause()
    $g_bPaused = Not $g_bPaused
    While $g_bPaused
        Sleep(100)
        ToolTip('Script is "Paused"', 0, 0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit
EndFunc

Then can anyone teach me to run the script only at specific process ?

Thanks !

Edited by Melba23
Added code tags
  • Moderators
Posted

PilotPen,

Welcome to the AutoIt forums.

When you post code please use Code tags - see here how to do it.  Then you get a scrolling box and syntax colouring as you can see above now I have added the tags.

And looking at the keys you are spamming I suggest you read the Forum rules before you post again to prevent any future problems.

M23

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

If you are not going to do something as basic as click on a link and read it, you probably wont have much fun here.

I hope its an FPS and I am getting mad kills on the bot running around in giant squares.

Edited by iamtheky

  Reveal hidden contents

Posted
  On 2/25/2016 at 12:27 AM, PilotPen said:

Im spamming on games, its that wrong ? Used to avoid disconnected while afk.

Expand  

Welcome PilotPen. :D

Like the man said, read the Forum Rules.

They make everything perfectly clear and save on going back and forth with conversation about it. o:)

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

  Reveal hidden contents

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

  • Moderators
Posted

PilotPen,

  Quote

Im spamming on games

Expand  

As I feared - thread locked.

  Quote

 its that wrong ?

Expand  

You appear still not to have read the Forum rules to which I linked you earlier. Please do read them - particularly the bit about not discussing game interaction - before you post again.

M23

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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