Search found 199 matches

by Cuadrix
10 Jun 2017, 19:47
Forum: Ask For Help
Topic: interupt
Replies: 6
Views: 831

Re: interupt

#SingleInstance, Force

Code: Select all

MsgBox, One lazy horse..
Sleep, 1000
MsgBox, Two Lazy horses
Sleep, 1000
MsgBox, Three Lazy Horses

F1::
Run, Your script name here.ahk
Return
:mrgreen: :mrgreen: :mrgreen:
by Cuadrix
10 Jun 2017, 12:02
Forum: Ask For Help
Topic: Run a script in a background window only?
Replies: 3
Views: 2268

Re: Run a script in a background window only?

IfWinExist / IfWinNotExist / WinExist --> Detect if window exists or not ControlClick --> Send click to a background window ControlSend / ControlSendRaw --> Send keys to a background window PixelGetColor --> Get the color of the pixel in x, y coordinates Exit --> Exists the script dependent on wher...
by Cuadrix
10 Jun 2017, 11:16
Forum: Ask For Help
Topic: Allowing to swap between 2 seperate scripts
Replies: 6
Views: 513

Re: Allowing to swap between 2 seperate scripts

EDIT The reason you are getting an error is because you placed a hotkey inside the labels even though I already specified the hotkeys for each label. Basically here " Script1A " represents hotkey " Q ", and " Script1B " represents hotkey " C ", while " Script2A " represents hotkey " Q " in label 2x...
by Cuadrix
10 Jun 2017, 10:38
Forum: Ask For Help
Topic: Allowing to swap between 2 seperate scripts
Replies: 6
Views: 513

Re: Allowing to swap between 2 seperate scripts

This should work the way you want it to: F2:: Toggle := !Toggle If Toggle { Hotkey, E, Script1A Hotkey, Q, Script1B Hotkey, F, Script1C } else { Hotkey, E, Script2A Hotkey, Q, Script2B Hotkey, F, Script2C } return ;===================================================== Script1A: MsgBox, You pressed E...
by Cuadrix
09 Jun 2017, 20:48
Forum: Ask For Help
Topic: Allowing to swap between 2 seperate scripts
Replies: 6
Views: 513

Re: Allowing to swap between 2 seperate scripts

Here are 2 sample scripts based off your scripts. Pressing F2 will toggle between them.. Script 1: ; Recommended for performance #NoEnv ; Better and more reliable SendMode Input F2:: Suspend DetectHiddenWindows On ; Allows a script's hidden main window to be detected. SetTitleMatchMode 2 PostMessage...
by Cuadrix
08 Jun 2017, 17:46
Forum: Ask For Help
Topic: Need little help with hotkeys::
Replies: 3
Views: 323

Re: Need tittle help with hotkeys::

This should work: #IfWinActive ahk_exe 3DVMain.exe MaxPresses := 2 ~H:: Presses += 1 SetTimer, ResetPresses, -600 If (Pressed <= MaxPresses) GoSub, Presses%Presses% return ResetPresses: Presses := 0 return Presses1: MouseGetPos CurX, CurY click 233, 36 click, 269, 205 send 48 send {tab} send 78 send...
by Cuadrix
08 Jun 2017, 17:37
Forum: Ask For Help
Topic: Load Radio Button state from a .TXT file and check it? GUI Topic is solved
Replies: 3
Views: 391

Load Radio Button state from a .TXT file and check it? GUI Topic is solved

I have this GUI. In the GUI I have two radio buttons, Radio 1 and Radio 2 . In the GUI there is also a regular button named " Set As Default ". There are also two TXT files, CurrentState.txt and DefaultState.txt in the current working directory. How the script works: When I click on one of the Radio...
by Cuadrix
08 Jun 2017, 09:43
Forum: Ask For Help
Topic: Paste clipboard to Chrome, want URL to go to website and plain text to search Google Topic is solved
Replies: 5
Views: 896

Re: Paste clipboard to Chrome, want URL to go to website and plain text to search Google Topic is solved

