Flamethrower Posted February 10, 2006 Share Posted February 10, 2006 Send the key \ or / I am macroing it for a game but Send("\") or Send("/") Just goes into an error. Any ideas or is there a hotkey for /? Link to comment Share on other sites More sharing options...
cdkid Posted February 10, 2006 Share Posted February 10, 2006 Send the key \ or /I am macroing it for a game butSend("\")orSend("/")Just goes into an error.Any ideas or is there a hotkey for /?hmm... works fine for me, dont know what the problem is would be... can u paste your entire code? AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
Flamethrower Posted February 10, 2006 Author Share Posted February 10, 2006 Fixed it. Silly mistake. This is my first auto it. The game I play takes up the hole screen and the only way out is ALT+TAB. So I need to make a hotkey inside Here it is: $g_szVersion = "My Script 1.1" If WinExists($g_szVersion) Then Exit ; It's already running AutoItWinSetTitle($g_szVersion) ;Only one script runs /\ HotKeySet("{Delete}") WinActivate("Nexus") WinWaitActive("Nexus") Send("+z") Send("+k") Send("d") Send("\") Send("900") Send("{Enter}") How can I make it executeable and stoppable with the 'Delete' key Link to comment Share on other sites More sharing options...
cdkid Posted February 10, 2006 Share Posted February 10, 2006 (edited) $g_szVersion = "My Script 1.1" If WinExists($g_szVersion) Then Exit; It's already running AutoItWinSetTitle($g_szVersion) ;Only one script runs /\ HotKeySet("{Delete}", "endit") WinActivate("Nexus") WinWaitActive("Nexus") Send("+z") Send("+k") Send("d") Send("\") Send("900") Send("{Enter}") While 1 sleep(10) WEnd func endit() exit endfunc HotKeySet("{delete}",'endit') that line will make it so when u press {DELETE} it calls function Endit() func endit eixt endfunc and that is the function Endit() --somethin like that? ~cdkid Edited February 10, 2006 by cdkid AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
Flamethrower Posted February 10, 2006 Author Share Posted February 10, 2006 Doesn't work for me =P Link to comment Share on other sites More sharing options...
cdkid Posted February 10, 2006 Share Posted February 10, 2006 Fixed it. Silly mistake. This is my first auto it. The game I play takes up the hole screen and the only way out is ALT+TAB. So I need to make a hotkey inside Here it is: $g_szVersion = "My Script 1.1" If WinExists($g_szVersion) Then Exit ; It's already running AutoItWinSetTitle($g_szVersion) ;Only one script runs /\ HotKeySet("{Delete}") WinActivate("Nexus") WinWaitActive("Nexus") Send("+z") Send("+k") Send("d") Send("\") Send("900") Send("{Enter}") How can I make it executeable and stoppable with the 'Delete' keytry this... $g_szVersion = "My Script 1.1" If WinExists($g_szVersion) Then Exit; It's already running AutoItWinSetTitle($g_szVersion) ;Only one script runs /\ HotKeySet("{Delete}", 'endit') WinActivate("Nexus") WinWaitActive("Nexus") Send("+z+kd\900 {ENTER}") func endit exit endfunc --that should work... if not please post the error you get AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
Knight Posted February 10, 2006 Share Posted February 10, 2006 HotKeySet("{delete}",'Close') ;rest of script here Func Close() Exit EndFunc Link to comment Share on other sites More sharing options...
Flamethrower Posted February 10, 2006 Author Share Posted February 10, 2006 "Error with Func command" Link to comment Share on other sites More sharing options...
skippynz Posted February 10, 2006 Share Posted February 10, 2006 "Error with Func command" you need to have the () and the end of hte func ENDIT as per KNIGHT's post like this func endit() exit endfunc Link to comment Share on other sites More sharing options...
cdkid Posted February 10, 2006 Share Posted February 10, 2006 teehee oops AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
Flamethrower Posted February 10, 2006 Author Share Posted February 10, 2006 (edited) When I press delete, nothing happens. ;\ The hole macro works perfectly. And in like one second too, I just need the hotkey that i can use in game Edited February 10, 2006 by Flamethrower Link to comment Share on other sites More sharing options...
cdkid Posted February 10, 2006 Share Posted February 10, 2006 (edited) hotkeyset("{TAB}",'doall') HotKeySet("{DELETE}",'endit') While 1 sleep(100) WEnd func doall() $g_szVersion = "My Script 1.1" If WinExists($g_szVersion) Then Exit; It's already running AutoItWinSetTitle($g_szVersion) ;Only one script runs /\ WinActivate("Nexus") WinWaitActive("Nexus") Send("+z+kd\900 {ENTER}") endfunc func endit() exit endfunc then when u press TAB it sends all that stuff then if u hit delete it kills the script --hope this helps ~cdkid Edited February 10, 2006 by cdkid AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
Flamethrower Posted February 10, 2006 Author Share Posted February 10, 2006 Works fine. Now how do I set it so whenever I press it I dont have to re run the exe.. Link to comment Share on other sites More sharing options...
skippynz Posted February 10, 2006 Share Posted February 10, 2006 (edited) Works fine. Now how do I set it so whenever I press it I dont have to re run the exe.. dont press Delete... its setup to sit and do nothing until you press TAB or the Delete keys ie Tab will rerun the each time, and Delete will exit out of the script you could also remove this code $g_szVersion = "My Script 1.1" If WinExists($g_szVersion) Then Exit; It's already running AutoItWinSetTitle($g_szVersion) ;Only one script runs /\ just to make sure that doesnt stop the TAB Hotkey from working Edited February 10, 2006 by craig.gill 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