agertnas
Members-
Posts
18 -
Joined
-
Last visited
About agertnas
- Birthday 09/09/1984
Profile Information
-
Location
Lansing, MI
agertnas's Achievements
Seeker (1/7)
0
Reputation
-
I'm trying to make up a program that will allow me to save links on pages that I go to that I might want to look at on a later time. For example, I come to 40 pages of stuff I want to learn how to do on the autoit forums.. What I would want to do, is click on this link to this thread, or to any website and have it save the website URL to an ini file, or maybe an excel file, whichever works. Is it possible to set this up with autoit? I believe I want to set it up with a hotkey, like hold down X key + left mouse button and it will save the link I click on, or something to that effect. Any help would be appreciated. Feel free to send me to some help files :-P
-
lmao While 1 While _Ispressed(02) $x = MouseGetPos(0) $y = MouseGetpos(1) MouseDown("Right") Sleep (200) WEnd WEnd I always make things harder than they should be :-/ Thank you for the help Smoke!
-
Thank you I have got it figured out.. The code I have right now is below.. What can I do to make this so while the right button on the mouse is down it will continue the click process? I figured this would do it, but apparently I am missing something.. While 1 While _Ispressed(02) $x = MouseGetPos(0) $y = MouseGetpos(1) MouseClick("right", $x, $y, 5, 100) Sleep (200) WEnd WEnd Also i'd like to make it stop the click process when the button is released. I tried to use mousedown for that, but it just ended up creating an endless loop.
-
I want to make a simple program that allows me to press a button on the mouse, hold it down, and it will press multiple times. The purpose of this is to save life on my mouse when I play some click fest games. I understand that this wont work on some games, But i'd like to make it anyway. Can I get any suggestion on how to do the mouse portion of this? Giving me some stuff to look up on the help section would be fine as well.. I guess its possible that there is no way to do this as well, but I can't imagine that being true. If it is impossible, let me know..
-
How to Save an ini file as the program name?
agertnas replied to agertnas's topic in AutoIt General Help and Support
LoL.. sorry, I made the first part of that a little too difficult in my head.. Thank you for the second part. -
I'm currently making a program called Thread Bumper.. What the program does is take sites I put input into the GUI and go to them and run a script which bumps a thread with a post, then deletes the post. The Site is http://www.battle.net/forums/board.aspx?Fo...ame=sc2-general The above site is the Starcraft 2 official forum. The problem is Blizzard entertainment is using a 10 year old forum currently, and asking for discussion and suggestions. A few people, under many names, for whatever reason, keep spamming the forum often to try and kill it. I need help with my program, I've got it so it does everything I want it to, however, these guys have a way to spam threads and crash them so no new posts are shown on them, and it causes a script error in the web page. I need to know if there is code to end all script running on an IE window immediately before carrying out my script. Is it possible? If you have any other ideas, please tell me. :-P
-
How do I get script to not pause?
agertnas replied to agertnas's topic in AutoIt GUI Help and Support
Slight correction, it pauses when I close the internet explorer window. -
CODEWhile 1 ; Start While loop $msg = GUIGetMsg () Select Case $msg = -3 Exit Case $msg = $alogin ; Start Username and Password Login Case _ButtonFunc() IniDelete(@DesktopDir & "\fantasylogin.ini", "Username", "Key1") ; Delete Username and Password Section IniDelete(@DesktopDir & "\fantasylogin.ini", "Password", "Key2") IniWriteSection($sIni, "Username", "Key1=" & Guictrlread ($Username)) ; Write Username and Password Section IniWriteSection($sIni, "Password", "Key2=" & GUICtrlRead ($Password)) $oIE = _IECreate("www.nfl.com/fantasy") ; Go to site and log in. $oForm = _IEFormGetCollection($oIE, 0) $Username1 = _IEFormElementGetObjByName($oForm, "Account") $Password1 = _IEFormElementGetObjByName($oForm, "password") _IEFormElementSetValue($Username1, GUICtrlRead ($Username)) _IEFormElementSetValue($Password1, GUICtrlRead ($Password)) _IEFormSubmit($oForm) EndSelect Wend In the above code, how do I make it so when it logs in once, you can log in again after that if you want. Right now i'm having trouble with the whole script pausing because of hitting one button, none of the other buttons will work, and the script icon says "script paused". Any help would be appreciated, feel free to tell me what to look up in the help file. :-P
-
Code for remembering data put in input boxes?
agertnas replied to agertnas's topic in AutoIt GUI Help and Support
Thanks -
Code for remembering data put in input boxes?
agertnas posted a topic in AutoIt GUI Help and Support
I've been looking through the help section, typing in several different keywords but i'm not finding anything. Can anyone give me a simple code that sets this up? if there is a simple code.. Also if you just want to tell me what to look up in help, that would be fine too :-) All I want to do is save Username, and password input. And a couple input boxes with site addresses. Nothing big. -
How do I get a GUI button to run a script?
agertnas replied to agertnas's topic in AutoIt GUI Help and Support
Thank you, I understand. -
How do I get a GUI button to run a script?
agertnas replied to agertnas's topic in AutoIt GUI Help and Support
Hmm.. Well I got it to work once, but when I tried to repeat the situation with another button, nothing happens.. Here is my full code so far CODE#include <IE.au3> #include <String.au3> #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form=C:\Documents and Settings\Owner\Desktop\Myfirstscript\fantasylogin.kxf $login = GUICreate("login", 616, 430, 205, 173) GUISetBkColor(0x83B7E3) $login1 = GUICtrlCreateButton("Login", 22, 27, 97, 33, 0) $bt1 = GUICtrlCreateButton("B1", 24, 72, 89, 25, 0) $bt2 = GUICtrlCreateButton("B2", 24, 104, 89, 25, 0) $bt3 = GUICtrlCreateButton("B3", 24, 136, 89, 25, 0) $bt4 = GUICtrlCreateButton("B4", 24, 168, 89, 25, 0) $bt5 = GUICtrlCreateButton("B5", 24, 296, 89, 25, 0) $bt6 = GUICtrlCreateButton("B6", 24, 264, 89, 25, 0) $bt7 = GUICtrlCreateButton("B7", 24, 232, 89, 25, 0) $bt8 = GUICtrlCreateButton("B8", 24, 200, 89, 25, 0) $bt9 = GUICtrlCreateButton("B9", 24, 360, 89, 25, 0) $bt10 = GUICtrlCreateButton("B10", 24, 328, 89, 25, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $msg = GUIGetMsg () Select Case $msg = -3 Exit Case $msg = $login1 _ButtonFunc() $oIE = _IECreate("site") Sleep(2000) $oForm = _IEFormGetCollection($oIE, 0) $Username = _IEFormElementGetObjByName($oForm, "Account") $Password = _IEFormElementGetObjByName($oForm, "password") _IEFormElementSetValue($Username, "Username") _IEFormElementSetValue($Password, "Password") _IEFormSubmit($oForm) Sleep(2000) EndSelect WEnd Func _ButtonFunc() MsgBox (0, "", "The button was pressed! Your code would then be executed.") EndFunc While 2 $msg2 = GUIGetmsg () Select Case $msg2 = -3 Exit Case $msg2 = $bt1 _ButtonFunc2() $oIE = _IECreate("Site") EndSelect WEnd Func _ButtonFunc2() Msgbox (0,"","should work") EndFunc Any idea what I've done wrong? I'm sure there is something i'm missing. But, the second button just will not open another IE window. I'd prefer to use only 1 IE window, and keep reusing the same window, but I can't figure out how to do that either. -
How do I get a GUI button to run a script?
agertnas replied to agertnas's topic in AutoIt GUI Help and Support
Thanks :-) -
CODE#include <IE.au3> $oIE = _IECreate("Site") $oForm = _IEFormGetCollection($oIE, 0) $Username = _IEFormElementGetObjByName($oForm, "Account") $Password = _IEFormElementGetObjByName($oForm, "password") _IEFormElementSetValue($Username, "username") _IEFormElementSetValue($Password, "password") _IEFormSubmit($oForm) I want to get a button to run the above script without having to use the CODERun ("AutoIt3.exe try1.au3") Is there a way to just add the script that I want to add to the GUI button, without having to run it as a seperate script? If you couldn't already tell, I'm a total beginner. I've searched up and down the site for this, and all over the help section. If its in the help section, and you'd rather just tell me what to search for, that would work too. :-) Thanks..