You can do it like this: Chrome = C:\Users\(user)\AppData\Local\Google\Chrome\Application\chrome.exe Loop, Parse, Clipboard, `n `r if RegExMatch(A_LoopField, "http://|https://|http://www.|https://www.", "", 1) ; Detects if one of the params exists. Run %Chrome% "%Clipboard%" Else if not RegExMatch(A...
by Cuadrix
05 Jun 2017, 04:19
Forum: Ask For Help
Topic: ComObjCreate.. InPrivate?
Replies: 2
Views: 282

Re: ComObjCreate.. InPrivate?

I have seen and read all of them. None of them do this properly.
by Cuadrix
05 Jun 2017, 03:54
Forum: Ask For Help
Topic: ComObjCreate.. InPrivate?
Replies: 2
Views: 282

ComObjCreate.. InPrivate?

As the title says.
Searched on the forums, but found nothing.
Is there any way to accomplish this?
by Cuadrix
03 Jun 2017, 18:15
Forum: Ask For Help
Topic: Read how many times to Loop from a txt file? Topic is solved
Replies: 9
Views: 643

Re: Read how many times to Loop from a txt file? Topic is solved

Random, No, 1, 10 FileAppend, %No%, MyTest.txt ;write testfile F1:: ; press F1 FileRead, fileContent, MyTest.txt ; get number of iterations Loop, %fileContent% ; { ToolTip %A_Index% of %fileContent% ; display Sleep, 1200 ToolTip } Return Thanks, BoBo! :clap: Though, I don't know why my code didn't ...
by Cuadrix
03 Jun 2017, 18:13
Forum: Ask For Help
Topic: Read how many times to Loop from a txt file? Topic is solved
Replies: 9
Views: 643

Re: Read how many times to Loop from a txt file? Topic is solved

tidbit wrote:if you're using fileread, the file cannot contain anything else, not even a blank line. just a number.
I didn't have any blank lines or spaces etc.
by Cuadrix
03 Jun 2017, 17:30
Forum: Ask For Help
Topic: Read how many times to Loop from a txt file? Topic is solved
Replies: 9
Views: 643

Re: Read how many times to Loop from a txt file? Topic is solved

Thanks for the links. I made a test txt file, and I wrote in a simple number in the very first line. After that I wrote this code: F1:: FileRead, fileData, test.txt Sleep, 1000 Loop, Read, %fileData% ReadTxt = %A_LoopReadLine% Loop, %ReadTxt% { MsgBox, Test loop... Sleep, 1000 } But when I press F1 ...
by Cuadrix
03 Jun 2017, 16:21
Forum: Ask For Help
Topic: Read how many times to Loop from a txt file? Topic is solved
Replies: 9
Views: 643

Read how many times to Loop from a txt file? Topic is solved

Hey. Is it possible to read "the loop amount" from a txt file? Let's say I have a code that looks like this: F1:: Loop, "(Amount of times to loop, read from a .txt file here)" .... .. Return Is it possible? If yes, how would I do this. I have been thinking of this for quite a while now, and it's rea...
by Cuadrix
27 May 2017, 17:59
Forum: Ask For Help
Topic: How to use ComObjActive in stead of ComObjCreate in com interface for Internet Explorer?
Replies: 2
Views: 325

Re: How to use ComObjActive in stead of ComObjCreate in com interface for Internet Explorer?

The reason it opens a new ie instance/process is because ComObjcreate creates a new instance of Internet Explorer. If you want to get a message box when the page has loaded in an existing IE window, replace ie := ComObjcreate("internetexplorer.application") with this: AppIE(URL) { For ie in ComObjCr...
by Cuadrix
26 May 2017, 11:58
Forum: Ask For Help
Topic: ie.Navigate("%clipboard%") not working, how to fix?
Replies: 3
Views: 336

Re: ie.Navigate("%clipboard%") not working, how to fix?

Hey, never mind. I fixed it.
by Cuadrix
26 May 2017, 11:50
Forum: Ask For Help
Topic: ie.Navigate("%clipboard%") not working, how to fix?
Replies: 3
Views: 336

Re: ie.Navigate("%clipboard%") not working, how to fix?

I tried it without quotation marks but it still didn't work
by Cuadrix
26 May 2017, 11:25
Forum: Ask For Help
Topic: ie.Navigate("%clipboard%") not working, how to fix?
Replies: 3
Views: 336

ie.Navigate("%clipboard%") not working, how to fix?

I have a code which upon start lets you select a text file to read. After selecting the text the script reads the text file line by line, and each time saves the current line to clipboard. My problem is that when I put %clipboard% or the variable name %LinkURL%, it doesn't navigate to the link store...

Go to advanced search