Search found 79 matches

by thenasos
07 Dec 2016, 08:25
Forum: Ask For Help
Topic: IfExists..Tries to include sript that does not exit yet Topic is solved
Replies: 6
Views: 816

Re: IfExists..Tries to include sript that does not exit yet Topic is solved

And there I was, a simpleton, jesting about: IfNotExist, %A_WorkingDir%\trumpiniai.ahk { MsgBox No main shortcut file, you are on your own, solder! goto includeExeption } #Include trumpiniai.ahk includeExeption: IfNotExist, %A_WorkingDir%\personalShorts.ahk { FileAppend, /*`rYour journey starts here...
by thenasos
07 Dec 2016, 07:47
Forum: Ask For Help
Topic: IfExists..Tries to include sript that does not exit yet Topic is solved
Replies: 6
Views: 816

IfExists..Tries to include sript that does not exit yet Topic is solved

Script tries to #include stuff that does not exist yet... The first include works ok, the second is the issue. "(11) : ==> #Include file "personalShorts.ahk" cannot be opened." What am I doing wrong? #Include %A_ScriptDir% IfExist, %A_WorkingDir%\trumpiniai.ahk { #Include trumpiniai.ahk }else{ MsgBo...
by thenasos
28 Nov 2016, 08:10
Forum: Ask For Help
Topic: GUI, second text does not update Topic is solved
Replies: 1
Views: 351

Re: GUI, second text does not update Topic is solved

did not specify, where to change..
by thenasos
28 Nov 2016, 07:44
Forum: Ask For Help
Topic: Global Variable issue
Replies: 13
Views: 1542

Re: Global Variable issue

You don't need "global", your sleeptime is declared outside functions, they are global, by default. Also, you did not instruct what to do with that 1000 on the first time. Should be F12::suspend sleeptime := 1000 $a:: { sleep %sleeptime% while getkeystate("a","p") { Send {a down} Sleep 10 Send {a up...
by thenasos
28 Nov 2016, 07:17
Forum: Ask For Help
Topic: GUI, second text does not update Topic is solved
Replies: 1
Views: 351

GUI, second text does not update Topic is solved

First text "upORdown" updates fine, second one drives me crazy... help, please Gui, +Toolwindow Gui, Add, Button, gUpBtn x0 y0 w40 h40 +Center, Up Gui, Add, Button, gDownBtn x120 y0 w40 h40 , Down Gui, Add, Text, x40 y0 w80 h40 +Center +, UP %upORdown% Gui, Add, Button, gGo x0 y160 w160 h40 +Center ...
by thenasos
28 Nov 2016, 05:09
Forum: Ask For Help
Topic: GUI modify varialbe as "+" or as "-" Topic is solved
Replies: 2
Views: 453

Re: GUI modify varialbe as "+" or as "-" Topic is solved

A cookie for guest3456, please!
by thenasos
25 Nov 2016, 09:49
Forum: Ask For Help
Topic: GUI modify varialbe as "+" or as "-" Topic is solved
Replies: 2
Views: 453

GUI modify varialbe as "+" or as "-" Topic is solved

Want to have a GUI, that allow to set if variable will count down, or count up. Tried being smartass and passing directly like this "addORremove := "+"" as expected AutoHotkey laughed at my intentions... upORdown := Gui, 1:Add, Button, gUpBtn x0 y0 w40 h40 +Center, Up Gui, 1:Add, Button, gDownBtn x1...
by thenasos
23 Nov 2016, 07:52
Forum: Ask For Help
Topic: new AHK exe files wont run on other PCs
Replies: 9
Views: 1269

Re: new AHK exe files wont run on other PCs

My, guess, it does not wait for notepad to start and still continues with the script. Also, I am not sure about the directory "k:\hg\test.txt", "K" essentially is just a shortcut name. On my computer can have a different value, that your computer. Try using full path. Run, K:\HG\test.txt ; sould be ...
by thenasos
21 Nov 2016, 09:54
Forum: Ask For Help
Topic: If var != rebelVar disobeying values.. Topic is solved
Replies: 1
Views: 451

If var != rebelVar disobeying values.. Topic is solved

