Sign in to follow this  
Followers 0
lolp1

Can someone tell mw what is wrong with this code?

9 posts in this topic

I can;t figure it out to be honest, well, here it is:

#include <GuiConstants.au3>
#include <Misc.au3>


Opt ("MustDeclareVars", 1)

$GUI = D2Loader v1.11b - Build On Nov 11 2005

While 1
    $coords = WinGetPos($GUI)
    _MouseTrap ($coords[0], $coords[1], $coords[0] + $coords[2], $coords[1] + $coords[3])
 WEnd

I am just getting "Error parsing funcition call" Please and thank you in and advance.

Share this post


Link to post
Share on other sites



This has an error also.

Error: Subscript used with non-Array variable.

:lmao:

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

You gotta change $GUI to your GUI's title.

Edited by codemyster

Share this post


Link to post
Share on other sites

He he, sorry, over looked that.

I am not use to that type of hotkey style, cab you explain how it works?

HotKeySet("!x", "ee")

Can you explain to me how I could toggle it?

Cause I tried pressing EE and it did not exit, and !x does nothing.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Check the help files for HotKeySet for an explanation how it works.

Edit: You can change the hot keys to anyting you want them to be....well as long as they arnt already used by windows.

Ex: Ctrl+alt+del, alt+tab

Edited by Gondus

-----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran

Share this post


Link to post
Share on other sites

!x = alt+x

Did that because i had SciTE as my GUI and there would be no other way to close it.

Share this post


Link to post
Share on other sites

Thanks:)

Share this post


Link to post
Share on other sites

np :lmao:

Share this post


Link to post
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
Sign in to follow this  
Followers 0