Search found 38 matches

by Hajdes
06 Aug 2021, 10:45
Forum: Gaming Help (v1)
Topic: Stop label/send keystrokes Topic is solved
Replies: 23
Views: 1646

Re: Stop label/send keystrokes Topic is solved

You can reload, or add conditional statements that cause the routine to act according to a variable set by the hotkey. You can post your script for feedback about it. Can you write example how to do it with conditional statements? Here is my code ~F7:: return Hotkey, %LabelKey%, Label Label: SoundB...
by Hajdes
06 Aug 2021, 09:45
Forum: Gaming Help (v1)
Topic: Stop label/send keystrokes Topic is solved
Replies: 23
Views: 1646

Stop label/send keystrokes Topic is solved

Hello, I have in my script label which send keystrokes. Is it possible to after clicking F7 my label will stop or sending keystrokes in label will stop ? I will add that I tried to reload script after clicking F7 but after it my label was bugged is it any other way to do it ?
by Hajdes
03 Aug 2021, 11:17
Forum: Ask for Help (v1)
Topic: Toggle hotkey on/off problem
Replies: 16
Views: 884

Re: Toggle hotkey on/off problem

I don't see F6 anywhere in this script. Debugging is easier if there is a real script to test. All script: Hotkey, %LabelKey%, Label Label: Suspend ToolTip % A_IsSuspended ? "Script suspended" : "", 400, 0 if(A_IsSuspended){ if (GetKeyState("t", "P") || GetKeyState("y", "P")) Hotkey, %LabelKey%, La...
by Hajdes
03 Aug 2021, 11:13
Forum: Ask for Help (v1)
Topic: Toggle hotkey on/off problem
Replies: 16
Views: 884

Re: Toggle hotkey on/off problem

mikeyww wrote:
03 Aug 2021, 11:12
I don't see F6 anywhere in this script. Debugging is easier if there is a real script to test.
I write above: %LabelKey%=F6
by Hajdes
03 Aug 2021, 11:06
Forum: Ask for Help (v1)
Topic: Toggle hotkey on/off problem
Replies: 16
Views: 884

Re: Toggle hotkey on/off problem

What happens when you run the script? What should happen instead? What is the value of each conditional statement & variable? What calls the subroutine? %LabelKey%=F6 1 way: I click T/Y my script is suspended, F6 don't work I click enter/esc my script is unsuspended, I can use F6 - everything fine ...
by Hajdes
03 Aug 2021, 10:51
Forum: Ask for Help (v1)
Topic: Toggle hotkey on/off problem
Replies: 16
Views: 884

Toggle hotkey on/off problem

Can you tell me what is wrong in this code and why it isn't working? Label: Suspend ToolTip % A_IsSuspended ? "Script suspended" : "", 400, 0 if(A_IsSuspended){ if (GetKeyState("t", "P") || GetKeyState("y", "P")) Hotkey, %LabelKey%, Label, Off else if (GetKeyState("Enter", "P") || GetKeyState("Escap...
by Hajdes
03 Aug 2021, 09:42
Forum: Ask for Help (v1)
Topic: Script after suspend do not want to unsuspend
Replies: 5
Views: 533

Re: Script after suspend do not want to unsuspend

You wrote about a problem with a F6 key suspension and the idea: If I run secound label, first label can't work, after secound label is done, first label can work. Since your script did not contain the F6 key, I followed that the problem was already solved and just implemented your idea. If you wan...
by Hajdes
03 Aug 2021, 09:03
Forum: Ask for Help (v1)
Topic: Script after suspend do not want to unsuspend
Replies: 5
Views: 533

Re: Script after suspend do not want to unsuspend

You wrote about a problem with a F6 key suspension and the idea: If I run secound label, first label can't work, after secound label is done, first label can work. Since your script did not contain the F6 key, I followed that the problem was already solved and just implemented your idea. If you wan...
by Hajdes
02 Aug 2021, 11:40
Forum: Ask for Help (v1)
Topic: Script after suspend do not want to unsuspend
Replies: 5
Views: 533

Re: Script after suspend do not want to unsuspend

Hallo, try: Firstlabel: Loop { SoundBeep,% 500 + (A_TickCount & 0xFFF), 20 ToolTip, first label is working Sleep, 200 } Return Secoundlabel: ~t:: While, !GetKeyState("Enter", "P") And !GetKeyState("Escape", "P") { ToolTip, second label is working Sleep, 100 } return Your code doesn't work properly ...
by Hajdes
01 Aug 2021, 18:20
Forum: Ask for Help (v1)
Topic: Script after suspend do not want to unsuspend
Replies: 5
Views: 533