Should compare two numeric values, if varialbes "tradeLangai" and "numbe" are not equal, a msgbox should show up. I can see, it registers 16 for both values, but it still comes as true.. numbe := 0 Loop { tname := tag[x].title if tname != { tag[x].getElementsByTagName("a")[0].click() numbe += 1 }x -...
by thenasos
14 Nov 2016, 07:22
Forum: Ask For Help
Topic: Restore multiple windows Topic is solved
Replies: 3
Views: 570

Re: Restore multiple windows Topic is solved

Capn Odin wrote:You don't appear to include ahk_group in your calls.
Yep, reading classes, that's what I need. :geek:

Thank you, both!
by thenasos
14 Nov 2016, 06:08
Forum: Ask For Help
Topic: Restore multiple windows Topic is solved
Replies: 3
Views: 570

Restore multiple windows Topic is solved

Unable to restore group of windows, I must be missing something? WinGetActiveTitle, SBm GroupAdd, grpm, %SBm% WinMinimize % SBm WinGetActiveTitle, SBm WinMinimize % SBm WinRestore % grpm MsgBox done GroupClose % grpm return Here it sais "All windowing commands can operate upon a window group by spec...
by thenasos
13 Nov 2016, 07:38
Forum: Ask For Help
Topic: DOM - Access denied after running loop with function Topic is solved
Replies: 2
Views: 488

Re: DOM - Access denied after running loop with function Topic is solved

Turns out, anything added that manipulates active windows in the function, will result in "access denied" for the next loop of "clicks". As a workaround, I had the link opening loop complete, then manipulate all pop-ups in the next loop, that increased amount script lines needed, but solved issues. ...
by thenasos
10 Nov 2016, 08:55
Forum: Ask For Help
Topic: DOM - Access denied after running loop with function Topic is solved
Replies: 2
Views: 488

DOM - Access denied after running loop with function Topic is solved

Should check all tags and open the ones with links. If I comment out function WinWaitTrade() , all links open fine, if enable it on second loop cycle I get permission denied for tname := tag[x].title Function should not affect dom element at all.. Error: 0x80070005 - Access is denied Specifically: 1...
by thenasos
10 Nov 2016, 07:25
Forum: Ask For Help
Topic: Variable has not been assinged a value Topic is solved
Replies: 6
Views: 1031

Re: Variable has not been assinged a value Topic is solved

Reviewing index and permissions did help. tag := wp.Document.parentWindow.frames["frameB"].Document.getElementsByTagName("tbody")[1].getElementsByTagName("tr") x := tag.length - 1 Loop { tname := tag[x].title if tname != { tag[x].getElementsByTagName("a")[0].click() Sleep 200 } x -=1 }until x = 0 re...
by thenasos
08 Nov 2016, 02:17
Forum: Ask For Help
Topic: Variable has not been assinged a value Topic is solved
Replies: 6
Views: 1031

Re: Variable has not been assinged a value Topic is solved

zekerya wrote:try clearing #Warn from your script
Same issues
by thenasos
08 Nov 2016, 01:21
Forum: Ask For Help
Topic: Variable has not been assinged a value Topic is solved
Replies: 6
Views: 1031

Re: Variable has not been assinged a value Topic is solved

TLM wrote:try: tag[ counting ].getElementsByTagName("a")[0].click()
Without "%%" I get:
Error: 0x80020006 - Unknown name.
Specifically: 37

And a sad face, additionally...
by thenasos
07 Nov 2016, 10:28
Forum: Ask For Help
Topic: Variable has not been assinged a value Topic is solved
Replies: 6
Views: 1031

Variable has not been assinged a value Topic is solved

I am trying to set up a variable, that will be based on available links on the web page. I get the correct number, but then this happens... Warning: This variable has not been assigned a value Specifically: 38 (a global variable) ---> tag[%counting%].getElementsByTagName("a")[0].click() ;; Available...
by thenasos
07 Nov 2016, 08:58
Forum: Ask For Help
Topic: List web page tag titles Topic is solved
Replies: 2
Views: 537

Re: List web page tag titles Topic is solved

Capn Odin wrote:getElementsByTagName returns a collection of elements, you will need to choose an index.

Code: Select all

tag := wp.document.getElementsByTagName("tr")[0].title
MsgBox % tag
Thank you, sensei.

Go to advanced search