dakota Posted June 6, 2006 Share Posted June 6, 2006 I am making a script that will change what you put in. This is the part i need help with i need to make this not work if the gui is open i needs to only use reguler text not the ones thy define and my buttons are not working. PLEASE HELP expandcollapse popup#region --- GuiBuilder code Start --- ; Script generated by AutoBuilder 0.6 Prototype #include <GuiConstants.au3> GuiCreate("Key Changer", 512, 299,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $a = GuiCtrlCreateInput("a", 10, 80, 60, 20) $b = GuiCtrlCreateInput("b", 80, 80, 60, 20) $c = GuiCtrlCreateInput("c", 150, 80, 60, 20) $d = GuiCtrlCreateInput("d", 220, 80, 60, 20) $e = GuiCtrlCreateInput("e", 290, 80, 60, 20) $f = GuiCtrlCreateInput("f", 360, 80, 60, 20) $g = GuiCtrlCreateInput("g", 430, 80, 60, 20) $h = GuiCtrlCreateInput("h", 10, 110, 60, 20) $i = GuiCtrlCreateInput("i", 80, 110, 60, 20) $j = GuiCtrlCreateInput("j", 150, 110, 60, 20) $k = GuiCtrlCreateInput("k", 220, 110, 60, 20) $l = GuiCtrlCreateInput("l", 290, 110, 60, 20) $m = GuiCtrlCreateInput("m", 360, 110, 60, 20) $n = GuiCtrlCreateInput("n", 430, 110, 60, 20) $o = GuiCtrlCreateInput("o", 10, 140, 60, 20) $p = GuiCtrlCreateInput("p", 80, 140, 60, 20) $q = GuiCtrlCreateInput("r", 150, 140, 60, 20) $r = GuiCtrlCreateInput("r", 220, 140, 60, 20) $s = GuiCtrlCreateInput("s", 290, 140, 60, 20) $t = GuiCtrlCreateInput("t", 360, 140, 60, 20) $u = GuiCtrlCreateInput("u", 430, 140, 60, 20) $v = GuiCtrlCreateInput("v", 10, 170, 60, 20) $w = GuiCtrlCreateInput("w", 80, 170, 60, 20) $x = GuiCtrlCreateInput("x", 150, 170, 60, 20) $y = GuiCtrlCreateInput("y", 290, 170, 60, 20) $z = GuiCtrlCreateInput("z", 220, 170, 60, 20) $Label_27 = GuiCtrlCreateLabel("Boxes go in alphabetical order. what ever is in the box is wat is going to be used when you press that key.", 20, 20, 230, 40) $info = GuiCtrlCreateButton("Info", 280, 250, 100, 30) GUICtrlSetOnEvent($info,"info") $done = GuiCtrlCreateButton("Done", 400, 250, 100, 30) GUICtrlSetOnEvent($done,"done") GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;; EndSelect WEnd Exit #endregion --- GuiBuilder generated code End --- ;key changer AutoItWinSetTitle("Key Changer") ;================================================================ HotKeySet("a", "a") HotKeySet("b", "b") HotKeySet("c", "c") HotKeySet("d", "d") HotKeySet("e", "e") HotKeySet("f", "f") HotKeySet("g", "g") HotKeySet("h", "h") HotKeySet("i", "i") HotKeySet("j", "j") HotKeySet("k", "k") HotKeySet("l", "l") HotKeySet("m", "m") HotKeySet("n", "n") HotKeySet("o", "o") HotKeySet("p", "p") HotKeySet("q", "q") HotKeySet("r", "r") HotKeySet("s", "s") HotKeySet("t", "t") HotKeySet("u", "u") HotKeySet("v", "v") HotKeySet("w", "w") HotKeySet("x", "x") HotKeySet("y", "y") HotKeySet("z", "z") While 1 Sleep(111) WEnd ;=======================Functions================= func info() msgbox (0, "Info", "Created by Dakota V1.0" endfunc ;-------------------------------------------------- func done() msgbox (0, "work?","this means it is working" EndFunc ;================================================== ;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ;================================================== Func a() HotKeySet("a") Send("a") HotKeySet("a", "a") EndFunc ;================================================== ;bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ;================================================== Func b() HotKeySet("b") Send("b") HotKeySet("b", "b") EndFunc ;================================================== ;cccccccccccccccccccccccccccccccccccccccccccccccccc ;================================================== Func c() HotKeySet("c") Send("c") HotKeySet("c", "c") EndFunc ;================================================== ;dddddddddddddddddddddddddddddddddddddddddddddddddd ;================================================== Func d() HotKeySet("d") Send("d") HotKeySet("d", "d") EndFunc ;================================================== ;eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ;================================================== Func e() HotKeySet("e") Send("e") HotKeySet("e", "e") EndFunc ;================================================== ;ffffffffffffffffffffffffffffffffffffffffffffffffff ;================================================== Func f() HotKeySet("f") Send("f") HotKeySet("f", "f") EndFunc ;================================================== ;gggggggggggggggggggggggggggggggggggggggggggggggggg ;================================================== Func g() HotKeySet("g") Send("g") HotKeySet("g", "g") EndFunc ;================================================== ;hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh ;================================================== Func h() HotKeySet("h") Send("h") HotKeySet("h", "h") EndFunc ;================================================== ;iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii ;================================================== Func i() HotKeySet("i") Send("i") HotKeySet("i", "i") EndFunc ;================================================== ;jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj ;================================================== Func j() HotKeySet("j") Send("j") HotKeySet("j", "j") EndFunc ;================================================== ;kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk ;================================================== Func k() HotKeySet("k") Send("k") HotKeySet("k", "k") EndFunc ;================================================== ;llllllllllllllllllllllllllllllllllllllllllllllllll ;================================================== Func l() HotKeySet("l") Send("l") HotKeySet("l", "l") EndFunc ;================================================== ;mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm ;================================================== Func m() HotKeySet("m") Send("m") HotKeySet("m", "m") EndFunc ;================================================== ;nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn ;================================================== Func n() HotKeySet("n") Send("n") HotKeySet("n", "n") EndFunc ;================================================== ;oooooooooooooooooooooooooooooooooooooooooooooooooo ;================================================== Func o() HotKeySet("o") Send("o") HotKeySet("o", "o") EndFunc ;================================================== ;pppppppppppppppppppppppppppppppppppppppppppppppppp ;================================================== Func p() HotKeySet("p") Send("p") HotKeySet("p", "p") EndFunc ;================================================== ;qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq ;================================================== Func q() HotKeySet("q") Send("q") HotKeySet("q", "q") EndFunc ;================================================== ;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr ;================================================== Func r() HotKeySet("r") Send("r") HotKeySet("r", "r") EndFunc ;================================================== ;ssssssssssssssssssssssssssssssssssssssssssssssssss ;================================================== Func s() HotKeySet("s") Send("s") HotKeySet("s", "s") EndFunc ;================================================== ;tttttttttttttttttttttttttttttttttttttttttttttttttt ;================================================== Func t() HotKeySet("t") Send("t") HotKeySet("t", "t") EndFunc ;================================================== ;uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu ;================================================== Func u() HotKeySet("u") Send("u") HotKeySet("u", "u") EndFunc ;================================================== ;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv ;================================================== Func v() HotKeySet("v") Send("v") HotKeySet("v", "v") EndFunc ;================================================== ;wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww ;================================================== Func w() HotKeySet("w") Send("w") HotKeySet("w", "w") EndFunc ;================================================== ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;================================================== Func x() HotKeySet("x") Send("x") HotKeySet("x", "x") EndFunc ;================================================== ;yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy ;================================================== Func y() HotKeySet("y") Send("y") HotKeySet("y", "y") EndFunc ;================================================== ;zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz ;================================================== Func z() HotKeySet("z") Send("z") HotKeySet("z", "z") EndFunc Link to comment Share on other sites More sharing options...
dakota Posted June 6, 2006 Author Share Posted June 6, 2006 and i have not set what it sends to a variable yet i know iu need to do that Link to comment Share on other sites More sharing options...
dakota Posted June 6, 2006 Author Share Posted June 6, 2006 PLEASE HELP Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 6, 2006 Share Posted June 6, 2006 (edited) Hi, I could help, if I get what your script should do when its done. So long, Mega Edited June 6, 2006 by th.meger Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 6, 2006 Moderators Share Posted June 6, 2006 (edited) Hi,I could help, if I get what your script should do when its done. So long,MegaEdit:Unfair assumption that I made based off of other threads of his/hers.Edit2:You are using 2 GUI functions there that won't work together. Edited June 6, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 6, 2006 Share Posted June 6, 2006 Hi, okay then my support end up with: #include <Misc.au3> $dll = DllOpen("user32.dll") ;Change a-f While 1 Sleep(1) If _IsPressed("41", $dll) Or _IsPressed("42", $dll) Or _IsPressed("43", $dll) Or _ _IsPressed("44", $dll) Or _IsPressed("45", $dll) Or _IsPressed("46", $dll) Then Send("{BS}" & Chr(Random(65, 97, 1))) EndIf WEnd DllClose($dll) So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
dakota Posted June 6, 2006 Author Share Posted June 6, 2006 Im making a skript that when you press a it will output what the user defined i the gui part Link to comment Share on other sites More sharing options...
dakota Posted June 7, 2006 Author Share Posted June 7, 2006 Any one?? Link to comment Share on other sites More sharing options...
Don N Posted June 7, 2006 Share Posted June 7, 2006 If i understand what you doing correctly i think you need to change this: Func a() HotKeySet("a") Send("a") HotKeySet("a", "a") EndFunc oÝ÷ Ù:-+ºÚ"µÍ[ÈJ BÙ[ ÕRPÝXY ÌÍØH H B[[ And you would jsut do that for allyour hot key functions that way whatever the user set in the gui is what will be sent when they press that key on the keyboard. Hope that helps. ...Not sure if you would need to make all your input vars $a, $b, $c, etc. global or not. _____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper Link to comment Share on other sites More sharing options...
dakota Posted June 7, 2006 Author Share Posted June 7, 2006 ok that was good um the other thing that is bad is i need to disable all the hat keys when the user is in the gui (maby I can make it a cheak box ( cheak this to diable )) and how would i save the setings ,the variables a-z to a file that is read when i start?? Link to comment Share on other sites More sharing options...
Don N Posted June 7, 2006 Share Posted June 7, 2006 this will show you how to disable hot keys when a window is active...im sure u could make this fit what you needhttp://www.autoitscript.com/forum/index.php?showtopic=23586 _____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper Link to comment Share on other sites More sharing options...
dakota Posted June 7, 2006 Author Share Posted June 7, 2006 that works but my buttons are not working?? Please help expandcollapse popupglobal $a="a" global $b="b" global $c="c" global $d="d" global $e="e" global $f="f" global $g="g" global $h="h" global $i="i" global $j="j" global $k="k" global $l="l" global $m="m" global $n="n" global $o="o" global $p="p" global $q="q" global $r="r" global $s="s" global $t="t" global $u="u" global $v="v" global $w="w" global $x="x" global $y="y" global $z="z" #include <GuiConstants.au3> #region --- GuiBuilder code Start --- ; Script generated by AutoBuilder 0.6 Prototype GuiCreate("Key Changer", 512, 299,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $a = GuiCtrlCreateInput($a, 10, 80, 60, 20) $b = GuiCtrlCreateInput($b, 80, 80, 60, 20) $c = GuiCtrlCreateInput($c, 150, 80, 60, 20) $d = GuiCtrlCreateInput($d, 220, 80, 60, 20) $e = GuiCtrlCreateInput($e, 290, 80, 60, 20) $f = GuiCtrlCreateInput($f, 360, 80, 60, 20) $g = GuiCtrlCreateInput($g, 430, 80, 60, 20) $h = GuiCtrlCreateInput($h, 10, 110, 60, 20) $i = GuiCtrlCreateInput($i, 80, 110, 60, 20) $j = GuiCtrlCreateInput($j, 150, 110, 60, 20) $k = GuiCtrlCreateInput($k, 220, 110, 60, 20) $l = GuiCtrlCreateInput($l, 290, 110, 60, 20) $m = GuiCtrlCreateInput($m, 360, 110, 60, 20) $n = GuiCtrlCreateInput($n, 430, 110, 60, 20) $o = GuiCtrlCreateInput($o, 10, 140, 60, 20) $p = GuiCtrlCreateInput($p, 80, 140, 60, 20) $q = GuiCtrlCreateInput($r, 150, 140, 60, 20) $r = GuiCtrlCreateInput($r, 220, 140, 60, 20) $s = GuiCtrlCreateInput($s, 290, 140, 60, 20) $t = GuiCtrlCreateInput($t, 360, 140, 60, 20) $u = GuiCtrlCreateInput($u, 430, 140, 60, 20) $v = GuiCtrlCreateInput($v, 10, 170, 60, 20) $w = GuiCtrlCreateInput($w, 80, 170, 60, 20) $x = GuiCtrlCreateInput($x, 150, 170, 60, 20) $y = GuiCtrlCreateInput($y, 290, 170, 60, 20) $z = GuiCtrlCreateInput($z, 220, 170, 60, 20) $Label_27 = GuiCtrlCreateLabel("Boxes go in alphabetical order. what ever is in the box is wat is going to be used when you press that key.", 20, 20, 230, 40) $info = GuiCtrlCreateButton("Info", 280, 250, 100, 30) GUICtrlSetOnEvent($info,"info") $done = GuiCtrlCreateButton("Done", 400, 250, 100, 30) GUICtrlSetOnEvent($done,"done") GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;; EndSelect WEnd Exit #endregion --- GuiBuilder generated code End --- Opt("WinTitleMatchMode", 2);Any part of the string can be used in a window's name AutoItSetOption("TrayIconDebug", 1);Debug is on. This can be disabled by changing 1 to 0 ;If your script hangs, this will help you on what ;is causing the problem. $window1T = "Key Changer" While 1 Select Case WinActive($window1T) _win1_func() ContinueLoop EndSelect WEnd Func _win1_func() HotKeySet("+^!s", "unhide") HotKeySet("a", "a") HotKeySet("b", "b") HotKeySet("c", "c") HotKeySet("d", "d") HotKeySet("e", "e") HotKeySet("f", "f") HotKeySet("g", "g") HotKeySet("h", "h") HotKeySet("i", "i") HotKeySet("j", "j") HotKeySet("k", "k") HotKeySet("l", "l") HotKeySet("m", "m") HotKeySet("n", "n") HotKeySet("o", "o") HotKeySet("p", "p") HotKeySet("q", "q") HotKeySet("r", "r") HotKeySet("s", "s") HotKeySet("t", "t") HotKeySet("u", "u") HotKeySet("v", "v") HotKeySet("w", "w") HotKeySet("x", "x") HotKeySet("y", "y") HotKeySet("z", "z") Do Sleep(10) Until Not WinActive($window1T) _key_clean_1() EndFunc ;==>_win1_func Func _key_clean_1();Releases hotsetkeys HotKeySet("a") HotKeySet("b") HotKeySet("c") HotKeySet("d") HotKeySet("e") HotKeySet("f") HotKeySet("g") HotKeySet("h") HotKeySet("i") HotKeySet("j") HotKeySet("k") HotKeySet("l") HotKeySet("m") HotKeySet("n") HotKeySet("o") HotKeySet("p") HotKeySet("q") HotKeySet("r") HotKeySet("s") HotKeySet("t") HotKeySet("u") HotKeySet("v") HotKeySet("w") HotKeySet("x") HotKeySet("y") HotKeySet("z") EndFunc ;==>_key_clean_1 ;the following functions are what happens when a key is pressed ;key changer AutoItWinSetTitle("Key Changer") ;================================================================ While 1 Sleep(111) WEnd ;=======================Functions================= Func unhide() GUISetState (@SW_SHOW) EndFunc ;------------------------------------------------- func info() msgbox (0, "Info", "Created by Dakota V1.0" endfunc ;-------------------------------------------------- func done() Msgbox (0,"Info" , "Press+Shift+Ctrl+Alt+S to open the window." ) GUISetState (@SW_HIDE) EndFunc ;================================================== ;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ;================================================== Func a() HotKeySet("a") Send("a") HotKeySet("a", "a") EndFunc ;================================================== ;bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ;================================================== Func b() HotKeySet("b") Send("b") HotKeySet("b", "b") EndFunc ;================================================== ;cccccccccccccccccccccccccccccccccccccccccccccccccc ;================================================== Func c() HotKeySet("c") Send("c") HotKeySet("c", "c") EndFunc ;================================================== ;dddddddddddddddddddddddddddddddddddddddddddddddddd ;================================================== Func d() HotKeySet("d") Send("d") HotKeySet("d", "d") EndFunc ;================================================== ;eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ;================================================== Func e() HotKeySet("e") Send("e") HotKeySet("e", "e") EndFunc ;================================================== ;ffffffffffffffffffffffffffffffffffffffffffffffffff ;================================================== Func f() HotKeySet("f") Send("f") HotKeySet("f", "f") EndFunc ;================================================== ;gggggggggggggggggggggggggggggggggggggggggggggggggg ;================================================== Func g() HotKeySet("g") Send("g") HotKeySet("g", "g") EndFunc ;================================================== ;hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh ;================================================== Func h() HotKeySet("h") Send("h") HotKeySet("h", "h") EndFunc ;================================================== ;iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii ;================================================== Func i() HotKeySet("i") Send("i") HotKeySet("i", "i") EndFunc ;================================================== ;jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj ;================================================== Func j() HotKeySet("j") Send("j") HotKeySet("j", "j") EndFunc ;================================================== ;kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk ;================================================== Func k() HotKeySet("k") Send("k") HotKeySet("k", "k") EndFunc ;================================================== ;llllllllllllllllllllllllllllllllllllllllllllllllll ;================================================== Func l() HotKeySet("l") Send("l") HotKeySet("l", "l") EndFunc ;================================================== ;mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm ;================================================== Func m() HotKeySet("m") Send("m") HotKeySet("m", "m") EndFunc ;================================================== ;nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn ;================================================== Func n() HotKeySet("n") Send("n") HotKeySet("n", "n") EndFunc ;================================================== ;oooooooooooooooooooooooooooooooooooooooooooooooooo ;================================================== Func o() HotKeySet("o") Send("o") HotKeySet("o", "o") EndFunc ;================================================== ;pppppppppppppppppppppppppppppppppppppppppppppppppp ;================================================== Func p() HotKeySet("p") Send("p") HotKeySet("p", "p") EndFunc ;================================================== ;qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq ;================================================== Func q() HotKeySet("q") Send("q") HotKeySet("q", "q") EndFunc ;================================================== ;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr ;================================================== Func r() HotKeySet("r") Send("r") HotKeySet("r", "r") EndFunc ;================================================== ;ssssssssssssssssssssssssssssssssssssssssssssssssss ;================================================== Func s() HotKeySet("s") Send("s") HotKeySet("s", "s") EndFunc ;================================================== ;tttttttttttttttttttttttttttttttttttttttttttttttttt ;================================================== Func t() HotKeySet("t") Send("t") HotKeySet("t", "t") EndFunc ;================================================== ;uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu ;================================================== Func u() HotKeySet("u") Send("u") HotKeySet("u", "u") EndFunc ;================================================== ;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv ;================================================== Func v() HotKeySet("v") Send("v") HotKeySet("v", "v") EndFunc ;================================================== ;wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww ;================================================== Func w() HotKeySet("w") Send("w") HotKeySet("w", "w") EndFunc ;================================================== ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;================================================== Func x() HotKeySet("x") Send("x") HotKeySet("x", "x") EndFunc ;================================================== ;yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy ;================================================== Func y() HotKeySet("y") Send("y") HotKeySet("y", "y") EndFunc ;================================================== ;zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz ;================================================== Func z() HotKeySet("z") Send("z") HotKeySet("z", "z") EndFunc please help Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 7, 2006 Moderators Share Posted June 7, 2006 I told you that you couldn't use 2 of the GUI functions together!! GUISetOnEvent()/GUICtrlSetOnEvent()/Opt('GUIOnEventMode') with GUIGetMsg(). Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
dakota Posted June 7, 2006 Author Share Posted June 7, 2006 ok i am very confused?? what sould i do to get my buttons to call a function ?? Link to comment Share on other sites More sharing options...
dakota Posted June 7, 2006 Author Share Posted June 7, 2006 ok i got it i will use the guigetmsg() Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 7, 2006 Share Posted June 7, 2006 Hi, untested, but maybe it helps. expandcollapse popup#include <GUIConstants.au3> _setHotkeys(0) _setHotkeys(1) $GUI = GUICreate("Key changer", 622, 483, 192, 125) $Group1 = GUICtrlCreateGroup("Keys", 8, 32, 609, 401) $a_c = GUICtrlCreateCheckbox("", 16, 56, 17, 17) $b_c = GUICtrlCreateCheckbox("", 16, 88, 17, 17) $c_c = GUICtrlCreateCheckbox("", 16, 120, 17, 17) $d_c = GUICtrlCreateCheckbox("", 16, 152, 17, 17) $e_c = GUICtrlCreateCheckbox("", 16, 184, 17, 17) $f_c = GUICtrlCreateCheckbox("", 16, 216, 17, 17) $g_c = GUICtrlCreateCheckbox("", 16, 248, 17, 17) $h_c = GUICtrlCreateCheckbox("", 16, 280, 17, 17) $i_c = GUICtrlCreateCheckbox("", 16, 312, 17, 17) $j_c = GUICtrlCreateCheckbox("", 16, 344, 17, 17) $k_c = GUICtrlCreateCheckbox("", 184, 56, 17, 17) $l_c = GUICtrlCreateCheckbox("", 184, 88, 17, 17) $m_c = GUICtrlCreateCheckbox("", 184, 120, 17, 17) $n_c = GUICtrlCreateCheckbox("", 184, 152, 17, 17) $o_c = GUICtrlCreateCheckbox("", 184, 184, 17, 17) $p_c = GUICtrlCreateCheckbox("", 184, 216, 17, 17) $q_c = GUICtrlCreateCheckbox("", 184, 248, 17, 17) $r_c = GUICtrlCreateCheckbox("", 184, 280, 17, 17) $s_c = GUICtrlCreateCheckbox("", 184, 312, 17, 17) $t_c = GUICtrlCreateCheckbox("", 185, 344, 15, 17) $u_c = GUICtrlCreateCheckbox("", 352, 56, 17, 17) $v_c = GUICtrlCreateCheckbox("", 352, 88, 17, 17) $w_c = GUICtrlCreateCheckbox("", 352, 120, 17, 17) $x_c = GUICtrlCreateCheckbox("", 352, 152, 17, 17) $y_c = GUICtrlCreateCheckbox("", 352, 184, 17, 17) $z_c = GUICtrlCreateCheckbox("", 352, 216, 17, 17) $a_i = GUICtrlCreateInput("a", 40, 56, 121, 21, -1, $WS_EX_CLIENTEDGE) $b_i = GUICtrlCreateInput("b", 40, 88, 121, 21, -1, $WS_EX_CLIENTEDGE) $c_i = GUICtrlCreateInput("c", 40, 120, 121, 21, -1, $WS_EX_CLIENTEDGE) $d_i = GUICtrlCreateInput("d", 40, 152, 121, 21, -1, $WS_EX_CLIENTEDGE) $e_i = GUICtrlCreateInput("e", 40, 184, 121, 21, -1, $WS_EX_CLIENTEDGE) $f_i = GUICtrlCreateInput("f", 40, 216, 121, 21, -1, $WS_EX_CLIENTEDGE) $g_i = GUICtrlCreateInput("g", 40, 248, 121, 21, -1, $WS_EX_CLIENTEDGE) $h_i = GUICtrlCreateInput("h", 40, 280, 121, 21, -1, $WS_EX_CLIENTEDGE) $i_i = GUICtrlCreateInput("i", 40, 312, 121, 21, -1, $WS_EX_CLIENTEDGE) $j_i = GUICtrlCreateInput("j", 40, 344, 121, 21, -1, $WS_EX_CLIENTEDGE) $k_i = GUICtrlCreateInput("k", 208, 56, 121, 21, -1, $WS_EX_CLIENTEDGE) $l_i = GUICtrlCreateInput("l", 208, 88, 121, 21, -1, $WS_EX_CLIENTEDGE) $m_i = GUICtrlCreateInput("m", 208, 120, 121, 21, -1, $WS_EX_CLIENTEDGE) $n_i = GUICtrlCreateInput("n", 208, 152, 121, 21, -1, $WS_EX_CLIENTEDGE) $o_i = GUICtrlCreateInput("o", 208, 184, 121, 21, -1, $WS_EX_CLIENTEDGE) $p_i = GUICtrlCreateInput("p", 208, 216, 121, 21, -1, $WS_EX_CLIENTEDGE) $q_i = GUICtrlCreateInput("q", 208, 248, 121, 21, -1, $WS_EX_CLIENTEDGE) $r_i = GUICtrlCreateInput("r", 208, 280, 121, 21, -1, $WS_EX_CLIENTEDGE) $s_i = GUICtrlCreateInput("s", 208, 312, 121, 21, -1, $WS_EX_CLIENTEDGE) $t_i = GUICtrlCreateInput("t", 208, 344, 121, 21, -1, $WS_EX_CLIENTEDGE) $u_i = GUICtrlCreateInput("u", 376, 56, 121, 21, -1, $WS_EX_CLIENTEDGE) $v_i = GUICtrlCreateInput("v", 376, 88, 121, 21, -1, $WS_EX_CLIENTEDGE) $w_i = GUICtrlCreateInput("w", 376, 120, 121, 21, -1, $WS_EX_CLIENTEDGE) $x_i = GUICtrlCreateInput("x", 376, 152, 121, 21, -1, $WS_EX_CLIENTEDGE) $y_i = GUICtrlCreateInput("y", 376, 184, 121, 21, -1, $WS_EX_CLIENTEDGE) $z_i = GUICtrlCreateInput("z", 376, 216, 121, 21, -1, $WS_EX_CLIENTEDGE) GUICtrlCreateLabel("Keychanger", 8, 8, 603, 17) $done_B = GUICtrlCreateButton("Done", 544, 440, 75, 25) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $done_B GUISetState(@SW_HIDE) _setHotkeys(1) EndSelect If WinActive($GUI) Then _setHotkeys(0) WEnd Func a() If BitAND(GUICtrlRead($a_c), $GUI_CHECKED) Then Send(GUICtrlRead($a_i)) EndFunc ;==>a Func b() If BitAND(GUICtrlRead($b_c), $GUI_CHECKED) Then Send(GUICtrlRead($b_i)) EndFunc ;==>b Func c() If BitAND(GUICtrlRead($c_c), $GUI_CHECKED) Then Send(GUICtrlRead($c_i)) EndFunc ;==>c Func d() If BitAND(GUICtrlRead($d_c), $GUI_CHECKED) Then Send(GUICtrlRead($d_i)) EndFunc ;==>d Func e() If BitAND(GUICtrlRead($e_c), $GUI_CHECKED) Then Send(GUICtrlRead($e_i)) EndFunc ;==>e Func f() If BitAND(GUICtrlRead($f_c), $GUI_CHECKED) Then Send(GUICtrlRead($f_i)) EndFunc ;==>f Func g() If BitAND(GUICtrlRead($g_c), $GUI_CHECKED) Then Send(GUICtrlRead($g_i)) EndFunc ;==>g Func h() If BitAND(GUICtrlRead($h_c), $GUI_CHECKED) Then Send(GUICtrlRead($h_i)) EndFunc ;==>h Func i() If BitAND(GUICtrlRead($i_c), $GUI_CHECKED) Then Send(GUICtrlRead($i_i)) EndFunc ;==>i Func j() If BitAND(GUICtrlRead($j_c), $GUI_CHECKED) Then Send(GUICtrlRead($j_i)) EndFunc ;==>j Func k() If BitAND(GUICtrlRead($k_c), $GUI_CHECKED) Then Send(GUICtrlRead($k_i)) EndFunc ;==>k Func l() If BitAND(GUICtrlRead($l_c), $GUI_CHECKED) Then Send(GUICtrlRead($l_i)) EndFunc ;==>l Func m() If BitAND(GUICtrlRead($m_c), $GUI_CHECKED) Then Send(GUICtrlRead($m_i)) EndFunc ;==>m Func n() If BitAND(GUICtrlRead($n_c), $GUI_CHECKED) Then Send(GUICtrlRead($n_i)) EndFunc ;==>n Func o() If BitAND(GUICtrlRead($o_c), $GUI_CHECKED) Then Send(GUICtrlRead($o_i)) EndFunc ;==>o Func p() If BitAND(GUICtrlRead($p_c), $GUI_CHECKED) Then Send(GUICtrlRead($p_i)) EndFunc ;==>p Func q() If BitAND(GUICtrlRead($q_c), $GUI_CHECKED) Then Send(GUICtrlRead($q_i)) EndFunc ;==>q Func r() If BitAND(GUICtrlRead($r_c), $GUI_CHECKED) Then Send(GUICtrlRead($r_i)) EndFunc ;==>r Func s() If BitAND(GUICtrlRead($s_c), $GUI_CHECKED) Then Send(GUICtrlRead($s_i)) EndFunc ;==>s Func t() If BitAND(GUICtrlRead($t_c), $GUI_CHECKED) Then Send(GUICtrlRead($t_i)) EndFunc ;==>t Func u() If BitAND(GUICtrlRead($u_c), $GUI_CHECKED) Then Send(GUICtrlRead($u_i)) EndFunc ;==>u Func v() If BitAND(GUICtrlRead($v_c), $GUI_CHECKED) Then Send(GUICtrlRead($v_i)) EndFunc ;==>v Func w() If BitAND(GUICtrlRead($w_c), $GUI_CHECKED) Then Send(GUICtrlRead($w_i)) EndFunc ;==>w Func x() If BitAND(GUICtrlRead($x_c), $GUI_CHECKED) Then Send(GUICtrlRead($x_i)) EndFunc ;==>x Func y() If BitAND(GUICtrlRead($y_c), $GUI_CHECKED) Then Send(GUICtrlRead($y_i)) EndFunc ;==>y Func z() If BitAND(GUICtrlRead($z_c), $GUI_CHECKED) Then Send(GUICtrlRead($z_i)) EndFunc ;==>z Func _setHotkeys($state = 1) If $state = 1 Then HotKeySet("a", "a") HotKeySet("b", "b") HotKeySet("c", "c") HotKeySet("d", "d") HotKeySet("e", "e") HotKeySet("f", "f") HotKeySet("g", "g") HotKeySet("h", "h") HotKeySet("i", "i") HotKeySet("j", "j") HotKeySet("k", "k") HotKeySet("l", "l") HotKeySet("m", "m") HotKeySet("n", "n") HotKeySet("o", "o") HotKeySet("p", "p") HotKeySet("q", "q") HotKeySet("r", "r") HotKeySet("s", "s") HotKeySet("t", "t") HotKeySet("u", "u") HotKeySet("v", "v") HotKeySet("w", "w") HotKeySet("x", "x") HotKeySet("y", "y") HotKeySet("z", "z") Else HotKeySet("a") HotKeySet("b") HotKeySet("c") HotKeySet("d") HotKeySet("e") HotKeySet("f") HotKeySet("g") HotKeySet("h") HotKeySet("i") HotKeySet("j") HotKeySet("k") HotKeySet("l") HotKeySet("m") HotKeySet("n") HotKeySet("o") HotKeySet("p") HotKeySet("q") HotKeySet("r") HotKeySet("s") HotKeySet("t") HotKeySet("u") HotKeySet("v") HotKeySet("w") HotKeySet("x") HotKeySet("y") HotKeySet("z") EndIf EndFunc ;==>_setHotkeys So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
dakota Posted June 7, 2006 Author Share Posted June 7, 2006 this is not working it is not changing the variables expandcollapse popup$a="a" $b="b" $c="c" $d="d" $e="e" $f="f" $g="g" $h="h" $i="i" $j="j" $k="k" $l="l" $m="m" $n="n" $o="o" $p="p" $q="q" $r="r" $s="s" $t="t" $u="u" $v="v" $w="w" $x="x" $y="y" $z="z" HotKeySet("+^!s" , "unhide" ) #include <GuiConstants.au3> #region --- GuiBuilder code Start --- ; Script generated by AutoBuilder 0.6 Prototype GuiCreate("Key Changer", 512, 299,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $a = GuiCtrlCreateInput($a, 10, 80, 60, 20) $b = GuiCtrlCreateInput($b, 80, 80, 60, 20) $c = GuiCtrlCreateInput($c, 150, 80, 60, 20) $d = GuiCtrlCreateInput($d, 220, 80, 60, 20) $e = GuiCtrlCreateInput($e, 290, 80, 60, 20) $f = GuiCtrlCreateInput($f, 360, 80, 60, 20) $g = GuiCtrlCreateInput($g, 430, 80, 60, 20) $h = GuiCtrlCreateInput($h, 10, 110, 60, 20) $i = GuiCtrlCreateInput($i, 80, 110, 60, 20) $j = GuiCtrlCreateInput($j, 150, 110, 60, 20) $k = GuiCtrlCreateInput($k, 220, 110, 60, 20) $l = GuiCtrlCreateInput($l, 290, 110, 60, 20) $m = GuiCtrlCreateInput($m, 360, 110, 60, 20) $n = GuiCtrlCreateInput($n, 430, 110, 60, 20) $o = GuiCtrlCreateInput($o, 10, 140, 60, 20) $p = GuiCtrlCreateInput($p, 80, 140, 60, 20) $q = GuiCtrlCreateInput($r, 150, 140, 60, 20) $r = GuiCtrlCreateInput($r, 220, 140, 60, 20) $s = GuiCtrlCreateInput($s, 290, 140, 60, 20) $t = GuiCtrlCreateInput($t, 360, 140, 60, 20) $u = GuiCtrlCreateInput($u, 430, 140, 60, 20) $v = GuiCtrlCreateInput($v, 10, 170, 60, 20) $w = GuiCtrlCreateInput($w, 80, 170, 60, 20) $x = GuiCtrlCreateInput($x, 150, 170, 60, 20) $y = GuiCtrlCreateInput($y, 290, 170, 60, 20) $z = GuiCtrlCreateInput($z, 220, 170, 60, 20) $Label_27 = GuiCtrlCreateLabel("Boxes go in alphabetical order. what ever is in the box is wat is going to be used when you press that key.", 20, 20, 230, 40) $info = GuiCtrlCreateButton("Info", 280, 250, 100, 30) $done = GuiCtrlCreateButton("Done", 400, 250, 100, 30) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $done done() Case $msg = $info info() Case Else ;;; EndSelect WEnd Exit #endregion --- GuiBuilder generated code End --- Opt("WinTitleMatchMode", 2);Any part of the string can be used in a window's name AutoItSetOption("TrayIconDebug", 1);Debug is on. This can be disabled by changing 1 to 0 ;If your script hangs, this will help you on what ;is causing the problem. $window1T = "Key Changer" While 1 Select Case WinActive($window1T) _win1_func() ContinueLoop EndSelect WEnd Func _win1_func() HotKeySet("a", "a") HotKeySet("b", "b") HotKeySet("c", "c") HotKeySet("d", "d") HotKeySet("e", "e") HotKeySet("f", "f") HotKeySet("g", "g") HotKeySet("h", "h") HotKeySet("i", "i") HotKeySet("j", "j") HotKeySet("k", "k") HotKeySet("l", "l") HotKeySet("m", "m") HotKeySet("n", "n") HotKeySet("o", "o") HotKeySet("p", "p") HotKeySet("q", "q") HotKeySet("r", "r") HotKeySet("s", "s") HotKeySet("t", "t") HotKeySet("u", "u") HotKeySet("v", "v") HotKeySet("w", "w") HotKeySet("x", "x") HotKeySet("y", "y") HotKeySet("z", "z") Do Sleep(10) Until Not WinActive($window1T) _key_clean_1() EndFunc ;==>_win1_func Func _key_clean_1();Releases hotsetkeys HotKeySet("a") HotKeySet("b") HotKeySet("c") HotKeySet("d") HotKeySet("e") HotKeySet("f") HotKeySet("g") HotKeySet("h") HotKeySet("i") HotKeySet("j") HotKeySet("k") HotKeySet("l") HotKeySet("m") HotKeySet("n") HotKeySet("o") HotKeySet("p") HotKeySet("q") HotKeySet("r") HotKeySet("s") HotKeySet("t") HotKeySet("u") HotKeySet("v") HotKeySet("w") HotKeySet("x") HotKeySet("y") HotKeySet("z") EndFunc ;==>_key_clean_1 ;the following functions are what happens when a key is pressed ;key changer AutoItWinSetTitle("Key Changer") ;================================================================ While 1 Sleep(111) WEnd ;=======================Functions================= Func unhide() GUISetState (@SW_SHOW) EndFunc ;------------------------------------------------- func info() msgbox (0, "Info", "Created by Dakota V1.0") endfunc ;-------------------------------------------------- func done() Msgbox (0,"Info" , "Press+Shift+Ctrl+Alt+S to open the window." ) GUISetState (@SW_HIDE) EndFunc ;================================================== ;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ;================================================== Func a() Send( GUICtrlRead( $a ) ) EndFunc ;================================================== ;bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ;================================================== Func b() Send( GUICtrlRead( $b ) ) EndFunc ;================================================== ;cccccccccccccccccccccccccccccccccccccccccccccccccc ;================================================== Func c() Send( GUICtrlRead( $c ) ) EndFunc ;================================================== ;dddddddddddddddddddddddddddddddddddddddddddddddddd ;================================================== Func d() Send( GUICtrlRead( $d ) ) EndFunc ;================================================== ;eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ;================================================== Func e() Send( GUICtrlRead( $e ) ) EndFunc ;================================================== ;ffffffffffffffffffffffffffffffffffffffffffffffffff ;================================================== Func f() Send( GUICtrlRead( $f ) ) EndFunc ;================================================== ;gggggggggggggggggggggggggggggggggggggggggggggggggg ;================================================== Func g() Send( GUICtrlRead( $g ) ) EndFunc ;================================================== ;hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh ;================================================== Func h() Send( GUICtrlRead( $h ) ) EndFunc ;================================================== ;iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii ;================================================== Func i() Send( GUICtrlRead( $i ) ) EndFunc ;================================================== ;jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj ;================================================== Func j() Send( GUICtrlRead( $j ) ) EndFunc ;================================================== ;kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk ;================================================== Func k() Send( GUICtrlRead( $k ) ) EndFunc ;================================================== ;llllllllllllllllllllllllllllllllllllllllllllllllll ;================================================== Func l() Send( GUICtrlRead( $l ) ) EndFunc ;================================================== ;mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm ;================================================== Func m() Send( GUICtrlRead( $m ) ) EndFunc ;================================================== ;nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn ;================================================== Func n() Send( GUICtrlRead( $n ) ) EndFunc ;================================================== ;oooooooooooooooooooooooooooooooooooooooooooooooooo ;================================================== Func o() Send( GUICtrlRead( $o ) ) EndFunc ;================================================== ;pppppppppppppppppppppppppppppppppppppppppppppppppp ;================================================== Func p() Send( GUICtrlRead( $p ) ) EndFunc ;================================================== ;qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq ;================================================== Func q() Send( GUICtrlRead( $q ) ) EndFunc ;================================================== ;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr ;================================================== Func r() Send( GUICtrlRead( $r ) ) EndFunc ;================================================== ;ssssssssssssssssssssssssssssssssssssssssssssssssss ;================================================== Func s() Send( GUICtrlRead( $s ) ) EndFunc ;================================================== ;tttttttttttttttttttttttttttttttttttttttttttttttttt ;================================================== Func t() Send( GUICtrlRead( $t ) ) EndFunc ;================================================== ;uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu ;================================================== Func u() Send( GUICtrlRead( $u ) ) EndFunc ;================================================== ;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv ;================================================== Func v() Send( GUICtrlRead( $v ) ) EndFunc ;================================================== ;wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww ;================================================== Func w() Send( GUICtrlRead( $w ) ) EndFunc ;================================================== ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;================================================== Func x() Send( GUICtrlRead( $x ) ) EndFunc ;================================================== ;yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy ;================================================== Func y() Send( GUICtrlRead( $y ) ) EndFunc ;================================================== ;zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz ;================================================== Func z() Send( GUICtrlRead( $z ) ) EndFunc Link to comment Share on other sites More sharing options...
Daniel W. Posted June 7, 2006 Share Posted June 7, 2006 Why dont you use this for hotkeyset? For $a = 97 to 122 HotKeySet( Chr($a) , Chr($a) ) Next oÝ÷ Ù«¢+Ø)½ÈÀÌØíôäÜѼÄÈÈ(%!½Ñ-åMÐ ¡È ÀÌØí¤¤)9áÐ --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Link to comment Share on other sites More sharing options...
dakota Posted June 7, 2006 Author Share Posted June 7, 2006 because then if i set a=/\ i xould have to press /\ to get it to work Link to comment Share on other sites More sharing options...
dakota Posted June 7, 2006 Author Share Posted June 7, 2006 this is what i got with out making it a gui if any of you are trying to see want i am doing expandcollapse popup$file = inputbox ("file name" , "What would yo like to name the file of the key (example: code.txt):") $space = inputbox ("Space" , "Space Charecter") $chersep = inputbox ("Seprtater" , "Cherecter seperater") $a = inputbox ("a" , "a = ") $b = inputbox ("b" , "b = ") $c = inputbox ("c" , "c = ") $d = inputbox ("d" , "d = ") $e = inputbox ("e" , "e = ") $f = inputbox ("f" , "f = ") $g = inputbox ("g" , "g = ") $h = inputbox ("h" , "h = ") $i = inputbox ("i" , "i = ") $j = inputbox ("j" , "j = ") $k = inputbox ("k" , "k = ") $l = inputbox ("l" , "l = ") $m = inputbox ("m" , "m = ") $n = inputbox ("n" , "n = ") $o = inputbox ("o" , "o = ") $p = inputbox ("p" , "p = ") $q = inputbox ("q" , "q = ") $r = inputbox ("r" , "r = ") $s = inputbox ("s" , "s = ") $t = inputbox ("t" , "t = ") $u = inputbox ("u" , "u = ") $v = inputbox ("v" , "v = ") $w = inputbox ("w" , "w = ") $x = inputbox ("x" , "x = ") $y = inputbox ("y" , "y = ") $z = inputbox ("z" , "z = ") ;=========================================== FileWriteLine($file , "space=" & $space) FileWriteLine($file , "Seprtater=" & $chersep) FileWriteLine($file , "a=" & $a) FileWriteLine($file , "b=" & $B) FileWriteLine($file , "c=" & $c) FileWriteLine($file , "d=" & $d) FileWriteLine($file , "e=" & $e) FileWriteLine($file , "f=" & $f) FileWriteLine($file , "g=" & $g) FileWriteLine($file , "h=" & $h) FileWriteLine($file , "i=" & $i) FileWriteLine($file , "j=" & $j) FileWriteLine($file , "k=" & $k) FileWriteLine($file , "l=" & $l) FileWriteLine($file , "m=" & $m) FileWriteLine($file , "n=" & $n) FileWriteLine($file , "o=" & $o) FileWriteLine($file , "p=" & $p) FileWriteLine($file , "q=" & $q) FileWriteLine($file , "r=" & $r) FileWriteLine($file , "s=" & $s) FileWriteLine($file , "t=" & $t) FileWriteLine($file , "u=" & $u) FileWriteLine($file , "v=" & $v) FileWriteLine($file , "w=" & $w) FileWriteLine($file , "x=" & $x) FileWriteLine($file , "y=" & $y) FileWriteLine($file , "z=" & $z) ;=========================================== while 1 HotKeySet("{SPACE}", "space") HotKeySet("a", "a") HotKeySet("b", "b") HotKeySet("c", "c") HotKeySet("d", "d") HotKeySet("e", "e") HotKeySet("f", "f") HotKeySet("g", "g") HotKeySet("h", "h") HotKeySet("i", "i") HotKeySet("j", "j") HotKeySet("k", "k") HotKeySet("l", "l") HotKeySet("m", "m") HotKeySet("n", "n") HotKeySet("o", "o") HotKeySet("p", "p") HotKeySet("q", "q") HotKeySet("r", "r") HotKeySet("s", "s") HotKeySet("t", "t") HotKeySet("u", "u") HotKeySet("v", "v") HotKeySet("w", "w") HotKeySet("x", "x") HotKeySet("y", "y") HotKeySet("z", "z") wend ;=================Functions================= Func space() send ($space) EndFunc ;================================================== ;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ;================================================== Func a() Send ($a & $chersep) EndFunc ;================================================== ;bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ;================================================== Func b() Send ($b & $chersep) EndFunc ;================================================== ;cccccccccccccccccccccccccccccccccccccccccccccccccc ;================================================== Func c() Send ($c & $chersep) EndFunc ;================================================== ;dddddddddddddddddddddddddddddddddddddddddddddddddd ;================================================== Func d() Send ($d & $chersep) EndFunc ;================================================== ;eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ;================================================== Func e() Send ($e & $chersep) EndFunc ;================================================== ;ffffffffffffffffffffffffffffffffffffffffffffffffff ;================================================== Func f() Send ($f & $chersep) EndFunc ;================================================== ;gggggggggggggggggggggggggggggggggggggggggggggggggg ;================================================== Func g() Send ($g & $chersep) EndFunc ;================================================== ;hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh ;================================================== Func h() Send ($h & $chersep) EndFunc ;================================================== ;iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii ;================================================== Func i() Send ($i & $chersep) EndFunc ;================================================== ;jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj ;================================================== Func j() Send ($j & $chersep) EndFunc ;================================================== ;kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk ;================================================== Func k() Send ($k & $chersep) EndFunc ;================================================== ;llllllllllllllllllllllllllllllllllllllllllllllllll ;================================================== Func l() Send ($l & $chersep) EndFunc ;================================================== ;mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm ;================================================== Func m() Send ($m & $chersep) EndFunc ;================================================== ;nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn ;================================================== Func n() Send ($n & $chersep) EndFunc ;================================================== ;oooooooooooooooooooooooooooooooooooooooooooooooooo ;================================================== Func o() Send ($o & $chersep) EndFunc ;================================================== ;pppppppppppppppppppppppppppppppppppppppppppppppppp ;================================================== Func p() Send ($p & $chersep) EndFunc ;================================================== ;qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq ;================================================== Func q() Send ($q & $chersep) EndFunc ;================================================== ;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr ;================================================== Func r() Send ($r & $chersep) EndFunc ;================================================== ;ssssssssssssssssssssssssssssssssssssssssssssssssss ;================================================== Func s() Send ($s & $chersep) EndFunc ;================================================== ;tttttttttttttttttttttttttttttttttttttttttttttttttt ;================================================== Func t() Send ($t & $chersep) EndFunc ;================================================== ;uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu ;================================================== Func u() Send ($u & $chersep) EndFunc ;================================================== ;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv ;================================================== Func v() Send ($v & $chersep) EndFunc ;================================================== ;wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww ;================================================== Func w() Send ($w & $chersep) EndFunc ;================================================== ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;================================================== Func x() Send ($x & $chersep) EndFunc ;================================================== ;yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy ;================================================== Func y() Send ($y & $chersep) EndFunc ;================================================== ;zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz ;================================================== Func z() Send ($z & $chersep) EndFunc 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