Jump to content
Sign in to follow this  
lolp1

Can someone tell mw what is wrong with this code?

Recommended Posts

lolp1

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
lolp1

This has an error also.

Error: Subscript used with non-Array variable.

:lmao:

Share this post


Link to post
Share on other sites
NELyon

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

Edited by codemyster

Share this post


Link to post
Share on other sites
lolp1

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
Gondus

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
NELyon

!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
lolp1

Thanks:)

Share this post


Link to post
Share on other sites
NELyon

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  

×