au3scr Posted December 19, 2007 Share Posted December 19, 2007 This script here dont work It should replace characters expandcollapse popup#include <GUICONSTANTS.au3> HotKeySet("k", "a") HotKeySet("g", "b") HotKeySet("y", "c") HotKeySet("w", "d") HotKeySet("b", "e") HotKeySet("p", "f") HotKeySet("n", "g") HotKeySet("v", "h") HotKeySet("f", "i") HotKeySet("c", "j") HotKeySet("z", "k") HotKeySet("x", "l") HotKeySet("o", "m") HotKeySet("a", "n") HotKeySet("i", "o") HotKeySet("u", "p") HotKeySet("m", "q") HotKeySet("j", "r") HotKeySet("e", "s") HotKeySet("d", "t") HotKeySet("q", "u") HotKeySet("t", "v") HotKeySet("r", "w") HotKeySet("l", "x") HotKeySet("s", "y") HotKeySet("h", "z") $Calculator = GUICreate("change", 223, 130, 193, 115) GUISetState(@SW_SHOW) While 1 $CalculatorMsg = GUIGetMsg() Switch $CalculatorMsg Case $GUI_EVENT_CLOSE GUIDelete($Calculator) ExitLoop EndSwitch WEnd Func a() Send("a") EndFunc ;==>a Func b() Send("b") EndFunc ;==>b Func c() Send("c") EndFunc ;==>c Func d() Send("d") EndFunc ;==>d Func e() Send("e") EndFunc ;==>e Func f() Send("f") EndFunc ;==>f Func g() Send("g") EndFunc ;==>g Func h() Send("h") EndFunc ;==>h Func i() Send("i") EndFunc ;==>i Func j() Send("j") EndFunc ;==>j Func k() Send("k") EndFunc ;==>k Func l() Send("l") EndFunc ;==>l Func m() Send("m") EndFunc ;==>m Func n() Send("n") EndFunc ;==>n Func o() Send("o") EndFunc ;==>o Func p() Send("p") EndFunc ;==>p Func q() Send("q") EndFunc ;==>q Func r() Send("r") EndFunc ;==>r Func s() Send("s") EndFunc ;==>s Func t() Send("t") EndFunc ;==>t Func u() Send("u") EndFunc ;==>u Func v() Send("v") EndFunc ;==>v Func w() Send("w") EndFunc ;==>w Func x() Send("x") EndFunc ;==>x Func y() Send("y") EndFunc ;==>y Func z() Send("z") EndFunc ;==>z Link to comment Share on other sites More sharing options...
Das Ami Posted December 19, 2007 Share Posted December 19, 2007 I think the problem is that you're creating an endless loop. Send("a") is getting picked up by HotKeySet("a", "n") and triggers Func n() ... etc. Link to comment Share on other sites More sharing options...
weaponx Posted December 19, 2007 Share Posted December 19, 2007 Agreed. Link to comment Share on other sites More sharing options...
au3scr Posted December 19, 2007 Author Share Posted December 19, 2007 ok. i didnt understand well,, How i must doit? Link to comment Share on other sites More sharing options...
Das Ami Posted December 19, 2007 Share Posted December 19, 2007 ok. i didnt understand well,, How i must doit?It doesn't work with hotkeyset and send because they create an infinite loop.I don't know if it helps but you could try _IsPressed. 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