lolp1 Posted October 21, 2006 Share Posted October 21, 2006 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. Link to comment Share on other sites More sharing options...
NELyon Posted October 21, 2006 Share Posted October 21, 2006 #include <Misc.au3> HotKeySet("!x", "ee") Opt("WinTitleMatchMode", 2) $GUI = "GUI" While 1 $coords = WinGetPos($GUI) _MouseTrap ($coords[0], $coords[1], $coords[0] + $coords[2], $coords[1] + $coords[3]) WEnd Func ee() Exit EndFunc Link to comment Share on other sites More sharing options...
lolp1 Posted October 21, 2006 Author Share Posted October 21, 2006 This has an error also. Error: Subscript used with non-Array variable. Link to comment Share on other sites More sharing options...
NELyon Posted October 21, 2006 Share Posted October 21, 2006 (edited) You gotta change $GUI to your GUI's title. Edited October 21, 2006 by codemyster Link to comment Share on other sites More sharing options...
lolp1 Posted October 21, 2006 Author Share Posted October 21, 2006 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. Link to comment Share on other sites More sharing options...
Gondus Posted October 21, 2006 Share Posted October 21, 2006 (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 October 21, 2006 by Gondus -----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran Link to comment Share on other sites More sharing options...
NELyon Posted October 21, 2006 Share Posted October 21, 2006 !x = alt+x Did that because i had SciTE as my GUI and there would be no other way to close it. Link to comment Share on other sites More sharing options...
lolp1 Posted October 21, 2006 Author Share Posted October 21, 2006 Thanks:) Link to comment Share on other sites More sharing options...
NELyon Posted October 21, 2006 Share Posted October 21, 2006 np Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now