Sign in to follow this  
Followers 0
tazbox

Problem with windows 7 x64

7 posts in this topic

Hello to start sorry for my english.

I use this script to automate a task with a single button

#Include <Misc.au3> ;
$dll = DllOpen("user32.dll");

Opt('SendKeyDelay', 1)
Opt('SendKeyDownDelay', 1)
Opt('MouseClickDownDelay', 1)




While 1
$couleur1 = PixelGetColor(587,692)
$couleur2 = PixelGetColor(15,56)
$couleur3 = PixelGetColor(600,579)
$couleur4 = PixelGetColor(1145,241)
$couleur5 = PixelGetColor(567,664)
$couleur6 = PixelGetColor(462,662)
$couleur7 = PixelGetColor(611,612)
$couleur8 = PixelGetColor(983,782)
$couleur9 = PixelGetColor(983,807)
$couleur10 = PixelGetColor(984,818)
$couleur11 = PixelGetColor(710,707)
$couleur12 = PixelGetColor(102,49)
$couleur13 = PixelGetColor(54,54)
$couleur14 = PixelGetColor(1113,768)
$couleur15 = PixelGetColor(710,707)
$couleur16 = PixelGetColor(1109,767)
$couleur17 = PixelGetColor(14,623)
If Not _IsPressed(10) And Not _IsPressed(11) And Not _IsPressed(12) And _IsPressed(74) Then
Send("a")
EndIf
If Not _IsPressed(10) And Not _IsPressed(11) And Not _IsPressed(12) And _IsPressed(74) And $couleur17 = 0x7A7F7F Then
Send("z")
EndIf
If Not _IsPressed(10) And Not _IsPressed(11) And Not _IsPressed(12) And _IsPressed(74) And $couleur13 = 0x360909 And $couleur14 = 0xFFFFFF And $couleur15 = 0xE5E5E5 Then
Send("e")
EndIf
If Not _IsPressed(10) And Not _IsPressed(11) And Not _IsPressed(12) And _IsPressed(74) And $couleur12 = 0x860000 Then
Send("e")
EndIf
If Not _IsPressed(10) And Not _IsPressed(11) And Not _IsPressed(12) And _IsPressed(74) And $couleur1 = 0x7FA1A1 Then
Send("e")
EndIf
If Not _IsPressed(10) And Not _IsPressed(11) And Not _IsPressed(12) And _IsPressed(74) And $couleur2 = 0x360909 And $couleur11 = 0xE5E5E5  Then
Send("p")
EndIf
If Not _IsPressed(10) And Not _IsPressed(11) And Not _IsPressed(12) And _IsPressed(74) And $couleur16 = 0x555555 Then
Send("k")
EndIf
If Not _IsPressed(10) And Not _IsPressed(11) And Not _IsPressed(12) And _IsPressed(74) Then
Send("q")
EndIf
    If Not _IsPressed(10) And Not _IsPressed(11) And Not _IsPressed(12) And _IsPressed(74) Then
Send("*")
EndIf
If Not _IsPressed(10) And Not _IsPressed(11) And Not _IsPressed(12) And _IsPressed(74) And $couleur8 = 0xFFFFFF And $couleur9 = 0xFFFFFF And $couleur10 = 0xFFFFFF And $couleur4 <> 0x00FF00 Then
Send("y")
EndIf
WEnd

This script works very well with windows xp, but with windows 7 it works really bad, it works but very slowly, the command did not execute well or very slowly, which is very annoying. And when I add other script like this, to walk together, the slowdown is even greater, whereas with windows xp it works very well.

Do you know what can be the problem please ?

Share this post


Link to post
Share on other sites



If you can tell us what you try to automate then maybe we can provide a more reliable solution.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Ho yes sorry. It's for a action sequence in a game.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Ho yes sorry. It's for a action sequence in a game.

You should have read the rules when water asked you that, you fell into the trap... ;)

Now Jos, Melba32, Smoke_N or valik are going to see this & lock your thread.

Edited by ApudAngelorum

Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

Then I would strongly suggest that you read the forum rules. Game automation is not allowed here ;)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Its for a solo player game, its juste for comfort. But looks like, lock of thread it gives you an erection. No problem I find help elsewhere. Thank you anyway

Share this post


Link to post
Share on other sites

. But looks like, lock of thread it gives you an erection.

These type of comments are not appreciated here so I will help you with 7 days vacation time from these forums.

In case you decide to come back you better behave.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


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