Script after suspend do not want to unsuspend

I have problem with my code : When I click F6 key my script suspend and when I click it again it does not unsuspend. Also after clicking t key and after F6 key MsgBox don't work. My idea was this : If I run secound label , first label can't work, after secound label is done, first label can work. M...
by Hajdes
01 Aug 2021, 10:31
Forum: Ask for Help (v1)
Topic: Problem with suspending script with 2 function
Replies: 2
Views: 279

Re: Problem with suspending script with 2 function

Hallo, (untested), replace: czacik=true to czacik:=true and czacik=false to czacik:=false Zabezpieczenieczatu: ~t:: Suspend On czacik:=false ; I change here Loop if (GetKeyState("Enter", "P") || GetKeyState("Escape", "P")) break Suspend Off czacik:=true ; I change here return If you meant here it d...
by Hajdes
01 Aug 2021, 10:03
Forum: Ask for Help (v1)
Topic: Problem with suspending script with 2 function
Replies: 2
Views: 279

Problem with suspending script with 2 function

Hello I have got problem with my script, when I start it and for the first run label "Dzialanie" it suspend script but not unsuspend it. So I must reload my script, but when for the first I start label "Zabezpieczenieczatu" (this label do it function so it work) and for the secound label "Dzialanie"...
by Hajdes
01 Aug 2021, 07:00
Forum: Gaming Help (v1)
Topic: Suspend function problem (LOOP) Topic is solved
Replies: 8
Views: 690

Re: Suspend function problem (LOOP) Topic is solved

mikeyww thanks but I made a checkbox in gui and added hotkey to it and label where I put Xtra code and it work in your is that problem when I suspend script manually and click enter it unsuspend I needed after click t it suspend and only enter/esc will unsuspend it. When I manually suspend it in Xt...
by Hajdes
01 Aug 2021, 06:56
Forum: Gaming Help (v1)
Topic: Suspend function problem (LOOP) Topic is solved
Replies: 8
Views: 690

Re: Suspend function problem (LOOP) Topic is solved

To not block your in game bound key t you will want to allow the normal key press by using ~t Give this a try: ~t:: Suspend On Loop if (GetKeyState("Enter", "P") || GetKeyState("Escape", "P")) break Suspend Off return Edit: If this is the only hotkey you dont need to use suspend the hotkey thread w...
by Hajdes
01 Aug 2021, 06:16
Forum: Gaming Help (v1)
Topic: Suspend function problem (LOOP) Topic is solved
Replies: 8
Views: 690

Re: Suspend function problem (LOOP) Topic is solved

@mikeyww
Thanks but after added your code to my script it works but I can't write t on chat, also hotkeys that I have in my script which send keys combination to game don't want to work before I suspend script and after I suspend and unsuspend it.
by Hajdes
01 Aug 2021, 06:15
Forum: Gaming Help (v1)
Topic: Suspend function problem (LOOP) Topic is solved
Replies: 8
Views: 690

Re: Suspend function problem (LOOP) Topic is solved

@Xtra
Thanks but after added your code to my script it works but hotkeys that I have in my script which send keys combination to game don't want to work before I suspend script and after I suspend and unsuspend it.
by Hajdes
01 Aug 2021, 06:14
Forum: Gaming Help (v1)
Topic: Suspend function problem (LOOP) Topic is solved
Replies: 8
Views: 690

Re: Suspend function problem (LOOP) Topic is solved

Possibly something like this. ~Enter:: ~Esc::Suspend, Off $t:: Suspend, Permit Send % A_IsSuspended ? "" : "t" Suspend, On Return After added your code to my script it works but I can't write t on chat, alsohotkeys that I have in my script which send keys combination to game don't want to work befo...
by Hajdes
31 Jul 2021, 17:20
Forum: Gaming Help (v1)
Topic: Suspend function problem (LOOP) Topic is solved
Replies: 8
Views: 690

Suspend function problem (LOOP) Topic is solved

In game chat start with t key and I want that after pressing t on keyboard my script will be suspend and I will can normaly write on chat but if I press enter or esc my script will be unsuspend (esc - close chat, enter - send message on chat). I have problem with this code: t:: Suspend On Loop { Get...

Go to advanced search