Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 02:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Another Problem, Can someone Help me fix it ?

Discussion on Another Problem, Can someone Help me fix it ? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2007
Posts: 219
Received Thanks: 43
Another Problem, Can someone Help me fix it ?

I made Function Called _Pause

Also added Hotkey to Toogle it on/off

HotkeySet("{F4}",_Pause()
Global $Pauza = False;

And i have problem

"
Func _Pause()
if $Pauza == True Then
$Pauza = False;
Else
$Pauza = True;
EndIf
EndFunc
"

And im trying to do in my script something like that

While(1)

If($Pauza) Then
WinActivate("Window Tittle")
Else
EndIf
; rest script here

Wend

but when i try To use this script I got error and my script Crash

How to make this work like

If Function Pause = True Then
i get WinActive("Window Tittle")
Else window is not activated untill i hit F4 ?


Figured it out

#Delete Request
owadziak is offline  
Old 07/24/2017, 16:45   #2
 
FacePalmMan's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 426
Received Thanks: 129
Quote:
1. Choose meaningful thread titles

Please use meaningful thread titles to not confuse other members.
You may use language tags (i.e. "[Java] Problem with XYZ") when creating a thread in a section that is not related to a specific language.
Please avoid thread titles like "HELP!!!" since they don't give any information about your problem and may confuse or even annoy some members. These threads will be closed without any comment.
(quote from the coders den's rules: )

So please choose a more meaningful title next time.
And to your code: You can write "=" instead of "==" in an If clause. (for example: If $Pauza = True) It will work fine too. Using "==" is only useful when you want to compare strings in a case-sensitive way. (e.g.: "hello" = "hELLo" --> True ; "hello" = "hello" --> True ; "hello" == "hELLo" --> False ; "hello" == "hello" --> True)
If you got any questions you can ask me. You can contact me on Skype or send me a private message.
FacePalmMan is offline  
Reply


Similar Threads Similar Threads
another strange fw problem i hope someone can help
07/06/2016 - SRO Private Server - 1 Replies
hello guys i got a strange problem in fw that i registered and fw started but when i tryed to enter fw its showed me msg that im not registred and cant enter during fw and heres a screenshot https://s31.postimg.org/sorgpz65z/SRO_2016_06_30_ 13_19_16_46.jpg and im sure that im registred i hope some one can help me in this situation
[04.09.13] GigaByte v2.6 [FIX, FIX, FIX, FIX AND FIX]
09/11/2013 - WarRock Hacks, Bots, Cheats & Exploits - 79 Replies
http://www.elitepvpers.com/forum/warrock-hacks-bot s-cheats-exploits/2843300-11-09-gigabyte-public-v2 -7-a.html
AnyOne Can Help Me ?How Can I Fix This Problem
04/20/2012 - Grand Chase - 3 Replies
Anyone Can Help me :confused: I Don't Know How To Fix It http://imageshack.us/photo/my-images/837/33180049 .png/ http://imageshack.us/photo/my-images/837/33180049 .png/ Here's My Photo
PLEASE......CAN SOMEONE CAN GIVE ME AN ENGINE THAT CAN'T BE DETECTED...
12/30/2009 - Grand Chase Hacks, Bots, Cheats & Exploits - 3 Replies
...GIVE ME AN ENGINE THAT IS N0T DETECTED..... KAHIT NA PANG 5 DAYS LANG !^^...IF YOU ARE FINISH TO READ YOU CAN CLOSED THIS THREAD....>.<:):):):):)



All times are GMT +1. The time now is 02:32.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.