Jump to content

Few Small Problems :S


Recommended Posts

hello, i am having some problems with my AutoIt Project, its simple and its all about "MouseMove, ToolTip, MsgBox, Send" functions .. i just wanted to use SplashImageOn and HotkeySet, But Obivously not working .. code is

Global $Pause
HotKeySet("!P", "TogglePause") ;Alt + P
HotKeySet("!S", "Terminate") ;Alt + S
_GDIPLUS_
MsgBox(48, "Microsoft Office Learning", "لقد  اخترت تعليم برنامج مايكروسوفت اوفيس 2010  .. سيقوم البرنامج ببدء التعليم الآن", 5)
MouseClick("Left", 26, 748, 1, 50)
MouseClick("Left", 98, 658, 1,50)
MouseClickDrag("left", 253, 379, 254, 531, 50)
MouseClick("Left", 112, 481, 1,50)
MouseClick("Left", 112, 521, 1,50)
WinWaitActive("Document1 - Microsoft Word Starter")
MsgBox(48, "مرحبًا بكم في برنامج الوورد", "مرحبًا بكم في أول تشغيل لبرنامج الوورد، سنقوم بالتعلم معُا دون لمس شيء :)", 5)
WinWaitActive("Document1 - Microsoft Word Starter")
Send("الآن سوف نتعلم كيفية فتح وحفظ واغلاق المستندات")
MouseMove(30, 40, 50)
ToolTip("من هذه القائمة يمكنك اختيار بين عدة خيارات، فتح، حفظ، اغلاق المستندات", 30, 40, "ToolTip")
sleep(5000)
Send("{ENTER}")
Send("2- الآن سوف نتعلم كيفية التحكم بخصائص الخط من تغيير الحجم ، اللون ، العرض إلخ ")
Sleep(2000)
MouseMove(282, 120, 50)
ToolTip("يمكنك التحكم في خصائص الخط من الحجم والعرض واللون و عدة خصائص اخرى من هذه النافذة", 282, 120, "ToolTip")
sleep(5000)
Send("{ENTER}")
Send("3- والآن سوف نتعلم عن كيفية ضبط تباعد الفقرات وحجمها و التنصيص إلخ")
MouseMove(550, 120, 50)
ToolTip("يمكنك التحكم في الفقرة والتنصيص وأشياء أخرى من خلال التحكم من هذه النافذة", 550, 120, "ToolTip")
Sleep(5000)
Send("{ENTER}")
Send("4- يمكنك التحكم بخصائص الخط كمجموعة معينة أنت تنشئها كلون خط و حجمه و عرضه ودمجه بخيار واحد من خلال الذهاب الى هنا")
MouseMove(911, 120, 50)
ToolTip("هنا يمكنك القيام بما سبق في خصائص الخط ودمجها و يوجد خصائص مجهزة مسبقًا ", 911, 120, "ToolTip")
Sleep(5000)
Send("{ENTER}")
Send("دعونا ننتقل الى القائمة الثانية")
MouseClick("left", 143, 35, 1, 50)
Send("{ENTER}")
Send("في هذه القائمة سأكتفي بشرح بسيط وعام نظراً لضيق الوقت والسرعة في الأداء")
Send("{ENTER}")
Send("في هذه القائمة هناك العديد من الخيارات كـ ادخال صورة او انشاء رابط تشعبي ينقلك الى صفحة عند الضغط عليه وانشاء ترويسة وخلفية للصفحة و إنشاء الجداول وغلاف للصفحة و إنشاء الأشكال و ترقيم الصفحات إلخ ")
MouseMove(65, 125, 50)
ToolTip("للتحكم في خصائص الصفحة من هنا", 65, 125, "ToolTip")
Sleep(5000)
MouseMove(160, 125, 50)
ToolTip("من هنا يمكنك إنشاء جداول واشكال", 160, 125, "ToolTip")
Sleep(5000)
MouseMove(400, 125, 50)
ToolTip("من هنا يمكنك ادراج رابط تشعبي والتحكم بالترويسة", 400, 125, "ToolTip")
Sleep(5000)
MouseMove(666, 125, 50)
ToolTip("من هنا يمكنك ادراج خط مزين وبأشكال متعددة", 666, 125, "ToolTip")
Sleep(5000)
MouseMove(780, 125, 50)
ToolTip("من هنا يمكنك اضافة بعض الرموز الموجودة مسبقًا في البرنامج", 780, 125, "ToolTip")
Sleep(5000)
Send("{ENTER}")
Send("دعونا ننتقل الى القائمة التالية")
MouseClick("left", 217, 35, 1, 50)
MouseMove(60, 125, 50)
ToolTip("يمكنك التعديل على السمات واضافة تأثيرات جميلة من هنا", 60, 125, "ToolTip")
Sleep(5000)
MouseMove(267, 125, 50)
ToolTip("من هنا يمكنك التعديل على حجم الصفحة وتنسيق الكلمات", 267, 125, "ToolTip")
Sleep(5000)
MouseMove(515, 125, 50)
ToolTip("من هنا يمكنك التعديل على خلفيه الصفحة من خلال اللون  و الطبعة المائية", 515, 125, "ToolTip")
Sleep(5000)
MouseMove(730, 125, 50)
ToolTip("من هنا يمكنك التعديل على التباعد بين الكلمات والاسطر", 730, 125, "ToolTip")
Sleep(5000)
MouseClick("left", 300, 35, 1, 50)
Send("{ENTER}")
Send("القائمة الأخيرة عبارة عن  نموذج وطرق لارسال المستند بعد الانتهاء منه")
Send("{ENTER}")
Send("إلى هنا نقف في نهاية هذه السلسلة التعليمية البسيطة، راجي من الله التوفيق في هذا العمل  وأرجو أن ينال إعجابكم والحمدلله رب العالمين")
Sleep(3000)
SplashOff()
Func TogglePause()
    $Paused = Not $Paused
    While $Paused
        Sleep(100)
        ToolTip('البرنامج متوقف مؤقتًا"', 0, 0)
    WEnd
    ToolTip("")
EndFunc   ;==>TogglePause
Func Terminate()
    Exit 0
EndFunc   ;==>Terminate

There are some "Arabic words", they don't belong to the code, just fix it for me please ..

and last problem is in my GUI i added GUICtrlCreateEdit but i dont want it to be edited ;S as long im putting "About" Me :) .. Help me please .. i need it before saturday morning, its thursday already here :S .. thanks

Link to comment
Share on other sites

  • Moderators

NvokeMePlz,

just fix it for me please

No the best way to get help here. :)

i need it before saturday morning, its thursday already here

And it might be urgent to you - but it is not to anyone else. ;)

Furthermore you expect us to be able to debug your code without any comments on what it is supposed to do, no idea of what you want to do with SplashImageOn and HotkeySet, and no suggestion of what the problems you are having might be. :)

So all in all a pretty epic failure as a first post. ;)

I am closing this thread. I suggest you start another one with more information and less arrogance. :D

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...