09-21-2007, 12:12 AM
I was wondering if it was possible to set a macro to trigger once I go to a certain website, rather then triggering by the name of the window?
Taking on Quick Macros one day at a time
Recognizing Website?
|
09-21-2007, 12:12 AM
I was wondering if it was possible to set a macro to trigger once I go to a certain website, rather then triggering by the name of the window?
Taking on Quick Macros one day at a time
09-21-2007, 01:14 AM
I would try an Accessible object Trigger.
09-21-2007, 01:15 AM
Alright i'll read up on it... Never really worked with Accesible objects, if this isn't possible maybe this should be under the wish list.
Taking on Quick Macros one day at a time
09-22-2007, 02:16 PM
Hmm, this Accesible Object just isn't working out for me. I don't know if it's because im not sure what im doing or if it just won't work? Any ideas for how this would work would be great.
Taking on Quick Macros one day at a time
09-22-2007, 04:54 PM
This works for me, Keep in mind that im using Internet Explorer 7. I read http://www.quickmacros.com/help/QM_Help/...G_ACC.html to help me on the trigger. Function ( hi_QM ) Trigger ( $a 142 -4 0 "Edit" 41477 "" "IEFrame" "Internet Explorer" 0 ) function hwnd idObject idChild OR Function ( hi_QM ) Trigger ( $a 142 -4 0 "Edit" 41477 "quickmacros.com" "IEFrame" "Internet Explorer" 0 ) function hwnd idObject idChild To discover events and object properties, use accessible object event logging. Right click the output pane and check Log -> Acc. events in the menu. In the logging options dialog you can specify certain filters, to exclude some types of events and objects. Following events are always excluded: LOCATIONCHANGE where idObject is CURSOR, console events, and events in QM thread. Triggers in QM thread also don't work.
09-22-2007, 05:14 PM
Thanks. I hope this works. I'll give the logging a try and see what I get.
Taking on Quick Macros one day at a time
09-22-2007, 05:18 PM
You want to look for something like this.
09-22-2007, 05:20 PM
Quote:You want to look for something like this. Thats what I grabbed from it but it kept constantly, no matter where I was on the QM website, entering my password Hmm, I tried the logging and when I put the trigger in, it doesn't seem to go by the website but instead by the title of the page at the top of Internet Explorer. I'm just trying to set it up so that when I go to a specific webpage that it will automatically enter my password. Maybe there is a better way to go about this? I'm testing it with Quick Macros website for login but I can't seem to get it to work. .
Taking on Quick Macros one day at a time
09-22-2007, 05:22 PM
what internet explorer are you using.
09-22-2007, 05:29 PM
in this trigger you will see quickmacros.com change that to the site your wanting.
Function ( hi_QM ) Trigger ( $a 142 -4 0 "Edit" 41477 "quickmacros.com" "IEFrame" "Internet Explorer" 0 ) function hwnd idObject idChild if you give me the site you are wanting to put in password for i could help you.
09-22-2007, 05:51 PM
Example for QM forum. Function ( hi_QM ) Trigger ( $a 142 -4 0 "Edit" 41477 "http://www.quickmacros.com/forum/index.php" "IEFrame" "Internet Explorer" 0 ) function hwnd
09-22-2007, 06:19 PM
The website i'm using is for my school, to check my grades and what not... i got the trigger to work now but when it comes to the entering the password, I have no id to go by. I tried using Find Accesible Objects to get it to do the action that way but I can't get it to work.
Taking on Quick Macros one day at a time
09-22-2007, 06:24 PM
Use "HTML element actions" like in my Example. ![]()
09-22-2007, 06:30 PM
I tried your example but it doesnt do anything when I try it. Maybe because i'm only running on QM 2.1.8?
Taking on Quick Macros one day at a time
09-22-2007, 06:38 PM
Nevermind I got it. I needed el.SetFocus to get it to work. Thanks for all the help.
Taking on Quick Macros one day at a time
09-22-2007, 06:40 PM
No problem glad you got it.
09-22-2007, 08:20 PM
I thought this was working but now that I got the password part down now i realized that the website part isn't working. It's still entering my password at every screen with the websites name in it rather then specifically just that website.
Also, when logging, I get something like this back(This is from your earlier post): 40. VALUECHANGE, CLIENT, 0 ow: class="Edit", id=41477, text="www.something.com" pw: class="IEFrame", name="Internet Explorer" this line is not needed for the trigger you want. ao: role=TEXT, state=0x100000, name="Address", value="http://www.quickmacros.com/" Do I just choose: "Edit", id=41477, text="www.something.com" or "IEFrame", name="Internet Explorer" and then place it into the trigger? I was choosing the top one for my website, for the trigger, and it's working, but it's triggering for every window that has at least that web address in it. Example: My macro would trigger with both of these web addresses: http://www.quickmacros.com and http://www.quickmacros.com/forum/index.php
Taking on Quick Macros one day at a time
09-22-2007, 08:41 PM
You are going to have to use htm like in my example to enter your password or user name. This way if the id "username" is not there it will not set any text it will simple end. I could write the code for you if you gave me the website, but im not going to be of much help otherwise. Every site is a little different there for my example is not going to work unless you make some changes to it.
09-22-2007, 09:08 PM
Okay i'll give it a try and if I can't get it to work ill post the website... I just like to try and learn how to do this stuff on my own until i'm positive I can't get it.
Taking on Quick Macros one day at a time
09-22-2007, 09:13 PM
I understand, let me know how it goes.
09-22-2007, 09:22 PM
Okay, you were right, all I had to do was add another htm for the user login so that when it doesn't see the user login that it will end the macro. Thank you for all your help.
Taking on Quick Macros one day at a time
09-30-2007, 11:47 PM
Hey any idea why the macro icon in my taskbar stays red after it types in the password? I even tried to use shutdown in the bottom of my macro to make sure it ends there but it still stays red?
Taking on Quick Macros one day at a time
10-01-2007, 03:00 AM
My guess would be that its getting hung up in a wait for something. Can you post the code?
10-01-2007, 03:19 AM
Yeah, but ill have to edit it some, because it has password and information in there and what not.
Taking on Quick Macros one day at a time
10-01-2007, 03:24 AM
Here, I just changed the a and b variable information. Macro ( Student Connect ) Trigger ( $a 142 -4 0 "Edit" 41477 "zangleweb.resa.net/Gibraltar/StudentConnect/" ) str s="0"
Taking on Quick Macros one day at a time
10-01-2007, 06:25 AM
Use deb or out to see where it stops. Possibly in el.Click. If so, replace it with el.Mouse(1). I think, el.Click waits until the browser processes the click event, and sometimes it can wait really long time.
Or instead of el.Click press Enter (key Y). Or instead of all use AutoPassword.
10-01-2007, 02:56 PM
Try this it works for me other than it wont let me log in because the username and password are 0 1. Maybe the .SetFocus is hanginig you up some how, its not needed to use .SetText . Function ( Function4 ) Trigger ( $a 142 -4 0 "Edit" 41477 "zangleweb.resa.net/Gibraltar/StudentConnect/" ) function hwnd
10-01-2007, 03:23 PM
You know what, I see the problem now you are waiting 60 seconds for "stuident" in a macro you should change this macro to a function so it doesnt keep your arrows red all the time you are surffing that website. Or change that wait time to something smaller. Or something like this. Function ( Function4 ) Trigger ( $a 142 -4 0 "Edit" 41477 "zangleweb.resa.net/Gibraltar/StudentConnect/" ) function hwnd |
« Next Oldest | Next Newest »
|