
hmRaggy
Members-
Posts
14 -
Joined
-
Last visited
hmRaggy's Achievements

Seeker (1/7)
0
Reputation
-
running variables using Send("xxx")
hmRaggy replied to hmRaggy's topic in AutoIt General Help and Support
OMFG I LOVE YOU! -
HotKeySet("z", "one") ;;;;;;;;;; Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{f1}", "Terminate") Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc ;;;;;;;;;; While 1 dim $1 WEnd Func one() $1 = $1+1 Send("{"&$1&"}") Send("{ENTER}", 0) EndFunc Theres my script. I'm trying to get it to go from 1 and every time I punch my key I want it to go up one more number like this " 1 2 3 4 5 6 7 8 9 10 11 12 " But it only goes to 9 then puts in 1 10x times then 2 10x times like this... " 1 2 3 4 5 6 7 8 9 1 1 1 1 1 " how do I get it to type in 10, 12, 13, and so on??
-
Hello, I am trying to write a simple program for someone my girlfriend babysits for. They have a lil dude that likes to hop on the computer, he's brilliant, and know how to use it very well, in fact so well that he gets into valuable documents and such. I was building them a nifty lil thing that would allow them to have a lil toddler menu to pop up, and if he clicked out of it then it would sound the short alarm, and disable the mouse and keybord. I rember I used to be able to disable the mouse and keyboard with AutoIt v2. But I am having a hard time finding the option in AutoIt v3. Can someone please help me find the option to disable the keyboard and mouse?
-
DUH! lol, I don't know why I didn't think of doing it that way! lol, thank you guys! I really appreciate it!
-
I can't seem to figure out how to get a mouseclick and a keystroke to happen at the same time. Here is my best attempt I have made so far. $mouse = MouseClick("left") $key = Send("{SHIFT}") Send("$mouse$key", 0) But its still not workin'. Can someone pretty please 0 =) give me an example on how to preform a mouseclick and a keystroke at the same time? such as Shift+Click?
-
I'm looking to make an inputbox thats like a clipboard type thing. So say you have your little input box and everytime you press f1 you want it to take whatever is written into the input box, and type it out. I would very much appreciate it if someone could give me an example. I have tried to no avail. I am a bit of a noob scripter. I don't have my example on me at the moment, I am currently at work. I have been working on a project that will take care of alot of needless typing on this aincent software I have at work. And I have gotten alot done with the hotkeys, but I would like to remove all need to touch the stupid program at work with the new GUI window I have been working on. And currently I just need an example of how to take an input box and make it do a copy/paste type thing. I have tried to set up the input box as a variable, and send the variable through the Send("$var") type thingy and several other methods. But my noobish ways only carry me so far untill I need some assistance. Please send me an example or two, Raggy
-
I'm just trying to do somethin' like a copy/paste. Like I wanna run a script, and whatever is in the input box will be inputed inside the script. Like if I wanted my script to press "1" (sleep) "2" whenever I press a hotkey but I wnated to adjust the sleep time between "1" (slep) "2" with the gui input. So I could run the script and be able to change the sleep variable without configuring the script itself.
-
Hello, I am trying to make a GUI window with an input box so that I can take whatever is in that input box and paste it in a spot in a script... don't know if that makes any sense or not, but heres the way I'm thinkin' of it Here is my script so far... #include <GUIConstants.au3> GUICreate("Double Click", 120, 40, 20, 20) GUISetState (@SW_SHOW) $var = GUICtrlCreateInput("120", 10, 10, 100, 20) HotKeySet("{1}", "one") Func one() Send("1") Sleep($var) Send("2") EndFunc While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend I just need an universal example so I can make what I need =p
-
I rember a while back when I first got into AutoIt, There was a nifty tool that was a GUI window with lots of stuff in it. It would give you the X/Y corrds, the pixle color and a few other things. I was curious as to where I could find the nifty program. I have been searching to no end. I am finally getting into pixle colors, and automated mouse movement, but so far I am having to guess and guess to get it right. Could someone send me the file, or script for it? Thanks! KC_
-
Not too sure if this is what you're looking for, but someone helped me before so I'll give you an example of what I have. When you press Divide on the Numpad it will say "Hey, it is working!" When you press the Escape key, it will quit the script. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; AutoItSetOption ( "SendKeyDelay", 0 ) ; The key delay 0 = instant, 1 = fastest HotKeySet("{ESC}", "Terminate") HotKeySet("{NUMPADDIV}", "one") While 1 Sleep(100) WEnd Func Terminate() Exit 0 EndFunc Func one() Send("Hey, it is working!", 1) EndFunc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
Hello, I am working on a script and I am absolutley lost. I can make the GUI window and the checkbox. And I can make the hotkey with a script. I'm just lost as to what I need to do to insert a variable into my hotkeyed script to check for the checkbox, and if it is checked it will do something and if it is not checked then it will do nothing. Crude example When you press hotkey it will say; "Test" When you press hotkey with checkbox checked it will say; "Working Test" If someone can give me an example on how to do that, it would be much appreciated! heres my messed up script, I just took stuff from some examples, but I have no idea how to get the checkboxes to interact with my hotkey script. I know I'm a total noob. But I've spent like 5 hrs trying to figure it out. If I can just get someone to show me how to make it work then I can make my full script for work. And work will get much easier! #include <GUIConstants.au3> ;GUI WINDOW------------------------- GUICreate("My GUI Checkbox" , 400 , 300 , 400 , 600 ) ;CHECKBOXES------------------------- GUICtrlCreateCheckbox ("test box", 10, 10, 120, 20) ; ;Where I need to add variables ; ;HOTKEY---------------------------------- AutoItSetOption ( "SendKeyDelay", 10 ) HotKeySet("{NUMPADDIV}", "one") Func one(); ; ;Where I need to add variables ; Send("test{ENTER}", 0) EndFunc GuiSetState() While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd
-
Ok, I'm looking at this WinMove option. so how would I use it? would I just make the script run the game, then try to have it resize it using WinMove? could someone just put some random blurb of script on opening a program and resizing it using winmove? I'm gonna be trying this myself I'll post my results
-
is it really? I'm still gonna try though =p . That script on how to bring up a webpage into a GUI window is freakin' awsome. So I'm gonna try to use some of that dudes idea . Thank you for the reply. So how would i use WinMove? I'll look through the fourms, and the help files, and post my findings .
-
I have a game that I cannot make run in a window. I was curious as to weather or not I would be able to force the game to run inside a gui window. is it possible? I see that people made their own web browsers n' stuff using AutoIt, but I was curious as to weather or not I could make a GUI window that would hold the program, so that it would not go to full screen =\ . Makes it much easier to use my messengers, and multitask. I guess what I want it to do is create the GUI window, and open the program inside the GUI window. I just recently started scripting, and this GUI menu looks like it has alot to offer. Could someone help me? I'm sure that if someone could give me a baseline on how to get it to work, and a lil bit of scripting, I could fill in the blanks. I'm catching on pretty fast.